layout

abstract fun layout(action: Action<MermaidLayoutSpec>)(source)


Set a custom layout engine for the diagram. Unset by default, but mermaid will fall back to "dagre". Use MermaidLayoutSpec.properties to set any custom key/value properties. See the Mermaid docs