diff --git a/demos/state.html b/demos/state.html index 7f85fceb1..57f89779c 100644 --- a/demos/state.html +++ b/demos/state.html @@ -15,6 +15,7 @@
stateDiagram accTitle: This is the accessible title @@ -24,16 +25,43 @@
+This has classDef statements to apply style classes to specific states
+Here are the
+classDef
statements:+
++ classDef notMoving fill:white
+
+ classDef movement font-style:italic;
+ classDef badBadEvent fill:#f00,color:white,font-weight:bold
+And these are how they are applied:
++
+ class Still notMoving
+
+ class Moving, Crash movement
+ class Crash badBadEvent
+stateDiagram-v2 accTitle: This is the accessible title accDescr: This is an accessible description + + classDef notMoving fill:white + classDef movement font-style:italic; + classDef badBadEvent fill:#f00,color:white,font-weight:bold + [*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*] + + class Still notMoving + class Moving, Crash movement + class Crash badBadEvent +
@@ -46,14 +74,29 @@
- stateDiagram + + + stateDiagram-v2 [*] --> First + First --> Second + First --> Third + state First { - [*] --> second - second --> [*] + [*] --> 1st + 1st --> [*] } + state Second { + [*] --> 2nd + 2nd --> [*] + } + state Third { + [*] --> 3rd + 3rd --> [*] + } + +
stateDiagram