主题
Er Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/ErDiagramConfig包含特定于实体关系图的配置的对象
| 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
图表上方文本的顶部边距
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:
json
25diagramPadding
整个图表周围的填充量,以便嵌入的图表具有边距,以像素表示。
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:
json
20layoutDirection
实体布局的方向偏差
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:
json
"TB"minEntityWidth
实体框的最小宽度。以像素表示。
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:
json
100minEntityHeight
实体框的最小高度。以像素表示。
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:
json
75entityPadding
实体框中的文本与封闭框边框之间的最小内部填充。以像素表示。
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:
json
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:
json
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:
json
80stroke
框边缘和线条的描边颜色。
stroke
is required
Type:
stringcannot be null
defined in: Mermaid Config
stroke Type
string
stroke Default Value
The default value is:
json
"gray"fill
实体框的填充颜色
fill
is required
Type:
stringcannot be null
defined in: Mermaid Config
fill Type
string
fill Default Value
The default value is:
json
"honeydew"fontSize
字体大小(表示为表示像素数的整数)
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:
json
12