Merge pull request #4600 from tomperr/docs/4558-multiple-vertices-with-style

docs(flowchart): add documentation on multiple nodes style
This commit is contained in:
Sidharth Vinod
2023-07-06 04:10:43 +00:00
committed by GitHub
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