Skip to content

Swimlane Diagram Config Schema ​

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

The object containing configurations specific for the swimlanes diagram type.

Swimlanes reuses the flowchart renderer and flowchart config for shared options (curve, htmlLabels, spacing, …); this block holds the knobs that only affect the swimlanes layout pipeline.

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 ​

Theme, the CSS style sheet. You may also use themeCSS to override this value.

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 ​

Defines which main look to use for the diagram.

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 ​

Defines which layout algorithm to use for rendering the diagram.

layout

layout Type ​

string

layout Default Value ​

The default value is:

json
"swimlane"

lineHops ​

Renders edge crossings as small arcs ("hops") or visible gaps so that overlapping edges are easier to read. Set to false to disable. Edges rendered as curves are skipped to avoid corrupting the geometry.

lineHops

lineHops Type ​

merged type (Details)

one (and only one) of

lineHops Default Value ​

The default value is:

json
"arc"

ignoreCrossLaneEdges ​

Ignores edges that cross swimlane boundaries during swimlane layer assignment. This can improve rank quality for diagrams with many cross-lane links.

ignoreCrossLaneEdges

ignoreCrossLaneEdges Type ​

boolean

ignoreCrossLaneEdges Default Value ​

The default value is:

json
true

optimizeRanksByCrossings ​

Enables a crossing-aware rank optimization pass for swimlane layouts.

optimizeRanksByCrossings

optimizeRanksByCrossings Type ​

boolean

optimizeRanksByCrossings Default Value ​

The default value is:

json
true

automaticLaneOrdering ​

Automatically reorders top-level swimlanes with a deterministic weighted-linear-arrangement heuristic. Disabled by default because source swimlane order can carry semantic meaning.

automaticLaneOrdering

automaticLaneOrdering Type ​

boolean

automaticLaneOrdering Default Value ​

The default value is:

json
false
Opens in mermaid.ai