State Diagram Config Schema β
https://mermaid.js.org/schemas/config.schema.json#/$defs/StateDiagramConfigThe object containing configurations specific for entity relationship diagrams
| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
|---|---|---|---|---|---|---|---|
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config.schema.json* |
StateDiagramConfig Type β
object (State Diagram Config)
all of
StateDiagramConfig Properties β
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| titleTopMargin | integer | Required | cannot be null | Mermaid Config |
| arrowMarkerAbsolute | boolean | Optional | cannot be null | Mermaid Config |
| dividerMargin | number | Optional | cannot be null | Mermaid Config |
| sizeUnit | number | Optional | cannot be null | Mermaid Config |
| padding | number | Optional | cannot be null | Mermaid Config |
| textHeight | number | Optional | cannot be null | Mermaid Config |
| titleShift | number | Optional | cannot be null | Mermaid Config |
| noteMargin | number | Optional | cannot be null | Mermaid Config |
| nodeSpacing | integer | Optional | cannot be null | Mermaid Config |
| rankSpacing | integer | Optional | cannot be null | Mermaid Config |
| forkWidth | number | Optional | cannot be null | Mermaid Config |
| forkHeight | number | Optional | cannot be null | Mermaid Config |
| miniPadding | number | Optional | cannot be null | Mermaid Config |
| fontSizeFactor | number | Optional | cannot be null | Mermaid Config |
| fontSize | number | Optional | cannot be null | Mermaid Config |
| labelHeight | number | Optional | cannot be null | Mermaid Config |
| edgeLengthFactor | string | Optional | cannot be null | Mermaid Config |
| compositTitleSize | number | Optional | cannot be null | Mermaid Config |
| radius | number | Optional | cannot be null | Mermaid Config |
| defaultRenderer | string | Required | cannot be null | Mermaid Config |
titleTopMargin β
Margin top for the text over the diagram
titleTopMargin
is required
Type:
integercannot be null
defined in: Mermaid Config
titleTopMargin Type β
integer
titleTopMargin Constraints β
minimum: the value of this number must greater than or equal to: 0
titleTopMargin Default Value β
The default value is:
25arrowMarkerAbsolute β
arrowMarkerAbsolute
is optional
Type:
booleancannot be null
defined in: Mermaid Config
arrowMarkerAbsolute Type β
boolean
dividerMargin β
dividerMargin
is optional
Type:
numbercannot be null
defined in: Mermaid Config
dividerMargin Type β
number
dividerMargin Default Value β
The default value is:
10sizeUnit β
sizeUnit
is optional
Type:
numbercannot be null
defined in: Mermaid Config
sizeUnit Type β
number
sizeUnit Default Value β
The default value is:
5padding β
padding
is optional
Type:
numbercannot be null
defined in: Mermaid Config
padding Type β
number
padding Default Value β
The default value is:
8textHeight β
textHeight
is optional
Type:
numbercannot be null
defined in: Mermaid Config
textHeight Type β
number
textHeight Default Value β
The default value is:
10titleShift β
titleShift
is optional
Type:
numbercannot be null
defined in: Mermaid Config
titleShift Type β
number
titleShift Default Value β
The default value is:
-15noteMargin β
noteMargin
is optional
Type:
numbercannot be null
defined in: Mermaid Config
noteMargin Type β
number
noteMargin Default Value β
The default value is:
10nodeSpacing β
nodeSpacing
is optional
Type:
integercannot be null
defined in: Mermaid Config
nodeSpacing Type β
integer
nodeSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
rankSpacing β
rankSpacing
is optional
Type:
integercannot be null
defined in: Mermaid Config
rankSpacing Type β
integer
rankSpacing Constraints β
minimum: the value of this number must greater than or equal to: 0
forkWidth β
forkWidth
is optional
Type:
numbercannot be null
defined in: Mermaid Config
forkWidth Type β
number
forkWidth Default Value β
The default value is:
70forkHeight β
forkHeight
is optional
Type:
numbercannot be null
defined in: Mermaid Config
forkHeight Type β
number
forkHeight Default Value β
The default value is:
7miniPadding β
miniPadding
is optional
Type:
numbercannot be null
defined in: Mermaid Config
miniPadding Type β
number
miniPadding Default Value β
The default value is:
2fontSizeFactor β
Font size factor, this is used to guess the width of the edges labels before rendering by dagre layout. This might need updating if/when switching font
fontSizeFactor
is optional
Type:
numbercannot be null
defined in: Mermaid Config
fontSizeFactor Type β
number
fontSizeFactor Default Value β
The default value is:
5.02fontSize β
fontSize
is optional
Type:
numbercannot be null
defined in: Mermaid Config
fontSize Type β
number
fontSize Default Value β
The default value is:
24labelHeight β
labelHeight
is optional
Type:
numbercannot be null
defined in: Mermaid Config
labelHeight Type β
number
labelHeight Default Value β
The default value is:
16edgeLengthFactor β
edgeLengthFactor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
edgeLengthFactor Type β
string
edgeLengthFactor Default Value β
The default value is:
"20"compositTitleSize β
compositTitleSize
is optional
Type:
numbercannot be null
defined in: Mermaid Config
compositTitleSize Type β
number
compositTitleSize Default Value β
The default value is:
35radius β
radius
is optional
Type:
numbercannot be null
defined in: Mermaid Config
radius Type β
number
radius Default Value β
The default value is:
5defaultRenderer β
Decides which rendering engine that is to be used for the rendering.
defaultRenderer
is required
Type:
stringcannot be null
defined in: Mermaid Config
defaultRenderer Type β
string
defaultRenderer Constraints β
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"dagre-d3" | The [dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) library. |
"dagre-wrapper" | wrapper for dagre implemented in mermaid |
"elk" | Layout using [elkjs](https://github.com/kieler/elkjs) |
defaultRenderer Default Value β
The default value is:
"dagre-wrapper"