fix: cose-bilkent as the default layout for mindmaps

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-08-20 21:00:27 +05:30
parent c88f74a6ee
commit 61d9143acb
3 changed files with 21 additions and 5 deletions

View File

@@ -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 };
};