From 6e6ced2cee29fb41164716d15c09be3ca23226d6 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Sat, 22 May 2021 20:13:31 +0200 Subject: [PATCH] #2088 Add the possibility to theme forks and joins using theme variables --- cypress/platform/knsv.html | 23 +++++++---------------- src/dagre-wrapper/nodes.js | 2 -- src/diagrams/state/styles.js | 12 +++++++++--- src/themes/theme-base.js | 2 +- src/themes/theme-dark.js | 1 + src/themes/theme-default.js | 1 + src/themes/theme-forest.js | 1 + src/themes/theme-neutral.js | 1 + 8 files changed, 21 insertions(+), 22 deletions(-) diff --git a/cypress/platform/knsv.html b/cypress/platform/knsv.html index c30289bc1..cc996067f 100644 --- a/cypress/platform/knsv.html +++ b/cypress/platform/knsv.html @@ -66,22 +66,13 @@ stateDiagram-v2
- %%{init:{"theme":"base", "themeVariables": {"primaryColor":"#411d4e", "titleColor":"white", "darkMode":true}}}%% - flowchart LR - - subgraph TOP - direction TB - subgraph B1 - direction RL - i1 -->f1 - end - subgraph B2 - direction BT - i2 -->f2 - end - end - A --> TOP --> B - B1 --> B2 + %%{init:{"theme":"neutral", "themeVariables": {"stateBkg ":"red", "innerEndBackground":"red"}}}%% + stateDiagram-v2 + state fork [[fork]] + state join [[join]] + [*] --> fork + fork --> join + join --> [*]