#5237 Fix for edges in when using elk and subgraphs regarding offset and direction of marker in some edge cases

This commit is contained in:
Knut Sveidqvist
2024-06-09 15:32:28 +02:00
parent 1b29135cc1
commit 7fbe1661ec
7 changed files with 119 additions and 67 deletions

View File

@@ -75,22 +75,28 @@
</style>
</head>
<body>
<pre id="diagram" class="mermaid2">
stateDiagram-v2
state if_state <<choice>>
[*] --> IsPositive
IsPositive --> if_state
if_state --> False: if n < 0
if_state --> True : if n >= 0
<pre id="diagram" class="mermaid">
stateDiagram
direction LR
state Gorilla0 {
state Apa0 {
A0 --> B0
}
}
Apa0 --> C0
A0 --> C0
</pre
>
<pre id="diagram" class="mermaid">
flowchart LR
subgraph Apa
A[Start] --> B
subgraph Gorilla
subgraph Apa
A[A] --- B
end
end
Apa --> C
A --> C
Apa --- C
A --x C
</pre
>
@@ -117,7 +123,7 @@ flowchart LR
if_state --> True : if n >= 0
</pre
>
<pre id="diagram" class="mermaid2">
<pre id="diagram" class="mermaid3">
%%{init: {"layout": "elk", "mergeEdges": false, "elk.nodePlacement.strategy": "SIMPLE"} }%%
stateDiagram
state if_state &lt;&lt;choice&gt;&gt;
@@ -132,8 +138,10 @@ flowchart LR
stateDiagram
direction TB
State T1 {
T11
T11 --> T12
}
T1 --> T2
T11 --> T2
</pre
>
<pre id="diagram" class="mermaid2">
@@ -220,7 +228,7 @@ stateDiagram-v2
look: 'handdrawn',
// 'elk.nodePlacement.strategy': 'NETWORK_SIMPLEX',
// layout: 'dagre',
// layout: 'elk',
layout: 'elk',
// layout: 'fixed',
// htmlLabels: false,
flowchart: { titleTopMargin: 10 },