add support for cloud and bang shape

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-07-24 18:07:25 +05:30
parent d5cb4eaa59
commit ccafc20917
5 changed files with 298 additions and 2 deletions

View File

@@ -105,6 +105,126 @@ root))bang((
);
});
it('Bang and cloud shape with dagre layout', () => {
imgSnapshotTest(
`---
config:
layout: dagre
---
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
`,
{},
undefined,
shouldHaveRoot
);
});
it('Bang and cloud shape with elk layout', () => {
imgSnapshotTest(
`---
config:
layout: elk
---
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
`,
{},
undefined,
shouldHaveRoot
);
});
it('Bang and cloud shape with cose-bilkent layout', () => {
imgSnapshotTest(
`---
config:
layout: cose-bilkent
---
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
`,
{},
undefined,
shouldHaveRoot
);
});
it('Bang and cloud shape with tidy-tree layout', () => {
imgSnapshotTest(
`---
config:
layout: tidy-tree
---
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectiveness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
`,
{},
undefined,
shouldHaveRoot
);
});
it('braches', () => {
imgSnapshotTest(
`mindmap