Skip to content

Railroad Diagram Config Schema ​

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/RailroadDiagramConfig

铁路(语法)图的配置

AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenAllowednoneconfig.schema.json*

RailroadDiagramConfig Type ​

object (Railroad Diagram Config)

all of

RailroadDiagramConfig Properties ​

PropertyTypeRequiredNullableDefined by
compactModebooleanOptionalcannot be nullMermaid Config
paddingnumberOptionalcannot be nullMermaid Config
verticalSeparationnumberOptionalcannot be nullMermaid Config
horizontalSeparationnumberOptionalcannot be nullMermaid Config
arcRadiusnumberOptionalcannot be nullMermaid Config
fontSizenumberOptionalcannot be nullMermaid Config
fontFamilystringOptionalcannot be nullMermaid Config
terminalFillstringOptionalcannot be nullMermaid Config
terminalStrokestringOptionalcannot be nullMermaid Config
terminalTextColorstringOptionalcannot be nullMermaid Config
nonTerminalFillstringOptionalcannot be nullMermaid Config
nonTerminalStrokestringOptionalcannot be nullMermaid Config
nonTerminalTextColorstringOptionalcannot be nullMermaid Config
lineColorstringOptionalcannot be nullMermaid Config
strokeWidthnumberOptionalcannot be nullMermaid Config
markerFillstringOptionalcannot be nullMermaid Config
commentFillstringOptionalcannot be nullMermaid Config
commentStrokestringOptionalcannot be nullMermaid Config
commentTextColorstringOptionalcannot be nullMermaid Config
specialFillstringOptionalcannot be nullMermaid Config
specialStrokestringOptionalcannot be nullMermaid Config
ruleNameColorstringOptionalcannot be nullMermaid Config
showMarkersbooleanOptionalcannot be nullMermaid Config
markerRadiusnumberOptionalcannot be nullMermaid Config

compactMode ​

使用紧凑布局模式

compactMode

compactMode Type ​

boolean

compactMode Default Value ​

The default value is:

json
false

padding ​

元素周围的内边距

padding

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
10

verticalSeparation ​

元素之间的垂直间距

verticalSeparation

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
8

horizontalSeparation ​

元素之间的水平间距

horizontalSeparation

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
10

arcRadius ​

曲线路径的半径

arcRadius

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
10

fontSize ​

文本字体大小

fontSize

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
14

fontFamily ​

文本的字体系列

fontFamily

fontFamily Type ​

string

fontFamily Default Value ​

The default value is:

json
"monospace"

terminalFill ​

终端元素的填充颜色

terminalFill

terminalFill Type ​

string

terminalFill Default Value ​

The default value is:

json
"#FFFFC0"

terminalStroke ​

终端元素的描边颜色

terminalStroke

terminalStroke Type ​

string

terminalStroke Default Value ​

The default value is:

json
"#000000"

terminalTextColor ​

终端元素的文本颜色

terminalTextColor

terminalTextColor Type ​

string

terminalTextColor Default Value ​

The default value is:

json
"#000000"

nonTerminalFill ​

非终端元素的填充颜色

nonTerminalFill

nonTerminalFill Type ​

string

nonTerminalFill Default Value ​

The default value is:

json
"#FFFFFF"

nonTerminalStroke ​

非终端元素的描边颜色

nonTerminalStroke

nonTerminalStroke Type ​

string

nonTerminalStroke Default Value ​

The default value is:

json
"#000000"

nonTerminalTextColor ​

非终端元素的文本颜色

nonTerminalTextColor

nonTerminalTextColor Type ​

string

nonTerminalTextColor Default Value ​

The default value is:

json
"#000000"

lineColor ​

连接线的颜色

lineColor

lineColor Type ​

string

lineColor Default Value ​

The default value is:

json
"#000000"

strokeWidth ​

笔画宽度

strokeWidth

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
2

markerFill ​

起始/结束标记的填充颜色

markerFill

markerFill Type ​

string

markerFill Default Value ​

The default value is:

json
"#000000"

commentFill ​

评论填充颜色

commentFill

commentFill Type ​

string

commentFill Default Value ​

The default value is:

json
"#E8E8E8"

commentStroke ​

评论的描边颜色

commentStroke

commentStroke Type ​

string

commentStroke Default Value ​

The default value is:

json
"#888888"

commentTextColor ​

评论的文字颜色

commentTextColor

commentTextColor Type ​

string

commentTextColor Default Value ​

The default value is:

json
"#666666"

specialFill ​

特殊序列的填充颜色

specialFill

specialFill Type ​

string

specialFill Default Value ​

The default value is:

json
"#F0E0FF"

specialStroke ​

特殊序列的描边颜色

specialStroke

specialStroke Type ​

string

specialStroke Default Value ​

The default value is:

json
"#8800CC"

ruleNameColor ​

规则名称的颜色

ruleNameColor

ruleNameColor Type ​

string

ruleNameColor Default Value ​

The default value is:

json
"#000066"

showMarkers ​

显示开始/结束标记

showMarkers

showMarkers Type ​

boolean

showMarkers Default Value ​

The default value is:

json
true

markerRadius ​

起始/结束标记的半径

markerRadius

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
Opens in mermaid.ai