Skip to content

Commit 086e389

Browse files
committed
add explicit ruleblock node type color
1 parent 4d51999 commit 086e389

7 files changed

Lines changed: 18 additions & 1 deletion

File tree

src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const nodeExamples = {
9797
content: "Example content.",
9898
minimalShape: "none",
9999
},
100-
position: { x: 400, y: 200 },
100+
position: { x: 400, y: 100 },
101101
},
102102
{
103103
id: "linking-3",
@@ -141,6 +141,16 @@ const nodeExamples = {
141141
},
142142
position: { x: 50, y: 300 },
143143
},
144+
{
145+
id: "linking-6",
146+
type: "ruleblock",
147+
data: {
148+
label: "Rule block",
149+
content: "Example content.",
150+
minimalShape: "none",
151+
},
152+
position: { x: 400, y: 200 },
153+
},
144154
],
145155
edges: [
146156
{

src/cmem/react-flow/_handles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
@include handletypestyles("sourcepath");
3131
@include handletypestyles("targetpath");
3232
@include handletypestyles("transformation");
33+
@include handletypestyles("ruleblock");
3334
@include handletypestyles("comparator");
3435
@include handletypestyles("aggregator");

src/cmem/react-flow/_minimap.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@
4444
@include mapnodestyles("sourcepath");
4545
@include mapnodestyles("targetpath");
4646
@include mapnodestyles("transformation");
47+
@include mapnodestyles("ruleblock");
4748
@include mapnodestyles("comparator");
4849
@include mapnodestyles("aggregator");

src/cmem/react-flow/configuration/_colors-linking.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
--#{$eccgui}-targetpath-node-bright: #{eccgui-color-var("layout", "petrol", 300)};
66
--#{$eccgui}-transformation-node: #{eccgui-color-var("layout", "pink", 700)};
77
--#{$eccgui}-transformation-node-bright: #{eccgui-color-var("layout", "pink", 300)};
8+
--#{$eccgui}-ruleblock-node: #{eccgui-color-var("layout", "vermilion", 700)};
9+
--#{$eccgui}-ruleblock-node-bright: #{eccgui-color-var("layout", "vermilion", 300)};
810
--#{$eccgui}-comparator-node: #{eccgui-color-var("layout", "teal", 700)};
911
--#{$eccgui}-comparator-node-bright: #{eccgui-color-var("layout", "teal", 300)};
1012
--#{$eccgui}-aggregator-node: #{eccgui-color-var("layout", "cyan", 700)};

src/cmem/react-flow/configuration/linking.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const nodeTypes: Record<LINKING_NODE_TYPES, React.ComponentType<NodeProps>> = {
1919
sourcepath: NodeDefault,
2020
targetpath: NodeDefault,
2121
transformation: NodeDefault,
22+
ruleblock: NodeDefault,
2223
comparator: NodeDefault,
2324
aggregator: NodeDefault,
2425
stickynote: StickyNoteNode,

src/cmem/react-flow/configuration/typing.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export enum LINKING_NODE_TYPES {
44
sourcepath = "sourcepath",
55
targetpath = "targetpath",
66
transformation = "transformation",
7+
ruleblock = "ruleblock",
78
comparator = "comparator",
89
aggregator = "aggregator",
910
stickynote = "stickynote",

src/cmem/react-flow/nodes/_colors.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@
6262
@include nodetypestyles("sourcepath");
6363
@include nodetypestyles("targetpath");
6464
@include nodetypestyles("transformation");
65+
@include nodetypestyles("ruleblock");
6566
@include nodetypestyles("comparator");
6667
@include nodetypestyles("aggregator");

0 commit comments

Comments
 (0)