mermaid/cypress/platform/flow-elk.html

29 lines
635 B
HTML
Raw Permalink Normal View History

<html>
<body>
<pre class="mermaid">
flowchart-elk
a[hello] --> b[world]
b --> c{test}
c --> one
c --> two
c --> three
</pre>
<script type="module">
import mermaid from './mermaid.esm.mjs';
2023-11-24 06:24:43 +01:00
import elk from './mermaid-flowchart-elk.esm.min.mjs';
if (window.location.search.includes('elk')) {
await mermaid.registerExternalDiagrams([elk]);
}
mermaid.initialize({
logLevel: 3,
2023-11-23 18:21:08 +01:00
startOnLoad: false,
});
2023-11-23 18:21:08 +01:00
await mermaid.run();
if (window.Cypress) {
window.rendered = true;
}
</script>
</body>
</html>