From 67aed51742557fabf7e3338d59d6d1e6689bf11a Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Fri, 1 May 2020 19:18:07 +0200 Subject: [PATCH] #1382 Fix for lost parentage for nodes in deep structure --- cypress/platform/current.html | 27 +++---- docs/examples.md | 2 +- docs/index.html | 3 +- docs/stateDiagram.md | 6 +- src/dagre-wrapper/index.js | 2 +- src/dagre-wrapper/mermaid-graphlib.js | 26 +++++-- src/dagre-wrapper/mermaid-graphlib.spec.js | 82 +++++++++++++++------- 7 files changed, 98 insertions(+), 50 deletions(-) diff --git a/cypress/platform/current.html b/cypress/platform/current.html index 26b0d88cc..6bcf91507 100644 --- a/cypress/platform/current.html +++ b/cypress/platform/current.html @@ -41,21 +41,22 @@
stateDiagram-v2 - [*] --> Active + [*] --> First - state Active { - [*] --> NumLockOff - NumLockOff --> NumLockOn : EvNumLockPressed - NumLockOn --> NumLockOff : EvNumLockPressed - -- - [*] --> CapsLockOff - CapsLockOff --> CapsLockOn : EvCapsLockPressed - CapsLockOn --> CapsLockOff : EvCapsLockPressed - -- - [*] --> ScrollLockOff - ScrollLockOff --> ScrollLockOn : EvCapsLockPressed - ScrollLockOn --> ScrollLockOff : EvCapsLockPressed + state First { + [*] --> Second + + state Second { + [*] --> second + second --> Third + + state Third { + [*] --> third + third --> [*] + } + } } +
stateDiagram-v2 diff --git a/docs/examples.md b/docs/examples.md index 127173384..2a00995e5 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -21,7 +21,7 @@ pie title What Voldemort doesn't have? "FRIENDS" : 2 "FAMILY" : 3 "NOSE" : 45 -``` +``` ## Basic sequence diagram ``` diff --git a/docs/index.html b/docs/index.html index c3bdbb17b..5b6c79aef 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,7 +7,8 @@ - + +