主题
布局
🌐 Layouts
此页面列出了 Mermaid 图表支持的可用布局算法。
🌐 This page lists the available layout algorithms supported in Mermaid diagrams.
支持的布局
🌐 Supported Layouts
- elk: ELK(Eclipse 布局内核)
- tidy-tree:用于层级图的整洁树布局 整洁树配置
- cose-bilkent:用于力导向图的 Cose Bilkent 布局
- dagre:用于分层图的Dagre布局
使用方法
🌐 How to Use
你可以在图表的 YAML 配置或初始化选项中指定布局。例如:
🌐 You can specify the layout in your diagram's YAML config or initialization options. For example: