Skip to content

Swimlane Diagram Config Schema ​

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

包含特定于泳道图类型的配置的对象。泳道图重用了流程图渲染器和流程图配置以共享选项(曲线、HTML标签、间距等);此块包含仅影响泳道布局管道的旋钮。

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

SwimlaneDiagramConfig Type ​

object (Swimlane Diagram Config)

all of

SwimlaneDiagramConfig Properties ​

PropertyTypeRequiredNullableDefined by
themestringOptionalcannot be nullMermaid Config
lookstringOptionalcannot be nullMermaid Config
layoutstringOptionalcannot be nullMermaid Config
lineHopsMergedOptionalcannot be nullMermaid Config
ignoreCrossLaneEdgesbooleanOptionalcannot be nullMermaid Config
optimizeRanksByCrossingsbooleanOptionalcannot be nullMermaid Config
automaticLaneOrderingbooleanOptionalcannot be nullMermaid Config

theme ​

主题,CSS 样式表。你也可以使用 themeCSS 覆盖此值。

theme

theme Type ​

string

theme Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"default"
"base"
"dark"
"forest"
"neutral"
"neo"
"neo-dark"
"redux"
"redux-dark"
"redux-color"
"redux-dark-color"
"null"Can be set to disable any pre-defined mermaid theme

theme Default Value ​

The default value is:

json
"redux-color"

look ​

定义图表要使用的主要外观。

look

look Type ​

string

look Constraints ​

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"classic"
"handDrawn"
"neo"

look Default Value ​

The default value is:

json
"neo"

layout ​

定义用于渲染图表的布局算法。

layout

layout Type ​

string

layout Default Value ​

The default value is:

json
"swimlane"

lineHops ​

将边缘交叉显示为小弧线 ("hops") 或可见间隙,以便更容易读取重叠的边缘。设置为 false 可禁用。为避免破坏几何形状,曲线渲染的边缘将被跳过。

lineHops

lineHops Type ​

merged type (Details)

one (and only one) of

lineHops Default Value ​

The default value is:

json
"arc"

ignoreCrossLaneEdges ​

在分配泳道层时忽略跨越泳道边界的边。这可以提高具有许多跨泳道链接的图表的排名质量。

ignoreCrossLaneEdges

ignoreCrossLaneEdges Type ​

boolean

ignoreCrossLaneEdges Default Value ​

The default value is:

json
true

optimizeRanksByCrossings ​

启用针对泳道布局的交叉感知排名优化处理。

optimizeRanksByCrossings

optimizeRanksByCrossings Type ​

boolean

optimizeRanksByCrossings Default Value ​

The default value is:

json
true

automaticLaneOrdering ​

使用确定性的加权线性排列启发式自动重新排序顶层泳道。默认情况下禁用,因为源泳道顺序可能具有语义意义。

automaticLaneOrdering

automaticLaneOrdering Type ​

boolean

automaticLaneOrdering Default Value ​

The default value is:

json
false
Opens in mermaid.ai