From 8883008ca1b037dbb78e0e1b3105ea29ee5af5a1 Mon Sep 17 00:00:00 2001 From: saurabhg772244 Date: Thu, 5 Sep 2024 13:21:58 +0530 Subject: [PATCH] Added basic for image shape --- cypress/platform/saurabh.html | 24 ++++--- .../mermaid/src/diagrams/flowchart/flowDb.ts | 7 ++ .../mermaid/src/diagrams/flowchart/types.ts | 3 + .../rendering-elements/nodes.js | 4 ++ .../rendering-elements/shapes/iconSquare.ts | 69 +++++++++++++++++++ .../mermaid/src/rendering-util/types.d.ts | 1 + packages/mermaid/src/types.ts | 1 + 7 files changed, 100 insertions(+), 9 deletions(-) create mode 100644 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts diff --git a/cypress/platform/saurabh.html b/cypress/platform/saurabh.html index 329189450..af4d9513b 100644 --- a/cypress/platform/saurabh.html +++ b/cypress/platform/saurabh.html @@ -62,22 +62,28 @@
-      ---
-        config:
-          flowchart:
-            htmlLabels: true
-      ---
       flowchart
-      classDef customClazz fill:#bbf,stroke:#f66,stroke-width:4px,color:#000,stroke-dasharray: 5 5
-      A1 --> B1@{ shape: taggedWaveEdgedRectangle, label: "test augfuyfavf yafuabffaev ydvaubfuac" }@ --> C1
-      A2 --> B2@{ shape: taggedRect, label: "test augfuyfavf yafuabffaev ydvaubfuac" }@ --> C2
-      B1:::customClazz
+       B2@{ icon: "fa:image", label: "test augfuyfavf yafuabffaev ydvaubfuac" }@