Er Diagram Config Schema β
https://mermaid.js.org/schemas/config.schema.json#/$defs/ErDiagramConfigThe 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* |
ErDiagramConfig Type β
object (Er Diagram Config)
all of
ErDiagramConfig Properties β
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| titleTopMargin | integer | Required | cannot be null | Mermaid Config |
| diagramPadding | integer | Required | cannot be null | Mermaid Config |
| layoutDirection | string | Required | cannot be null | Mermaid Config |
| minEntityWidth | integer | Required | cannot be null | Mermaid Config |
| minEntityHeight | integer | Required | cannot be null | Mermaid Config |
| entityPadding | integer | Required | cannot be null | Mermaid Config |
| nodeSpacing | integer | Optional | cannot be null | Mermaid Config |
| rankSpacing | integer | Optional | cannot be null | Mermaid Config |
| stroke | string | Required | cannot be null | Mermaid Config |
| fill | string | Required | cannot be null | Mermaid Config |
| fontSize | integer | Optional | 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:
25diagramPadding β
The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels.
diagramPadding
is required
Type:
integercannot be null
defined in: Mermaid Config
diagramPadding Type β
integer
diagramPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
diagramPadding Default Value β
The default value is:
20layoutDirection β
Directional bias for layout of entities
layoutDirection
is required
Type:
stringcannot be null
defined in: Mermaid Config
layoutDirection Type β
string
layoutDirection Constraints β
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"TB" | Top-Bottom |
"BT" | Bottom-Top |
"LR" | Left-Right |
"RL" | Right to Left |
layoutDirection Default Value β
The default value is:
"TB"minEntityWidth β
The minimum width of an entity box. Expressed in pixels.
minEntityWidth
is required
Type:
integercannot be null
defined in: Mermaid Config
minEntityWidth Type β
integer
minEntityWidth Constraints β
minimum: the value of this number must greater than or equal to: 0
minEntityWidth Default Value β
The default value is:
100minEntityHeight β
The minimum height of an entity box. Expressed in pixels.
minEntityHeight
is required
Type:
integercannot be null
defined in: Mermaid Config
minEntityHeight Type β
integer
minEntityHeight Constraints β
minimum: the value of this number must greater than or equal to: 0
minEntityHeight Default Value β
The default value is:
75entityPadding β
The minimum internal padding between text in an entity box and the enclosing box borders. Expressed in pixels.
entityPadding
is required
Type:
integercannot be null
defined in: Mermaid Config
entityPadding Type β
integer
entityPadding Constraints β
minimum: the value of this number must greater than or equal to: 0
entityPadding Default Value β
The default value is:
15nodeSpacing β
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
nodeSpacing Default Value β
The default value is:
140rankSpacing β
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
rankSpacing Default Value β
The default value is:
80stroke β
Stroke color of box edges and lines.
stroke
is required
Type:
stringcannot be null
defined in: Mermaid Config
stroke Type β
string
stroke Default Value β
The default value is:
"gray"fill β
Fill color of entity boxes
fill
is required
Type:
stringcannot be null
defined in: Mermaid Config
fill Type β
string
fill Default Value β
The default value is:
"honeydew"fontSize β
Font size (expressed as an integer representing a number of pixels)
fontSize
is optional
Type:
integercannot be null
defined in: Mermaid Config
fontSize Type β
integer
fontSize Constraints β
minimum: the value of this number must greater than or equal to: 0
fontSize Default Value β
The default value is:
12