mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 18:30:10 +02:00
Update documentation
This commit is contained in:
@@ -74,7 +74,7 @@ There are six types of arrows currently supported:
|
|||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
It is possible to add notes to a sequence diagram. This is done by the notation
|
It is possible to add notes to a sequence diagram. This is done by the notation
|
||||||
Note [ right | left ] of [Actor]: Text in note content
|
Note [ right of | left of | over ] [Actor]: Text in note content
|
||||||
|
|
||||||
See the example below:
|
See the example below:
|
||||||
```
|
```
|
||||||
@@ -92,18 +92,17 @@ sequenceDiagram
|
|||||||
Note right of John: Text in note
|
Note right of John: Text in note
|
||||||
```
|
```
|
||||||
|
|
||||||
It is possible to break text into different rows by using <br/> as a line breaker.
|
It is also possible to create notes spanning two participants:
|
||||||
```
|
```
|
||||||
%% Example of sequence diagram
|
|
||||||
sequenceDiagram
|
sequenceDiagram
|
||||||
participant John
|
Alice->John: Hello John, how are you?
|
||||||
Note left of John: Text in note spanning several rows.
|
Note over Alice,John: A typical interaction
|
||||||
```
|
```
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
sequenceDiagram
|
sequenceDiagram
|
||||||
participant John
|
Alice->John: Hello John, how are you?
|
||||||
Note left of John: Text in note spanning several rows.
|
Note over Alice,John: A typical interaction
|
||||||
```
|
```
|
||||||
|
|
||||||
## Loops
|
## Loops
|
||||||
|
Reference in New Issue
Block a user