mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
75 lines
1.5 KiB
HTML
75 lines
1.5 KiB
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
|
|
state P {
|
|
Child
|
|
}
|
|
</div>
|
|
|
|
<div class="mermaid">stateDiagram
|
|
state P {
|
|
state Par {
|
|
Child
|
|
}
|
|
}
|
|
</div>
|
|
<div class="mermaid">stateDiagram
|
|
state P {
|
|
state GPar {
|
|
state Parent {
|
|
TheLongChild
|
|
}
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
<div style="display: flex;">
|
|
<div class="mermaid">stateDiagram
|
|
state Parent {
|
|
C
|
|
}
|
|
</div>
|
|
|
|
<div class="mermaid">stateDiagram
|
|
state PilotCockpit {
|
|
state Parent {
|
|
C
|
|
}
|
|
}
|
|
</div>
|
|
<div class="mermaid">stateDiagram
|
|
state PilotCockpit {
|
|
state GParent {
|
|
state Parent {
|
|
Child
|
|
}
|
|
}
|
|
}
|
|
</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>
|