mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
docs(flowchart): add documentation on multiple nodes style
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user