mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
38 lines
975 B
HTML
38 lines
975 B
HTML
<html>
|
|
<head>
|
|
<link
|
|
href="https://fonts.googleapis.com/css?family=Montserrat&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
|
|
</head>
|
|
<body>
|
|
<h1>info below</h1>
|
|
<div style="display: flex;">
|
|
<div class="mermaid">stateDiagram
|
|
[*] --> State1
|
|
State1 --> State2 : Transition 1
|
|
State1 --> State3 : Transition 2
|
|
State1 --> State4 : Transition 3
|
|
State1 --> State5 : Transition 4
|
|
State2 --> State3 : Transition 5
|
|
State1 --> [*]
|
|
</div>
|
|
</div>
|
|
<script src="./mermaid.js"></script>
|
|
<script>
|
|
mermaid.initialize({
|
|
theme: 'forest',
|
|
// arrowMarkerAbsolute: true,
|
|
// themeCSS: '.node rect { fill: red; }',
|
|
logLevel: 3,
|
|
flowchart: { curve: 'linear' },
|
|
gantt: { axisFormat: '%m/%d/%Y' },
|
|
sequence: { actorMargin: 50 },
|
|
// sequenceDiagram: { actorMargin: 300 } // deprecated
|
|
});
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</html>
|