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
lineHopsMergedOptionalcannot be nullMermaid Config
ignoreCrossLaneEdgesbooleanOptionalcannot be nullMermaid Config
optimizeRanksByCrossingsbooleanOptionalcannot be nullMermaid Config
automaticLaneOrderingbooleanOptionalcannot be nullMermaid Config

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