#1343 Add flowchart subroutine node shape

This commit is contained in:
Marc Faber
2020-04-10 00:14:41 +02:00
parent 9f8a0234aa
commit 7f67435cb9
9 changed files with 82 additions and 2 deletions

View File

@@ -652,4 +652,23 @@ describe('Flowchart', () => {
{ flowchart: { htmlLabels: false } }
);
});
it('32: Render Subroutine shape', () => {
imgSnapshotTest(
`graph LR
A[[subroutine shape test]]
A -->|Get money| B[[Go shopping]]
B --> C[[Let me think...<br />Do I want something for work,<br />something to spend every free second with,<br />or something to get around?]]
C -->|One| D[[Laptop]]
C -->|Two| E[[iPhone]]
C -->|Three| F[[Car<br/>wroom wroom]]
click A "index.html#link-clicked" "link test"
click B testClick "click test"
classDef someclass fill:#f96;
class A someclass;
class C someclass;
`,
{ flowchart: { htmlLabels: false } }
);
});
});