diff --git a/cypress/platform/knsv2.html b/cypress/platform/knsv2.html index 95f3c15bc..9c95c54c3 100644 --- a/cypress/platform/knsv2.html +++ b/cypress/platform/knsv2.html @@ -29,9 +29,9 @@ } .mermaid svg { /* font-size: 18px !important; */ - background-color: #eee; - background-image: radial-gradient(#fff 1%, transparent 11%), - radial-gradient(#fff 1%, transparent 11%); + background-color: #efefef; + background-image: radial-gradient(#fff 51%, transparent 91%), + radial-gradient(#fff 51%, transparent 91%); background-size: 20px 20px; background-position: 0 0, 10px 10px; background-repeat: repeat; @@ -58,20 +58,22 @@
- %%{init: {"flowchart": {"htmlLabels": false}} }%% -flowchart-elk LR -b("`The dog in **the** hog(2)... a a a a *very long text* about it -Word! -Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. Another line with many, many words. `") -wrapped wraps to another line] + C["`A text that needs to be wrapped to another line`"] +
+flowchart LR + C["`A text + that needs + to be wrapped + in another + way`"] +
flowchart-elk LR b("The dog in the hog... a very-
long text about it
Word!") -
-flowchart-elk LR -b("The dog in the hog... a very>
long text about it
Word!")
@@ -89,11 +91,11 @@ mindmap
mindmap - id1["`**Root** with -a second line -Unicode works too: 🤓`"] - id2["`The dog in **the** hog... a *very long text* that wraps to a new line`"] - id3[Regular labels still works] + id1("`**Root**`"] + id2["`A formatted text... with **bold** and *italics*`"] + id3[Regular labels works as usual] + id4["`Emojis and unicode works too: 🤓 + शान्तिः سلام 和平 `"]
@@ -293,7 +295,7 @@ mindmap // console.error('Mermaid error: ', err); }; mermaid.initialize({ - theme: 'forest', + // theme: 'forest', startOnLoad: true, logLevel: 0, flowchart: { diff --git a/packages/mermaid/package.json b/packages/mermaid/package.json index 82a641719..aba98aa22 100644 --- a/packages/mermaid/package.json +++ b/packages/mermaid/package.json @@ -1,6 +1,6 @@ { "name": "mermaid", - "version": "10.0.2", + "version": "10.1.0-rc.1", "description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", "type": "module", "module": "./dist/mermaid.core.mjs", diff --git a/packages/mermaid/src/diagrams/flowchart/styles.ts b/packages/mermaid/src/diagrams/flowchart/styles.ts index 86ffcb7ed..964505c2d 100644 --- a/packages/mermaid/src/diagrams/flowchart/styles.ts +++ b/packages/mermaid/src/diagrams/flowchart/styles.ts @@ -23,11 +23,11 @@ const getStyles = (options: FlowChartStyleOptions) => .cluster-label text { fill: ${options.titleColor}; } - .cluster-label span { + .cluster-label span,p { color: ${options.titleColor}; } - .label text,span { + .label text,span,p { fill: ${options.nodeTextColor || options.textColor}; color: ${options.nodeTextColor || options.textColor}; } @@ -92,7 +92,7 @@ const getStyles = (options: FlowChartStyleOptions) => fill: ${options.titleColor}; } - .cluster span { + .cluster span,p { color: ${options.titleColor}; } /* .cluster div {