#MC-1733 Support for subgraphs in fixed layout

This commit is contained in:
Knut Sveidqvist
2024-06-03 15:02:05 +02:00
parent 8d1539f2d7
commit a36f1d1656
5 changed files with 58 additions and 15 deletions

View File

@@ -105,6 +105,12 @@ stateDiagram
S:Stillas
T:Tiger
U:Ulv
state Z {
state X {
Y:Ypsilon
}
}
A
S --> T: angrepp
T --> U: Apa
@@ -116,7 +122,11 @@ stateDiagram
S: { x: 0, y: 0 },
T: { x: 100, y: 100, width: 100, height: 100 },
U: { x: 200, y: 200 },
V: { x: 300, y: 100 },
V: { x: 300, y: 120 },
Z: { x: 300, y: 10, width: 160, height: 100 },
X: { x: 300, y: 20, width: 80, height: 60 },
Y: { x: 300, y: 30, width: 50, height: 20 },
A: { x: 300, y: 75, width: 20, height: 20 },
},
edges: {
edge0: {

View File

@@ -211,7 +211,7 @@ stateDiagram
end note
</pre
>
<pre id="diagram" class="mermaid2">
<pre id="diagram" class="mermaid">
stateDiagram-v2
direction LR
[*] --> Active
@@ -237,9 +237,9 @@ stateDiagram-v2
handdrawnSeed: 12,
look: 'handdrawn',
'elk.nodePlacement.strategy': 'NETWORK_SIMPLEX',
// layout: 'dagre',
layout: 'dagre',
// layout: 'elk',
layout: 'fixed',
// layout: 'fixed',
flowchart: { titleTopMargin: 10 },
// fontFamily: 'Caveat',
fontFamily: 'Kalam',