mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-30 05:36:43 +02:00
state demo: AS descriptions for states in composites
This commit is contained in:

parent
ae25a08fe3
commit
f0b8657423
@@ -161,12 +161,19 @@ title: Very simple diagram
|
|||||||
First --> Second
|
First --> Second
|
||||||
First --> Third
|
First --> Third
|
||||||
|
|
||||||
state First {
|
state "the first composite" as First {
|
||||||
[*] --> 1st
|
[*] --> 1st
|
||||||
1st --> [*]
|
state innerFirst {
|
||||||
|
state "1 in innerFirst" as 1st1st
|
||||||
|
1st2nd: 2 in innerFirst
|
||||||
|
[*] --> 1st1st
|
||||||
|
1st1st --> 1st2nd
|
||||||
|
%% 1st2nd --> 1st
|
||||||
|
}
|
||||||
|
1st --> innerFirst
|
||||||
|
innerFirst --> 2nd
|
||||||
}
|
}
|
||||||
state Second {
|
state Second {
|
||||||
[*] --> 2nd
|
|
||||||
2nd --> [*]
|
2nd --> [*]
|
||||||
}
|
}
|
||||||
state Third {
|
state Third {
|
||||||
|
Reference in New Issue
Block a user