| 1 | <html> |
| 2 | <head> |
| 3 | <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" /> |
| 4 | <style> |
| 5 | body { |
| 6 | background: white; |
| 7 | } |
| 8 | h1 { |
| 9 | color: white; |
| 10 | } |
| 11 | .arrowheadPath { |
| 12 | fill: red; |
| 13 | } |
| 14 | |
| 15 | .edgePath .path { |
| 16 | stroke: red; |
| 17 | } |
| 18 | </style> |
| 19 | </head> |
| 20 | <body> |
| 21 | <h1>info below</h1> |
| 22 | <div style="display: flex; width: 100%; height: 100%"> |
| 23 | <pre id="huge" class="mermaid" style="width: 100%; height: 100%"> |
| 24 | graph LR; |
| 25 | </pre> |
| 26 | </div> |
| 27 | <script type="module"> |
| 28 | const nodes = ('A-->B;B-->A;'.repeat(415) + 'AB;').repeat(57) + 'A-->B;B-->A;'.repeat(275); |
| 29 | document.getElementById('huge').innerHTML += nodes; |
| 30 | |
| 31 | import mermaid from './mermaid.esm.mjs'; |
| 32 | mermaid.initialize({ |
| 33 | theme: 'dark', |
| 34 | // arrowMarkerAbsolute: true, |
| 35 | // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}', |
| 36 | logLevel: 0, |
| 37 | flowchart: { curve: 'linear', htmlLabels: false }, |
| 38 | // gantt: { axisFormat: '%m/%d/%Y' }, |
| 39 | sequence: { actorMargin: 50 }, |
| 40 | // sequenceDiagram: { actorMargin: 300 } // deprecated |
| 41 | }); |
| 42 | </script> |
| 43 | </body> |
| 44 | </html> |
| 45 | |