Skip to content

Untitled string in Mermaid Config Schema

txt
https://mermaid.js.org/schemas/config.schema.json#/properties/elk/properties/layeringStrategy

Elk specific option deciding which layer each node is assigned to — the column in a left-to-right diagram, the row in a top-down one. This is the coarsest of the three placement decisions, so changing it moves nodes further than anything else short of altering spacing.

NETWORK_SIMPLEX aims for the fewest long edges. LONGEST_PATH pushes every node as late as it can go. COFFMAN_GRAHAM bounds how many nodes share a layer, giving a more even, block-like shape on wide graphs. MIN_WIDTH and STRETCH_WIDTH trade edge length for a narrower or wider drawing. INTERACTIVE honours positions already on the nodes.

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

layeringStrategy Type

string

layeringStrategy Constraints

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

ValueExplanation
"NETWORK_SIMPLEX"
"LONGEST_PATH"
"LONGEST_PATH_SOURCE"
"COFFMAN_GRAHAM"
"MIN_WIDTH"
"STRETCH_WIDTH"
"INTERACTIVE"
Opens in mermaid.ai