mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
Set generation to gen-2 in clear
This commit is contained in:
parent
0695893e30
commit
f5bae98098
@ -62,56 +62,23 @@
|
|||||||
|
|
||||||
<body style="display: flex; gap: 2rem; flex-direction: row">
|
<body style="display: flex; gap: 2rem; flex-direction: row">
|
||||||
<pre id="diagram4" class="mermaid">
|
<pre id="diagram4" class="mermaid">
|
||||||
flowchart LR
|
flowchart
|
||||||
A@{ icon: "fa:window-minimize", form: circle }
|
A --> A
|
||||||
E@{ icon: "fa:window-minimize", form: circle }
|
subgraph B
|
||||||
B@{ icon: "fa:bell", form: circle }
|
B1 --> B1
|
||||||
B2@{ icon: "fa:bell", form: circle }
|
end
|
||||||
C@{ icon: "fa:address-book", form: square }
|
subgraph C
|
||||||
D@{ icon: "fa:star-half", form: square }
|
subgraph C1
|
||||||
A --> E
|
C2 --> C2
|
||||||
B --> B2
|
subgraph D
|
||||||
|
D1 --> D1
|
||||||
|
end
|
||||||
|
D --> D
|
||||||
|
end
|
||||||
|
C1 --> C1
|
||||||
|
end
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
<pre id="diagram4" class="mermaid2">
|
|
||||||
flowchart TB
|
|
||||||
A --test2--> B2@{ icon: "fa:bell", form: "rounded", label: "B2 aiduaid uyawduad uaduabd uyduadb", pos: "b" }
|
|
||||||
B2 --test--> C
|
|
||||||
D --> B2 --> E
|
|
||||||
style B2 fill:#f9f,stroke:#333,stroke-width:4px
|
|
||||||
</pre
|
|
||||||
>
|
|
||||||
<pre id="diagram43" class="mermaid2">
|
|
||||||
flowchart BT
|
|
||||||
A --test2--> B2@{ icon: "fa:bell", form: "square", label: "B2", pos: "t", h: 40, w: 30 }
|
|
||||||
B2 --test--> C
|
|
||||||
D --> B2 --> E
|
|
||||||
</pre
|
|
||||||
>
|
|
||||||
<pre id="diagram4" class="mermaid2">
|
|
||||||
flowchart BT
|
|
||||||
A --test2--> B2@{ icon: "fa:bell", label: "B2 awiugdawu uydgayuiwd wuydguy", pos: "b", h: 40, w: 30 }
|
|
||||||
B2 --test--> C
|
|
||||||
</pre
|
|
||||||
>
|
|
||||||
<pre id="diagram43" class="mermaid2">
|
|
||||||
flowchart BT
|
|
||||||
A --test2--> B2@{ icon: "fa:bell", label: "B2 dawuygd ayuwgd uy", pos: "t", h: 40, w: 30 }
|
|
||||||
B2 --test--> C
|
|
||||||
</pre
|
|
||||||
>
|
|
||||||
<pre id="diagram6" class="mermaid2">
|
|
||||||
flowchart TB
|
|
||||||
A --> B2@{ icon: "fa:bell", form: "circle", label: "test augfuyfavf ydvaubfuac", pos: "t", w: 200, h: 100 } --> C
|
|
||||||
</pre
|
|
||||||
>
|
|
||||||
<pre id="diagram6" class="mermaid2">
|
|
||||||
flowchart TB
|
|
||||||
A --> B2@{ icon: "fa:bell", form: "circle", label: "test augfuyfavf ydvaubfuac", pos: "b", w: 200, h: 100 } --> C
|
|
||||||
D --> B2 --> E
|
|
||||||
</pre
|
|
||||||
>
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import mermaid from './mermaid.esm.mjs';
|
import mermaid from './mermaid.esm.mjs';
|
||||||
import layouts from './mermaid-layout-elk.esm.mjs';
|
import layouts from './mermaid-layout-elk.esm.mjs';
|
||||||
|
@ -521,7 +521,7 @@ You have to call mermaid.initialize.`
|
|||||||
* Clears the internal graph db so that a new graph can be parsed.
|
* Clears the internal graph db so that a new graph can be parsed.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public clear = (ver = 'gen-1') => {
|
public clear = (ver = 'gen-2') => {
|
||||||
this.vertices = new Map();
|
this.vertices = new Map();
|
||||||
this.classes = new Map();
|
this.classes = new Map();
|
||||||
this.edges = [];
|
this.edges = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user