930 B36 lines
Blame
1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 <title>Mermaid Flowchart ELK Test Page</title>
7 </head>
8
9 <body>
10 <h1>Flowchart ELK</h1>
11 <pre class="mermaid">
12 flowchart-elk TD
13 A([Start]) ==> B[Step 1]
14 B ==> C{Flow 1}
15 C -- Choice 1.1 --> D[Step 2.1]
16 C -- Choice 1.3 --> I[Step 2.3]
17 C == Choice 1.2 ==> E[Step 2.2]
18 D --> F{Flow 2}
19 E ==> F{Flow 2}
20 F{Flow 2} == Choice 2.1 ==> H[Feedback node]
21 H[Feedback node] ==> B[Step 1]
22 F{Flow 2} == Choice 2.2 ==> G((Finish))
23
24 </pre>
25
26 <script type="module">
27 import mermaid from './mermaid.esm.mjs';
28 import flowchartELK from './mermaid-flowchart-elk.esm.mjs';
29 await mermaid.registerExternalDiagrams([flowchartELK]);
30 mermaid.initialize({
31 logLevel: 3,
32 });
33 </script>
34 </body>
35</html>
36