Untitled object in Mermaid Config Schema
https://mermaid.js.org/schemas/config.schema.json#/properties/layeredOptions for the layered layout (beta), used with layout: layered.
| 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* |
layered Type
object (Details)
layered Properties
| Property | Type | Required | Nullable | Defined by |
|---|---|---|---|---|
| edgeRouting | string | Optional | cannot be null | Mermaid Config |
| lineHops | Merged | Optional | cannot be null | Mermaid Config |
edgeRouting
How the layered layout routes edges between nodes.
rounded: edges run on tracks between ranks with radius-5 rounded corners (smaller on short segments).curved: each edge runs as smooth curves between ranks.stepped: edges run on tracks between ranks; each turn is softened over at most 12 px.straight: each edge runs as straight lines from point to point.
edgeRouting
is optional
Type:
stringcannot be null
defined in: Mermaid Config
edgeRouting Type
string
edgeRouting Constraints
enum: the value of this property must be equal to one of the following values:
| Value | Explanation |
|---|---|
"rounded" | |
"curved" | |
"stepped" | |
"straight" |
edgeRouting Default Value
The default value is:
"rounded"lineHops
Renders edge crossings as small arcs ("hops") or visible gaps, so that it is clear which line passes over which where two edges meet, as the elk layout does.
The edge that gives way loses its corner rounding for the segment carrying the hop, which is the trade for a readable crossing. Curved edges (edgeRouting: curved) are skipped rather than rewritten, to avoid corrupting their geometry. Set to false to draw plain crossings.
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:
true