From f0162557c511de5ace1edf71c0e8920dfcd316f8 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Wed, 17 Jun 2020 18:16:24 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=C2=A0#1474=20Handling=20transitions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cypress/platform/current.html | 84 ++++++++++++++----------- docs/index.html | 2 +- src/dagre-wrapper/edges.js | 88 +++++++++++++++++++++------ src/dagre-wrapper/edges.spec.js | 63 +++++++++++++++++++ src/dagre-wrapper/index.js | 4 +- src/dagre-wrapper/mermaid-graphlib.js | 12 ++-- 6 files changed, 193 insertions(+), 60 deletions(-) create mode 100644 src/dagre-wrapper/edges.spec.js diff --git a/cypress/platform/current.html b/cypress/platform/current.html index b95b8c19e4..ba896f143f 100644 --- a/cypress/platform/current.html +++ b/cypress/platform/current.html @@ -4,15 +4,16 @@ href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet" /> +

info below

-
+
+
+flowchart BT + subgraph two + b1 + end + subgraph three + c1-->c2 + end + c1 --apa apa apa--> b1 + two --> c2 +
+
flowchart TB - subgraph 1 - A --> B; - A -.-> C; - A ==> D; - A ==> E; - B <--> F - C <--> F - D <--> F - E <--> F - end - subgraph 2 - A2 --x B2; - A2 -.-x C2; - A2 ==x D2; - A2 ==x E2; - B2 x--x F2 - C2 x--x F2 - D2 x--x F2 - E2 x--x F2 - end - subgraph 3 - A3 --o B3; - A3 -.-o C3; - A3 ==o D3; - A3 ==o E3; - B3 o--o F3 - C3 o--o F3 - D3 o--o F3 - E3 o--o F3 - end + subgraph two + b1 + end + subgraph three + c1-->c2 + end + c1 --apa apa apa--> b1 + b1 --> c2 +
+
+ + flowchart RL + subgraph a + b1 -- ok --> b2 + end + a -- sert --> c + c --> d + b1 --> d + a --asd123 --> d +
+
+stateDiagram-v2 + state A { + B1 --> B2: ok + } + A --> C: sert + C --> D + B1 --> D + A --> D: asd123 +
+
+
+
@@ -60,7 +76,7 @@

info below

// console.error('Mermaid error: ', err); }; mermaid.initialize({ - theme: 'dark', + // theme: 'dark', // arrowMarkerAbsolute: true, // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}', logLevel: 0, diff --git a/docs/index.html b/docs/index.html index 4cb7cd430e..86493c169c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,7 +8,7 @@ - + - +