ElkLayoutSpec

Configures the ELK layout engine in Mermaid.

See the Mermaid docs

Properties

Link copied to clipboard

Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting. Implicit default is ConsiderModelOrder.NodesAndEdges.

Link copied to clipboard

This strategy decides how to find cycles in the graph and deciding which edges need adjustment to break loops. Implicit default is CycleBreakingStrategy.GreedyModelOrder.

Link copied to clipboard

The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder to NODES_AND_EDGES. Implicit default of false.

Link copied to clipboard
abstract var mergeEdges: Boolean?

Option to allow edges to share path where it's convenient. It can make for pretty diagrams but can also make it harder to read in some cases.

Link copied to clipboard

Elk specific option affecting how nodes are placed. Implicit default is NodePlacementStrategy.BrandesKoepf.