mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 02:09:50 +02:00
Adding support for loops to the sequence diagram grammar.
This commit is contained in:
@@ -58,9 +58,10 @@
|
||||
<div class="mermaid">
|
||||
sequenceDiagram
|
||||
Alice->Bob: Hello Bob, how are you?
|
||||
Note right of Alice: Bob thinks about <br/> things <br/> to think about
|
||||
Note left of Bob: Bob thinks about <br/> things <br/> to think about
|
||||
Bob-->Alice: I am good thanks!
|
||||
Bob-->John the Long: How about you John?
|
||||
|
||||
Bob-->Alice: Checking with John...
|
||||
Alice->John the Long: Yes... John, how are you?
|
||||
John the Long-->Alice: Better then you!
|
||||
@@ -68,9 +69,9 @@
|
||||
|
||||
<div class="mermaid">
|
||||
graph LR;
|
||||
A[Start]-->B{a = '1,2'};
|
||||
B-->|True|C[test = 1];
|
||||
B-->|False|Z[Store];
|
||||
A[Start]-->B{a = '1,2'}
|
||||
B-->|True|C[test = 1]
|
||||
B-->|False|Z[Store]
|
||||
C-->D{condition};
|
||||
D-->|True|E[test = 2];
|
||||
D-->|False|F[test = 3];
|
||||
|
Reference in New Issue
Block a user