mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-30 20:59:36 +02:00
fix: cose-bilkent as the default layout for mindmaps
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
@@ -29,7 +29,7 @@ const processFrontmatter = (code: string) => {
|
||||
config.gantt.displayMode = displayMode;
|
||||
}
|
||||
if (diagramType === 'mindmap' && !config.layout) {
|
||||
config.layout = 'tidy-tree';
|
||||
config.layout = 'cose-bilkent'; // Default layout for mindmap
|
||||
}
|
||||
return { title, config, text };
|
||||
};
|
||||
|
Reference in New Issue
Block a user