主题
Swimlane Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/SwimlaneDiagramConfig包含特定于泳道图类型的配置的对象。泳道图重用了流程图渲染器和流程图配置以共享选项(曲线、HTML标签、间距等);此块包含仅影响泳道布局管道的旋钮。
| 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* |
SwimlaneDiagramConfig Type
object (Swimlane Diagram Config)
all of
SwimlaneDiagramConfig Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| theme | string | Optional | cannot be null | Mermaid Config |
| look | string | Optional | cannot be null | Mermaid Config |
| layout | string | Optional | cannot be null | Mermaid Config |
| lineHops | Merged | Optional | cannot be null | Mermaid Config |
| ignoreCrossLaneEdges | boolean | Optional | cannot be null | Mermaid Config |
| optimizeRanksByCrossings | boolean | Optional | cannot be null | Mermaid Config |
| automaticLaneOrdering | boolean | Optional | cannot be null | Mermaid Config |
theme
主题,CSS 样式表。你也可以使用 themeCSS 覆盖此值。
theme
is optional
Type:
stringcannot be null
defined in: Mermaid Config
theme Type
string
theme Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"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
is optional
Type:
stringcannot be null
defined in: Mermaid Config
look Type
string
look Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"classic" | |
"handDrawn" | |
"neo" |
look Default Value
The default value is:
json
"neo"layout
定义用于渲染图表的布局算法。
layout
is optional
Type:
stringcannot be null
defined in: Mermaid Config
layout Type
string
layout Default Value
The default value is:
json
"swimlane"lineHops
将边缘交叉显示为小弧线 ("hops") 或可见间隙,以便更容易读取重叠的边缘。设置为 false 可禁用。为避免破坏几何形状,曲线渲染的边缘将被跳过。
lineHops
is optional
Type: merged type (Details)
cannot be null
defined in: Mermaid Config
lineHops Type
merged type (Details)
one (and only one) of
lineHops Default Value
The default value is:
json
"arc"ignoreCrossLaneEdges
在分配泳道层时忽略跨越泳道边界的边。这可以提高具有许多跨泳道链接的图表的排名质量。
ignoreCrossLaneEdges
is optional
Type:
booleancannot be null
defined in: Mermaid Config
ignoreCrossLaneEdges Type
boolean
ignoreCrossLaneEdges Default Value
The default value is:
json
trueoptimizeRanksByCrossings
启用针对泳道布局的交叉感知排名优化处理。
optimizeRanksByCrossings
is optional
Type:
booleancannot be null
defined in: Mermaid Config
optimizeRanksByCrossings Type
boolean
optimizeRanksByCrossings Default Value
The default value is:
json
trueautomaticLaneOrdering
使用确定性的加权线性排列启发式自动重新排序顶层泳道。默认情况下禁用,因为源泳道顺序可能具有语义意义。
automaticLaneOrdering
is optional
Type:
booleancannot be null
defined in: Mermaid Config
automaticLaneOrdering Type
boolean
automaticLaneOrdering Default Value
The default value is:
json
false