主题
Railroad Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/RailroadDiagramConfig铁路(语法)图的配置
| 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* |
RailroadDiagramConfig Type
object (Railroad Diagram Config)
all of
RailroadDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| compactMode | boolean | Optional | cannot be null | Mermaid Config |
| padding | number | Optional | cannot be null | Mermaid Config |
| verticalSeparation | number | Optional | cannot be null | Mermaid Config |
| horizontalSeparation | number | Optional | cannot be null | Mermaid Config |
| arcRadius | number | Optional | cannot be null | Mermaid Config |
| fontSize | number | Optional | cannot be null | Mermaid Config |
| fontFamily | string | Optional | cannot be null | Mermaid Config |
| terminalFill | string | Optional | cannot be null | Mermaid Config |
| terminalStroke | string | Optional | cannot be null | Mermaid Config |
| terminalTextColor | string | Optional | cannot be null | Mermaid Config |
| nonTerminalFill | string | Optional | cannot be null | Mermaid Config |
| nonTerminalStroke | string | Optional | cannot be null | Mermaid Config |
| nonTerminalTextColor | string | Optional | cannot be null | Mermaid Config |
| lineColor | string | Optional | cannot be null | Mermaid Config |
| strokeWidth | number | Optional | cannot be null | Mermaid Config |
| markerFill | string | Optional | cannot be null | Mermaid Config |
| commentFill | string | Optional | cannot be null | Mermaid Config |
| commentStroke | string | Optional | cannot be null | Mermaid Config |
| commentTextColor | string | Optional | cannot be null | Mermaid Config |
| specialFill | string | Optional | cannot be null | Mermaid Config |
| specialStroke | string | Optional | cannot be null | Mermaid Config |
| ruleNameColor | string | Optional | cannot be null | Mermaid Config |
| showMarkers | boolean | Optional | cannot be null | Mermaid Config |
| markerRadius | number | Optional | cannot be null | Mermaid Config |
compactMode
使用紧凑布局模式
compactMode
is optional
Type:
booleancannot be null
defined in: Mermaid Config
compactMode Type
boolean
compactMode Default Value
The default value is:
json
falsepadding
元素周围的内边距
padding
is optional
Type:
numbercannot be null
defined in: Mermaid Config
padding Type
number
padding Constraints
minimum: the value of this number must greater than or equal to: 0
padding Default Value
The default value is:
json
10verticalSeparation
元素之间的垂直间距
verticalSeparation
is optional
Type:
numbercannot be null
defined in: Mermaid Config
verticalSeparation Type
number
verticalSeparation Constraints
minimum: the value of this number must greater than or equal to: 0
verticalSeparation Default Value
The default value is:
json
8horizontalSeparation
元素之间的水平间距
horizontalSeparation
is optional
Type:
numbercannot be null
defined in: Mermaid Config
horizontalSeparation Type
number
horizontalSeparation Constraints
minimum: the value of this number must greater than or equal to: 0
horizontalSeparation Default Value
The default value is:
json
10arcRadius
曲线路径的半径
arcRadius
is optional
Type:
numbercannot be null
defined in: Mermaid Config
arcRadius Type
number
arcRadius Constraints
minimum: the value of this number must greater than or equal to: 0
arcRadius Default Value
The default value is:
json
10fontSize
文本字体大小
fontSize
is optional
Type:
numbercannot be null
defined in: Mermaid Config
fontSize Type
number
fontSize Constraints
minimum: the value of this number must greater than or equal to: 0
fontSize Default Value
The default value is:
json
14fontFamily
文本的字体系列
fontFamily
is optional
Type:
stringcannot be null
defined in: Mermaid Config
fontFamily Type
string
fontFamily Default Value
The default value is:
json
"monospace"terminalFill
终端元素的填充颜色
terminalFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
terminalFill Type
string
terminalFill Default Value
The default value is:
json
"#FFFFC0"terminalStroke
终端元素的描边颜色
terminalStroke
is optional
Type:
stringcannot be null
defined in: Mermaid Config
terminalStroke Type
string
terminalStroke Default Value
The default value is:
json
"#000000"terminalTextColor
终端元素的文本颜色
terminalTextColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
terminalTextColor Type
string
terminalTextColor Default Value
The default value is:
json
"#000000"nonTerminalFill
非终端元素的填充颜色
nonTerminalFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
nonTerminalFill Type
string
nonTerminalFill Default Value
The default value is:
json
"#FFFFFF"nonTerminalStroke
非终端元素的描边颜色
nonTerminalStroke
is optional
Type:
stringcannot be null
defined in: Mermaid Config
nonTerminalStroke Type
string
nonTerminalStroke Default Value
The default value is:
json
"#000000"nonTerminalTextColor
非终端元素的文本颜色
nonTerminalTextColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
nonTerminalTextColor Type
string
nonTerminalTextColor Default Value
The default value is:
json
"#000000"lineColor
连接线的颜色
lineColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
lineColor Type
string
lineColor Default Value
The default value is:
json
"#000000"strokeWidth
笔画宽度
strokeWidth
is optional
Type:
numbercannot be null
defined in: Mermaid Config
strokeWidth Type
number
strokeWidth Constraints
minimum: the value of this number must greater than or equal to: 0
strokeWidth Default Value
The default value is:
json
2markerFill
起始/结束标记的填充颜色
markerFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
markerFill Type
string
markerFill Default Value
The default value is:
json
"#000000"commentFill
评论填充颜色
commentFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
commentFill Type
string
commentFill Default Value
The default value is:
json
"#E8E8E8"commentStroke
评论的描边颜色
commentStroke
is optional
Type:
stringcannot be null
defined in: Mermaid Config
commentStroke Type
string
commentStroke Default Value
The default value is:
json
"#888888"commentTextColor
评论的文字颜色
commentTextColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
commentTextColor Type
string
commentTextColor Default Value
The default value is:
json
"#666666"specialFill
特殊序列的填充颜色
specialFill
is optional
Type:
stringcannot be null
defined in: Mermaid Config
specialFill Type
string
specialFill Default Value
The default value is:
json
"#F0E0FF"specialStroke
特殊序列的描边颜色
specialStroke
is optional
Type:
stringcannot be null
defined in: Mermaid Config
specialStroke Type
string
specialStroke Default Value
The default value is:
json
"#8800CC"ruleNameColor
规则名称的颜色
ruleNameColor
is optional
Type:
stringcannot be null
defined in: Mermaid Config
ruleNameColor Type
string
ruleNameColor Default Value
The default value is:
json
"#000066"showMarkers
显示开始/结束标记
showMarkers
is optional
Type:
booleancannot be null
defined in: Mermaid Config
showMarkers Type
boolean
showMarkers Default Value
The default value is:
json
truemarkerRadius
起始/结束标记的半径
markerRadius
is optional
Type:
numbercannot be null
defined in: Mermaid Config
markerRadius Type
number
markerRadius Constraints
minimum: the value of this number must greater than or equal to: 0
markerRadius Default Value
The default value is:
json
5