主题
布局
¥Layouts
本页列出了 Mermaid 图表支持的可用布局算法。
¥This page lists the available layout algorithms supported in Mermaid diagrams.
支持的布局
¥Supported Layouts
tidy-tree:层次结构图的整齐树状布局 Tidy Tree 配置
¥tidy-tree: Tidy tree layout for hierarchical diagrams Tidy Tree Configuration
cose-bilkent:用于力导向图的 Cose Bilkent 布局
¥cose-bilkent: Cose Bilkent layout for force-directed graphs
dagre:用于分层图的 Dagre 布局
¥dagre: Dagre layout for layered graphs
如何使用
¥How to Use
你可以在图表的 YAML 配置或初始化选项中指定布局。例如:
¥You can specify the layout in your diagram's YAML config or initialization options. For example: