From 9cac8cc4727abef43a6d6483126bd8228dbb517a Mon Sep 17 00:00:00 2001 From: Per Brolin Date: Tue, 18 Jun 2024 15:42:29 +0200 Subject: [PATCH 1/3] MC-1765: WIP Added some flow chart shapes --- cypress/platform/neo-test.html | 343 +++++++++++++++++++++++++++++++++ 1 file changed, 343 insertions(+) diff --git a/cypress/platform/neo-test.html b/cypress/platform/neo-test.html index 1dbf8fbec..5c7acd1d0 100644 --- a/cypress/platform/neo-test.html +++ b/cypress/platform/neo-test.html @@ -1582,6 +1582,349 @@ direction LR + + + + + + + + +
+
+
+            flowchart LR
+            A[Start]
+          
+
+
+ + +
+        %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
+        flowchart LR
+        A[Start]
+      
+ + +
+        %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
+        flowchart LR
+        A[Start]
+    
+ + +
+        %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
+        flowchart LR
+        A[Start]
+    
+ + +
+        %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
+        flowchart LR
+        A[Start]
+    
+ + +
+        %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
+        flowchart LR
+        A[Start]
+    
+ + +
+        %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
+        flowchart LR
+        A[Start]
+    
+ + + + + + + + + + + +
+
+
+          flowchart LR
+          A[Start] --Some text--> B(Continue)
+        
+
+
+ + +
+      %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] --Some text--> B(Continue)
+    
+ + +
+      %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] --Some text--> B(Continue)
+  
+ + +
+      %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] --Some text--> B(Continue)
+    
+ + +
+      %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] --Some text--> B(Continue)
+  
+ + +
+      %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] --Some text--> B(Continue)
+    
+ + +
+      %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+      A[Start] --Some text--> B(Continue)
+    
+ + + + + + + + + + + +
+
+
+          flowchart LR
+            A[Start] -->C{Evaluate}
+            C -- One --> D[Option 1]
+            C -- Two --> E[Option 2]
+            C -- Three --> F[fa:fa-car Option 3]
+        
+
+
+ + +
+      %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] -->C{Evaluate}
+        C -- One --> D[Option 1]
+        C -- Two --> E[Option 2]
+        C -- Three --> F[fa:fa-car Option 3]
+    
+ + +
+      %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] -->C{Evaluate}
+        C -- One --> D[Option 1]
+        C -- Two --> E[Option 2]
+        C -- Three --> F[fa:fa-car Option 3]
+  
+ + +
+      %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] -->C{Evaluate}
+        C -- One --> D[Option 1]
+        C -- Two --> E[Option 2]
+        C -- Three --> F[fa:fa-car Option 3]
+    
+ + +
+      %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] -->C{Evaluate}
+        C -- One --> D[Option 1]
+        C -- Two --> E[Option 2]
+        C -- Three --> F[fa:fa-car Option 3]
+  
+ + +
+      %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] -->C{Evaluate}
+        C -- One --> D[Option 1]
+        C -- Two --> E[Option 2]
+        C -- Three --> F[fa:fa-car Option 3]
+    
+ + +
+      %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+        A[Start] -->C{Evaluate}
+        C -- One --> D[Option 1]
+        C -- Two --> E[Option 2]
+        C -- Three --> F[fa:fa-car Option 3]
+    
+ + + + + + + + + + + + +
+
+
+              flowchart LR
+                subgraph TOP
+                  direction TB
+                  subgraph B1
+                  direction RL
+                  i1 -->f1
+                end
+              end
+              A --> TOP --> B
+              B1 --> B2
+            
+
+
+ + +
+          %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
+          flowchart LR
+            subgraph TOP
+              direction TB
+              subgraph B1
+                direction RL
+                i1 -->f1
+              end
+            end
+          A --> TOP --> B
+          B1 --> B2
+        
+ + +
+          %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
+          flowchart LR
+            subgraph TOP
+              direction TB
+              subgraph B1
+                direction RL
+                i1 -->f1
+              end
+            end
+          A --> TOP --> B
+          B1 --> B2
+      
+ + +
+          %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
+          flowchart LR
+            subgraph TOP
+              direction TB
+              subgraph B1
+                direction RL
+                i1 -->f1
+              end
+            end
+          A --> TOP --> B
+          B1 --> B2
+        
+ + +
+          %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
+          flowchart LR
+            subgraph TOP
+              direction TB
+              subgraph B1
+                direction RL
+                i1 -->f1
+              end
+            end
+          A --> TOP --> B
+          B1 --> B2
+      
+ + +
+          %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
+          flowchart LR
+          subgraph TOP
+            direction TB
+            subgraph B1
+              direction RL
+              i1 -->f1
+            end
+          end
+        A --> TOP --> B
+        B1 --> B2
+        
+ + +
+          %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
+          flowchart LR
+          subgraph TOP
+            direction TB
+            subgraph B1
+              direction RL
+              i1 -->f1
+            end
+          end
+        A --> TOP --> B
+        B1 --> B2
+        
+ + + + + + + + + + Additional Content + New content 1 + New content 2 + New content 3 + New content 4 + + From d6e8419360702fce4ac5c7a302dea79b60bd6738 Mon Sep 17 00:00:00 2001 From: Per Brolin Date: Wed, 19 Jun 2024 09:49:04 +0200 Subject: [PATCH 2/3] MC-1765: Removed curvature from inner rect composite --- cypress/platform/neo-test.html | 350 ++++++++++++++++++--------------- docs/neo-style-to-do | 7 +- packages/mermaid/src/styles.ts | 3 - 3 files changed, 194 insertions(+), 166 deletions(-) diff --git a/cypress/platform/neo-test.html b/cypress/platform/neo-test.html index 5c7acd1d0..4d5794e43 100644 --- a/cypress/platform/neo-test.html +++ b/cypress/platform/neo-test.html @@ -111,51 +111,48 @@
-%%{init: {"look": "neo", "theme": "neo", "fontFamily": "Arial"} }%%
-stateDiagram-v2
-    stateId
-      
+ %%{init: {"look": "neo", "theme": "neo", "fontFamily": "Arial"} }%% + stateDiagram-v2 + stateId +
-%%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    stateId
-      
+ %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%% + stateDiagram-v2 + stateId +
-%%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    stateId
-
-      
+ %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + stateId +
-%%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    stateId
-
-      
+ %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%% + stateDiagram-v2 + stateId +
-%%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    stateId
-
-      
+ %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + stateId +
-%%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    stateId
-
-      
+ %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + stateId + + @@ -166,55 +163,55 @@ stateDiagram-v2
-
-    state "description text" as s2
-  
+ state "description text" as s2 +
-%%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    state "This is a state description" as s2
-      
+ %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%% + stateDiagram-v2 + state "This is a state description" as s2 +
-%%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    state "This is a state description" as s2
-      
+ %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%% + stateDiagram-v2 + state "This is a state description" as s2 +
-%%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    state "This is a state description" as s3
-      
+ %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + state "This is a state description" as s3 +
-%%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    state "This is a state description" as s3
-      
+ %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%% + stateDiagram-v2 + state "This is a state description" as s3 +
-%%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    state "This is a state description" as s4
-      
+ %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + state "This is a state description" as s4 +
-%%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    state "This is a state description" as s4
-      
+ %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + state "This is a state description" as s4 + + @@ -225,59 +222,55 @@ stateDiagram-v2
-
-    s2 :  description text
-  
+ s2 : description text +
           %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    s21 : This is a state description
-      
+ stateDiagram-v2 + s21 : This is a state description +
           %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    s21 : This is a state description
-      
+ stateDiagram-v2 + s21 : This is a state description +
-%%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    s22 : This is a state description
-
-      
+ %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + s22 : This is a state description +
-%%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    s22 : This is a state description
-
+          %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
+            stateDiagram-v2
+              s22 : This is a state description
       
-%%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    s23 : This is a state description
-
-      
+ %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + s23 : This is a state description +
-%%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    s23 : This is a state description
-
-      
+ %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + s23 : This is a state description + + @@ -290,69 +283,55 @@ stateDiagram-v2
-
-    s1 --> s2
-
-  
+ s1 --> s2 +
-%%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
-    stateDiagram-v2
-    s31 --> s32
-
-      
+ %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%% + stateDiagram-v2 + s31 --> s32 +
-%%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
-    stateDiagram-v2
-    s31 --> s32
-
-      
+ %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%% + stateDiagram-v2 + s31 --> s32 +
-%%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
-
-   stateDiagram-v2
-    s41 --> s42
-
-
-      
+ %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + s41 --> s42 +
-%%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
-
-     stateDiagram-v2
-      s51 --> s52
-
-
+          %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
+            stateDiagram-v2
+              s51 --> s52
         
-%%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    s61 --> s62
-
-
-      
+ %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + s61 --> s62 +
-%%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    s61 --> s62
-
-
-      
+ %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + s61 --> s62 + - + @@ -366,65 +345,51 @@ stateDiagram-v2
-
-    s1 --> s2: A transition
-
-  
+ s1 --> s2: A transition +
-%%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
-    stateDiagram-v2
-    a1 --> a2: A transition
-
-      
+ %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%% + stateDiagram-v2 + a1 --> a2: A transition +
-%%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
-    stateDiagram-v2
-    a1 --> a2: A transition
-
-      
+ %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%% + stateDiagram-v2 + a1 --> a2: A transition +
-%%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
-
-   stateDiagram-v2
-    a3 --> a4: A transition
-
-
-      
+ %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + a3 --> a4: A transition +
-%%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
-
-   stateDiagram-v2
-    a5 --> a6: A transition
-
-
+          %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
+            stateDiagram-v2
+              a5 --> a6: A transition
       
-%%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    a7 --> a8: A transition
-
-
-      
+ %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%% + stateDiagram-v2 + a7 --> a8: A transition +
-%%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
-stateDiagram-v2
-    a7 --> a8: A transition
-
-
+          %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
+            stateDiagram-v2
+              a7 --> a8: A transition
       
@@ -1650,6 +1615,69 @@ direction LR + + + +
+
+
+          flowchart LR
+            rounded(rounded)
+        
+
+
+ + +
+      %%{init: {"look": "neo", "theme": "neo","fontFamily": "Arial"} }%%
+      flowchart LR
+        rounded(rounded)
+    
+ + +
+      %%{init: {"look": "neo", "theme": "dark","fontFamily": "Arial"} }%%
+      flowchart LR
+        rounded(rounded)
+  
+ + +
+      %%{init: {"look": "neo", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+        rounded(rounded)
+  
+ + +
+      %%{init: {"look": "neo", "theme": "forest","fontFamily": "Arial"} }%%
+      flowchart LR
+        rounded(rounded)
+  
+ + +
+      %%{init: {"look": "handdrawn", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+        rounded(rounded)
+  
+ + +
+      %%{init: {"look": "classic", "theme": "default","fontFamily": "Arial"} }%%
+      flowchart LR
+        rounded(rounded)
+  
+ + + + + + + +