docs(flowchart): add documentation on multiple nodes style

This commit is contained in:
Tom PERRILLAT-COLLOMB
2023-07-05 20:57:37 +02:00
parent c742ac71a4
commit fcb25aee7c
2 changed files with 28 additions and 0 deletions

View File

@@ -991,6 +991,24 @@ flowchart LR
classDef someclass fill:#f96 classDef someclass fill:#f96
``` ```
This form can be used when declaring multiple links between nodes:
```mermaid-example
flowchart LR
A:::foo & B:::bar --> C:::foobar
classDef foo stroke:#f00
classDef bar stroke:#0f0
classDef foobar stroke:#00f
```
```mermaid
flowchart LR
A:::foo & B:::bar --> C:::foobar
classDef foo stroke:#f00
classDef bar stroke:#0f0
classDef foobar stroke:#00f
```
### Css classes ### Css classes
It is also possible to predefine classes in css styles that can be applied from the graph definition as in the example It is also possible to predefine classes in css styles that can be applied from the graph definition as in the example

View File

@@ -676,6 +676,16 @@ flowchart LR
classDef someclass fill:#f96 classDef someclass fill:#f96
``` ```
This form can be used when declaring multiple links between nodes:
```mermaid-example
flowchart LR
A:::foo & B:::bar --> C:::foobar
classDef foo stroke:#f00
classDef bar stroke:#0f0
classDef foobar stroke:#00f
```
### Css classes ### Css classes
It is also possible to predefine classes in css styles that can be applied from the graph definition as in the example It is also possible to predefine classes in css styles that can be applied from the graph definition as in the example