Er Diagram Config Schema β
https://mermaid.js.org/schemas/config.schema.json#/$defs/ErDiagramConfig
The 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 |
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:
integer
cannot 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:
25
diagramPadding β
The amount of padding around the diagram as a whole so that embedded diagrams have margins, expressed in pixels.
diagramPadding
is required
Type:
integer
cannot 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:
20
layoutDirection β
Directional bias for layout of entities
layoutDirection
is required
Type:
string
cannot be null
defined in: Mermaid Config
tsType:
string | "TB" | "BT" | "LR" | "RL"
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:
integer
cannot 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:
100
minEntityHeight β
The minimum height of an entity box. Expressed in pixels.
minEntityHeight
is required
Type:
integer
cannot 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:
75
entityPadding β
The minimum internal padding between text in an entity box and the enclosing box borders. Expressed in pixels.
entityPadding
is required
Type:
integer
cannot 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:
15
stroke β
Stroke color of box edges and lines.
stroke
is required
Type:
string
cannot 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:
string
cannot 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:
integer
cannot 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