Skip to content

mermaid: support for layout ELK, TIDY TREE missing since v11 #1937

@volkb79

Description

@volkb79

even though kroki parses a example mmd with the following content withtout error, it is still drawn with dagre instead of elk:

---
config:
  layout: elk
  theme: forest
flowchart:
  defaultRenderer: elk
elk:
  mergeEdges: true
  nodePlacementStrategy: NETWORK_SIMPLEX
  considerModelOrder: NODES_AND_EDGES

---
%% Component diagram high level
graph LR
  subgraph Infrastructure
    PG[(Postgres)]
    REDIS[(Redis)]
    CADV[cAdvisor]
    OTEL[OpenTelemetry Collector]
    SKY[SkyWalking / APM]
  end

in the chunk for flowDiagram we find:

Q.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using dagre layout as a fallback.")

apparently since mermaid v11 alternative layout have been moved to separate packages like
https://github.com/mermaid-js/mermaid/releases/tag/%40mermaid-js%2Flayout-tidy-tree%400.2.0
https://github.com/mermaid-js/mermaid/releases/tag/%40mermaid-js%2Flayout-elk%400.2.0

so we need integration of these renderers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions