From 8ee321fd7ba612c2bff2a8afed659ab1908b4ae4 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Mon, 3 Oct 2022 14:51:13 +0200 Subject: [PATCH] #3561 Adding cScale0-11 etc and usage of the colors from the mindmap diagram --- cypress/platform/knsv2.html | 21 +++++- .../src/exampleDiagramRenderer.js | 42 ++++++++--- .../src/mermaidUtils.ts | 1 - .../mermaid-example-diagram/src/styles.js | 28 +++++++- packages/mermaid-mindmap/src/styles.js | 14 ++-- packages/mermaid-mindmap/src/svgDraw.js | 10 ++- packages/mermaid/src/themes/theme-base.js | 46 +++++++++++++ packages/mermaid/src/themes/theme-dark.js | 63 +++++++++++++---- packages/mermaid/src/themes/theme-default.js | 36 +++++++++- packages/mermaid/src/themes/theme-forest.js | 34 +++++++++ packages/mermaid/src/themes/theme-neutral.js | 69 ++++++++++++------- 11 files changed, 300 insertions(+), 64 deletions(-) diff --git a/cypress/platform/knsv2.html b/cypress/platform/knsv2.html index 9ee0ffcbe..143e12087 100644 --- a/cypress/platform/knsv2.html +++ b/cypress/platform/knsv2.html @@ -29,6 +29,12 @@ } .mermaid svg { /* font-size: 18px !important; */ + background-color: #eee; + background-image: radial-gradient(#fff 1%, transparent 11%), + radial-gradient(#fff 1%, transparent 11%); + background-size: 20px 20px; + background-position: 0 0, 10px 10px; + background-repeat: repeat; } .malware { position: fixed; @@ -56,6 +62,16 @@ example-diagram
 mindmap
   root
+    A
+    B
+    C
+    D
+    E
+    A2
+    B2
+    C2
+    D2
+    E2
     child1((Circle))
         grandchild 1
         grandchild 2
@@ -71,17 +87,18 @@ mindmap
         
- +