#5237 Setting layout algorithm and handrawn or not via configuration

This commit is contained in:
Knut Sveidqvist
2024-05-06 14:42:36 +02:00
parent 39bffcb3a0
commit 323737f3a6
7 changed files with 55 additions and 12 deletions

View File

@@ -75,10 +75,15 @@
<pre id="diagram" class="mermaid">
stateDiagram-v2
Chimp --> A
Chimp --> B
Chimp --> C
</pre
>
<pre id="diagram" class="mermaid">
---
handdrawn: false
---
stateDiagram-v2
state First {
second
@@ -95,10 +100,17 @@ stateDiagram-v2
</pre
>
<pre id="diagram" class="mermaid2">
flowchart TB
subgraph First
Second
end
stateDiagram-v2
state fork_state <<fork>>
[*] --> fork_state
fork_state --> State2
fork_state --> State3
state join_state <<join>>
State2 --> join_state
State3 --> join_state
join_state --> State4
State4 --> [*]
</pre>
<pre id="diagram" class="mermaid2">
flowchart TB
@@ -474,8 +486,9 @@ mindmap
// useMaxWidth: false,
// });
mermaid.initialize({
handdrawn: true,
layout: 'elk',
flowchart: { titleTopMargin: 10 },
/* fontFamily: 'Kalam', */
fontFamily: 'Caveat',
sequence: {
actorFontFamily: 'courier',