Diagram Options
BlockDiag
Applies to blockdiag
, seqdiag
, actdiag
, nwdiag
, packetdiag
and rackdiag
:
Name | Allowable Values | Description |
---|---|---|
|
flag |
Apply anti-alias filter to diagram image |
|
flag |
Disable transparent background of diagram (PNG only) |
|
dimension format {width}x{height} |
Size of diagram |
|
flag |
Omit doctype definition tag (SVG only) |
D2
Name | Allowable Values | Description |
---|---|---|
|
|
|
|
|
Use an alternate layout engine: d2lang.com/tour/layouts/ |
|
flag |
Render diagram with a hand-drawn aesthetic: d2lang.com/tour/sketch/ |
Ditaa
Name | Allowable Values | Description |
---|---|---|
|
any |
Turns anti-aliasing off |
|
any |
Prevents the separation of common edges of shapes |
|
any |
Causes all corners to be rendered as round corners |
|
double |
A natural number that determines the size of the rendered image. The units are fractions of the default size (2.5 renders 1.5 times biggerthan the default) |
|
any |
Turns off the drop-shadow effect |
|
any |
Tabs are normally interpreted as 8 spaces but it is possible to change that using this option |
GraphViz
Name | Allowable Values | Description |
---|---|---|
|
any |
Set a graph attribute: graphviz.org/doc/info/command.html#-G |
|
any |
Set a default node attribute: graphviz.org/doc/info/command.html#-N |
|
any |
Set a default edge attribute: graphviz.org/doc/info/command.html#-E |
|
string |
Specifies which default layout algorithm to use, overriding the default from the command name: graphviz.org/doc/info/command.html#-K |
|
double |
Set input scale to scale. If this value is omitted, 72.0 is used. This number is used to convert the point coordinate units used in the pos attribute into inches, which is what is expected by neato and fdp: graphviz.org/doc/info/command.html#-s |
Mermaid
Mermaid naming convention for configuration is camelCase, for instance: htmlLabels
.
In addition, Mermaid allows to configure each diagram type using a prefix separated by a dot (.
).
For instance, if you want to configure the title top margin in an Entity Relation diagram, the option name is: er.titleTopMargin
.
Since Kroki must be agnostic (and use consistent naming), you should use kebab-case instead of camelCase and replace .
by _
(i.e., snake_case).
If we apply these rules to er.titleTopMargin
it becomes er_title-top-margin
.
Please note that diagram options in Kroki are case-insensitive, so the following is also valid: ER_TITLE-TOP-MARGIN
or ER_Title-Top-Margin
.
For security reasons, the following options are not available:
|
The complete list of options is available in Mermaid source code at: github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts
PlantUML
Name | Allowable Values | Description |
---|---|---|
|
string
|
Use a specific theme (it will prepend the |
|
flag |
Do not save the diagram’s source code in the generated SVG/PNG metadata |
Structurizr
Name | Allowable Values | Description |
---|---|---|
|
string |
Key of the view (if the workspace contains more than one view) |
|
string
|
Select the output for the specified view. |
Svgbob
Name | Allowable Values | Description |
---|---|---|
|
any |
Backdrop background will be filled with this color |
|
any |
Text will be rendered with this font |
|
integer |
Text will be rendered with this font size |
|
any |
Solid shapes will be filled with this color |
|
any |
Scale the entire svg (dimensions, font size, stroke width) by this factor |
|
any |
Stroke width for all lines |
Symbolator
Name | Allowable Values | Description |
---|---|---|
|
string |
Select the component that will be rendered |
|
flag |
Background will be transparent instead of white |
|
string |
This title will be inserted into the diagram |
|
number |
Diagram will be scaled by this factor |
|
flag |
Omit type information for the ports |
|
string |
Add name of a library to the diagram. |