mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
updated test for icon shape
This commit is contained in:
parent
4d04d1a8c3
commit
edb99c2842
@ -109,3 +109,13 @@ looks.forEach((look) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('Test iconShape with different h', () => {
|
||||||
|
it('with different h', () => {
|
||||||
|
let flowchartCode = `flowchart TB\n`;
|
||||||
|
const icon = 'fa:bell';
|
||||||
|
const iconHeight = 64;
|
||||||
|
flowchartCode += ` nA --> nAA@{ icon: '${icon}', label: 'icon with different h', h: ${iconHeight} }@\n`;
|
||||||
|
imgSnapshotTest(flowchartCode);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
@ -62,18 +62,18 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<pre id="diagram4" class="mermaid">
|
<pre id="diagram4" class="mermaid">
|
||||||
flowchart
|
flowchart LR
|
||||||
A --> B2@{ icon: "fa:image", form: "square", label: "test augfuyfavf ydvaubfuac" }@ --> C
|
A --> B2@{ icon: "fa:bell", form: "square", label: "test augfuyfavf ydvaubfuac", pos: "t", h: 400, w: 50 }@ --> C
|
||||||
</pre
|
</pre
|
||||||
>
|
>
|
||||||
<pre id="diagram5" class="mermaid">
|
<pre id="diagram5" class="mermaid2">
|
||||||
flowchart
|
flowchart
|
||||||
A --> B2@{ icon: "fa:image", form: "circle", label: "test augfuyfavf ydvaubfuac" }@ --> C
|
A --> B2@{ icon: "fa:bell", form: "circle", label: "test awbd dauwdug wdgauyd yagyua aygua", pos: "t", w: 50, h: 50 }@ --> C
|
||||||
</pre
|
</pre
|
||||||
>
|
>
|
||||||
<pre id="diagram6" class="mermaid">
|
<pre id="diagram6" class="mermaid2">
|
||||||
flowchart
|
flowchart
|
||||||
A --> B2@{ icon: "fa:image", label: "test augfuyfavf ydvaubfuac" }@ --> C
|
A --> B2@{ icon: "fa:bell", label: "test augfuyfavf ydvaubfuac", pos: "t", w: 200, h: 100 }@ --> C
|
||||||
</pre
|
</pre
|
||||||
>
|
>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
@ -112,7 +112,7 @@
|
|||||||
// layout: 'elk',
|
// layout: 'elk',
|
||||||
// layout: 'fixed',
|
// layout: 'fixed',
|
||||||
// htmlLabels: false,
|
// htmlLabels: false,
|
||||||
flowchart: { titleTopMargin: 10, padding: 5, htmlLables: true },
|
flowchart: { titleTopMargin: 10, padding: 50, htmlLables: false },
|
||||||
// fontFamily: 'Caveat',
|
// fontFamily: 'Caveat',
|
||||||
fontFamily: 'Kalam',
|
fontFamily: 'Kalam',
|
||||||
// fontFamily: 'courier',
|
// fontFamily: 'courier',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user