From 9134e1c837f5b8a0731caf06c5557b8af3b401ee Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Wed, 21 Aug 2024 16:11:59 +0200 Subject: [PATCH] #5237 Clean and fix for issue with edges to the diamond shape --- cypress/platform/knsv2.html | 24 ++++--- packages/mermaid-layout-elk/src/render.ts | 66 ++++--------------- .../rendering-elements/edges.js | 21 ++++++ .../mermaid/src/schemas/config.schema.yaml | 2 +- 4 files changed, 51 insertions(+), 62 deletions(-) diff --git a/cypress/platform/knsv2.html b/cypress/platform/knsv2.html index 4cd42bd247..269ee0f0e7 100644 --- a/cypress/platform/knsv2.html +++ b/cypress/platform/knsv2.html @@ -86,14 +86,20 @@ --- config: look: handDrawn - flowchart: - htmlLabels: false + layout: elk + elk: + nodePlacementStrategy: BRANDES_KOEPF --- -flowchart - A[I am a long text, where do I go??? handdrawn - false] +flowchart TB + %% A --> C + B -- sdf sdf --> C{"Evaluate"} + C --> n4["salkdfjh akljd lkasdjf lkashj lksjadf klasdh"] + C --> F + + -
+      
 ---
 config:
   look: handdrawn
@@ -106,7 +112,7 @@
       >
     
     
-
+      
 ---
 config:
   flowchart:
@@ -116,7 +122,7 @@
       A[I am a long text, where do I go??? classic - false]
 
-
+      
 ---
 config:
   flowchart:
@@ -159,8 +165,8 @@