mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-06 07:39:48 +02:00
#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:
@@ -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 <<choice>>
|
||||
@@ -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 },
|
||||
|
Reference in New Issue
Block a user