@octanejs/xyflow 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +26 -0
- package/package.json +69 -0
- package/src/additional-components/Background/Background.tsrx +144 -0
- package/src/additional-components/Background/Patterns.tsrx +32 -0
- package/src/additional-components/Background/index.tsrx +2 -0
- package/src/additional-components/Background/types.ts +60 -0
- package/src/additional-components/Controls/ControlButton.tsrx +34 -0
- package/src/additional-components/Controls/Controls.tsrx +148 -0
- package/src/additional-components/Controls/Icons/FitView.tsrx +7 -0
- package/src/additional-components/Controls/Icons/Lock.tsrx +7 -0
- package/src/additional-components/Controls/Icons/Minus.tsrx +5 -0
- package/src/additional-components/Controls/Icons/Plus.tsrx +5 -0
- package/src/additional-components/Controls/Icons/Unlock.tsrx +7 -0
- package/src/additional-components/Controls/index.tsrx +3 -0
- package/src/additional-components/Controls/types.ts +68 -0
- package/src/additional-components/EdgeToolbar/EdgeToolbar.tsrx +79 -0
- package/src/additional-components/EdgeToolbar/index.tsrx +2 -0
- package/src/additional-components/EdgeToolbar/types.ts +14 -0
- package/src/additional-components/MiniMap/MiniMap.tsrx +249 -0
- package/src/additional-components/MiniMap/MiniMapNode.tsrx +43 -0
- package/src/additional-components/MiniMap/MiniMapNodes.tsrx +136 -0
- package/src/additional-components/MiniMap/index.ts +3 -0
- package/src/additional-components/MiniMap/types.ts +139 -0
- package/src/additional-components/NodeResizer/NodeResizeControl.tsrx +250 -0
- package/src/additional-components/NodeResizer/NodeResizer.tsrx +102 -0
- package/src/additional-components/NodeResizer/index.ts +4 -0
- package/src/additional-components/NodeResizer/types.ts +122 -0
- package/src/additional-components/NodeToolbar/NodeToolbar.tsrx +141 -0
- package/src/additional-components/NodeToolbar/NodeToolbarPortal.tsrx +17 -0
- package/src/additional-components/NodeToolbar/index.tsrx +2 -0
- package/src/additional-components/NodeToolbar/types.ts +32 -0
- package/src/additional-components/index.ts +6 -0
- package/src/components/A11yDescriptions/index.tsrx +58 -0
- package/src/components/Attribution/index.tsrx +31 -0
- package/src/components/BatchProvider/index.tsrx +122 -0
- package/src/components/BatchProvider/types.ts +7 -0
- package/src/components/BatchProvider/useQueue.ts +62 -0
- package/src/components/ConnectionLine/index.tsrx +140 -0
- package/src/components/EdgeLabelRenderer/index.tsrx +62 -0
- package/src/components/EdgeWrapper/EdgeUpdateAnchors.tsrx +151 -0
- package/src/components/EdgeWrapper/index.tsrx +274 -0
- package/src/components/EdgeWrapper/utils.ts +26 -0
- package/src/components/Edges/BaseEdge.tsrx +76 -0
- package/src/components/Edges/BezierEdge.tsrx +94 -0
- package/src/components/Edges/EdgeAnchor.tsrx +54 -0
- package/src/components/Edges/EdgeText.tsrx +97 -0
- package/src/components/Edges/SimpleBezierEdge.tsrx +150 -0
- package/src/components/Edges/SmoothStepEdge.tsrx +96 -0
- package/src/components/Edges/StepEdge.tsrx +55 -0
- package/src/components/Edges/StraightEdge.tsrx +81 -0
- package/src/components/Edges/index.ts +11 -0
- package/src/components/Handle/index.tsrx +314 -0
- package/src/components/NodeWrapper/index.tsrx +259 -0
- package/src/components/NodeWrapper/useNodeObserver.ts +79 -0
- package/src/components/NodeWrapper/utils.tsrx +40 -0
- package/src/components/Nodes/DefaultNode.tsrx +17 -0
- package/src/components/Nodes/GroupNode.tsrx +3 -0
- package/src/components/Nodes/InputNode.tsrx +13 -0
- package/src/components/Nodes/OutputNode.tsrx +13 -0
- package/src/components/Nodes/utils.ts +45 -0
- package/src/components/NodesSelection/index.tsrx +103 -0
- package/src/components/Panel/index.tsrx +34 -0
- package/src/components/ReactFlowProvider/index.tsrx +128 -0
- package/src/components/SelectionListener/index.tsrx +73 -0
- package/src/components/StoreUpdater/index.tsrx +173 -0
- package/src/components/UserSelection/index.tsrx +27 -0
- package/src/components/ViewportPortal/index.tsrx +42 -0
- package/src/container/EdgeRenderer/MarkerDefinitions.tsrx +87 -0
- package/src/container/EdgeRenderer/MarkerSymbols.tsrx +60 -0
- package/src/container/EdgeRenderer/index.tsrx +98 -0
- package/src/container/FlowRenderer/index.tsrx +146 -0
- package/src/container/GraphView/index.tsrx +212 -0
- package/src/container/GraphView/useNodeOrEdgeTypesWarning.ts +39 -0
- package/src/container/GraphView/useStylesLoadedWarning.ts +26 -0
- package/src/container/NodeRenderer/index.tsrx +103 -0
- package/src/container/NodeRenderer/useResizeObserver.ts +38 -0
- package/src/container/Pane/index.tsrx +397 -0
- package/src/container/ReactFlow/Wrapper.tsrx +66 -0
- package/src/container/ReactFlow/index.tsrx +352 -0
- package/src/container/ReactFlow/init-values.ts +4 -0
- package/src/container/Viewport/index.tsrx +52 -0
- package/src/container/ZoomPane/index.tsrx +159 -0
- package/src/contexts/HandleConfigContext.tsrx +38 -0
- package/src/contexts/NodeIdContext.ts +39 -0
- package/src/contexts/StoreContext.ts +8 -0
- package/src/custom.d.ts +13 -0
- package/src/hooks/slot.ts +22 -0
- package/src/hooks/useColorModeClass.ts +50 -0
- package/src/hooks/useConnection.ts +69 -0
- package/src/hooks/useDrag.ts +95 -0
- package/src/hooks/useEdges.ts +32 -0
- package/src/hooks/useGlobalKeyHandler.ts +55 -0
- package/src/hooks/useHandleConnections.ts +77 -0
- package/src/hooks/useInternalNode.ts +47 -0
- package/src/hooks/useIsomorphicLayoutEffect.ts +5 -0
- package/src/hooks/useKeyPress.ts +217 -0
- package/src/hooks/useMoveSelectedNodes.ts +82 -0
- package/src/hooks/useNodeConnections.ts +86 -0
- package/src/hooks/useNodes.ts +33 -0
- package/src/hooks/useNodesData.ts +66 -0
- package/src/hooks/useNodesEdgesState.ts +138 -0
- package/src/hooks/useNodesInitialized.ts +74 -0
- package/src/hooks/useOnEdgesChangeMiddleware.ts +46 -0
- package/src/hooks/useOnInitHandler.ts +27 -0
- package/src/hooks/useOnNodesChangeMiddleware.ts +46 -0
- package/src/hooks/useOnSelectionChange.ts +78 -0
- package/src/hooks/useOnViewportChange.ts +68 -0
- package/src/hooks/useReactFlow.ts +347 -0
- package/src/hooks/useResizeHandler.ts +54 -0
- package/src/hooks/useStore.ts +58 -0
- package/src/hooks/useUpdateNodeInternals.ts +73 -0
- package/src/hooks/useViewport.ts +48 -0
- package/src/hooks/useViewportHelper.ts +103 -0
- package/src/hooks/useViewportSync.ts +33 -0
- package/src/hooks/useVisibleEdgeIds.ts +52 -0
- package/src/hooks/useVisibleNodeIds.ts +36 -0
- package/src/index.ts +151 -0
- package/src/react-shim.ts +93 -0
- package/src/store/index.ts +516 -0
- package/src/store/initialState.ts +162 -0
- package/src/styles/base.css +516 -0
- package/src/styles/style.css +648 -0
- package/src/styles/utils.ts +9 -0
- package/src/types/component-props.ts +716 -0
- package/src/types/edges.ts +312 -0
- package/src/types/general.ts +239 -0
- package/src/types/index.ts +6 -0
- package/src/types/instance.ts +265 -0
- package/src/types/nodes.ts +144 -0
- package/src/types/store.ts +198 -0
- package/src/utils/changes.ts +329 -0
- package/src/utils/edges.ts +34 -0
- package/src/utils/general.ts +72 -0
- package/src/utils/index.ts +3 -0
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
/* this will be exported as base.css and can be used for a basic styling */
|
|
2
|
+
/* these are the necessary styles for React/Svelte Flow, they get used by base.css and style.css */
|
|
3
|
+
.react-flow {
|
|
4
|
+
direction: ltr;
|
|
5
|
+
|
|
6
|
+
--xy-edge-stroke-default: #b1b1b7;
|
|
7
|
+
--xy-edge-stroke-width-default: 1;
|
|
8
|
+
--xy-edge-stroke-selected-default: #555;
|
|
9
|
+
|
|
10
|
+
--xy-connectionline-stroke-default: #b1b1b7;
|
|
11
|
+
--xy-connectionline-stroke-width-default: 1;
|
|
12
|
+
|
|
13
|
+
--xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);
|
|
14
|
+
|
|
15
|
+
--xy-minimap-background-color-default: #fff;
|
|
16
|
+
--xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);
|
|
17
|
+
--xy-minimap-mask-stroke-color-default: transparent;
|
|
18
|
+
--xy-minimap-mask-stroke-width-default: 1;
|
|
19
|
+
--xy-minimap-node-background-color-default: #e2e2e2;
|
|
20
|
+
--xy-minimap-node-stroke-color-default: transparent;
|
|
21
|
+
--xy-minimap-node-stroke-width-default: 2;
|
|
22
|
+
|
|
23
|
+
--xy-background-color-default: transparent;
|
|
24
|
+
--xy-background-pattern-dots-color-default: #91919a;
|
|
25
|
+
--xy-background-pattern-lines-color-default: #eee;
|
|
26
|
+
--xy-background-pattern-cross-color-default: #e2e2e2;
|
|
27
|
+
background-color: var(--xy-background-color, var(--xy-background-color-default));
|
|
28
|
+
--xy-node-border-default: 1px solid #bbb;
|
|
29
|
+
--xy-node-border-selected-default: 1px solid #555;
|
|
30
|
+
|
|
31
|
+
--xy-handle-background-color-default: #333;
|
|
32
|
+
|
|
33
|
+
--xy-selection-background-color-default: rgba(150, 150, 180, 0.1);
|
|
34
|
+
--xy-selection-border-default: 1px dotted rgba(155, 155, 155, 0.8);
|
|
35
|
+
--xy-resize-background-color-default: #3367d9;
|
|
36
|
+
}
|
|
37
|
+
.react-flow.dark {
|
|
38
|
+
--xy-edge-stroke-default: #3e3e3e;
|
|
39
|
+
--xy-edge-stroke-width-default: 1;
|
|
40
|
+
--xy-edge-stroke-selected-default: #727272;
|
|
41
|
+
|
|
42
|
+
--xy-connectionline-stroke-default: #b1b1b7;
|
|
43
|
+
--xy-connectionline-stroke-width-default: 1;
|
|
44
|
+
|
|
45
|
+
--xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);
|
|
46
|
+
|
|
47
|
+
--xy-minimap-background-color-default: #141414;
|
|
48
|
+
--xy-minimap-mask-background-color-default: rgba(60, 60, 60, 0.6);
|
|
49
|
+
--xy-minimap-mask-stroke-color-default: transparent;
|
|
50
|
+
--xy-minimap-mask-stroke-width-default: 1;
|
|
51
|
+
--xy-minimap-node-background-color-default: #2b2b2b;
|
|
52
|
+
--xy-minimap-node-stroke-color-default: transparent;
|
|
53
|
+
--xy-minimap-node-stroke-width-default: 2;
|
|
54
|
+
|
|
55
|
+
--xy-background-color-default: #141414;
|
|
56
|
+
--xy-background-pattern-dots-color-default: #555;
|
|
57
|
+
--xy-background-pattern-lines-color-default: #333;
|
|
58
|
+
--xy-background-pattern-cross-color-default: #333;
|
|
59
|
+
--xy-node-color-default: #f8f8f8;
|
|
60
|
+
}
|
|
61
|
+
.react-flow__background {
|
|
62
|
+
background-color: var(
|
|
63
|
+
--xy-background-color-props,
|
|
64
|
+
var(--xy-background-color, var(--xy-background-color-default))
|
|
65
|
+
);
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
z-index: -1;
|
|
68
|
+
}
|
|
69
|
+
.react-flow__container {
|
|
70
|
+
position: absolute;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
top: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
}
|
|
76
|
+
.react-flow__pane {
|
|
77
|
+
z-index: 1;
|
|
78
|
+
touch-action: none;
|
|
79
|
+
}
|
|
80
|
+
.react-flow__pane.draggable {
|
|
81
|
+
cursor: grab;
|
|
82
|
+
}
|
|
83
|
+
.react-flow__pane.dragging {
|
|
84
|
+
cursor: grabbing;
|
|
85
|
+
}
|
|
86
|
+
.react-flow__pane.selection {
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
}
|
|
89
|
+
.react-flow__viewport {
|
|
90
|
+
transform-origin: 0 0;
|
|
91
|
+
z-index: 2;
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
}
|
|
94
|
+
.react-flow__renderer {
|
|
95
|
+
z-index: 4;
|
|
96
|
+
}
|
|
97
|
+
.react-flow__selection {
|
|
98
|
+
z-index: 6;
|
|
99
|
+
}
|
|
100
|
+
.react-flow__nodesselection-rect:focus,
|
|
101
|
+
.react-flow__nodesselection-rect:focus-visible {
|
|
102
|
+
outline: none;
|
|
103
|
+
}
|
|
104
|
+
.react-flow__edge-path {
|
|
105
|
+
stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
|
|
106
|
+
stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
|
|
107
|
+
fill: none;
|
|
108
|
+
}
|
|
109
|
+
.react-flow__connection-path {
|
|
110
|
+
stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
|
|
111
|
+
stroke-width: var(
|
|
112
|
+
--xy-connectionline-stroke-width,
|
|
113
|
+
var(--xy-connectionline-stroke-width-default)
|
|
114
|
+
);
|
|
115
|
+
fill: none;
|
|
116
|
+
}
|
|
117
|
+
.react-flow .react-flow__edges {
|
|
118
|
+
position: absolute;
|
|
119
|
+
}
|
|
120
|
+
.react-flow .react-flow__edges svg {
|
|
121
|
+
overflow: visible;
|
|
122
|
+
position: absolute;
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
}
|
|
125
|
+
.react-flow__edge {
|
|
126
|
+
pointer-events: visibleStroke;
|
|
127
|
+
}
|
|
128
|
+
.react-flow__edge.selectable {
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
.react-flow__edge.animated path {
|
|
132
|
+
stroke-dasharray: 5;
|
|
133
|
+
animation: dashdraw 0.5s linear infinite;
|
|
134
|
+
}
|
|
135
|
+
.react-flow__edge.animated path.react-flow__edge-interaction {
|
|
136
|
+
stroke-dasharray: none;
|
|
137
|
+
animation: none;
|
|
138
|
+
}
|
|
139
|
+
.react-flow__edge.inactive {
|
|
140
|
+
pointer-events: none;
|
|
141
|
+
}
|
|
142
|
+
.react-flow__edge.selected,
|
|
143
|
+
.react-flow__edge:focus,
|
|
144
|
+
.react-flow__edge:focus-visible {
|
|
145
|
+
outline: none;
|
|
146
|
+
}
|
|
147
|
+
.react-flow__edge.selected .react-flow__edge-path,
|
|
148
|
+
.react-flow__edge.selectable:focus .react-flow__edge-path,
|
|
149
|
+
.react-flow__edge.selectable:focus-visible .react-flow__edge-path {
|
|
150
|
+
stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
|
|
151
|
+
}
|
|
152
|
+
.react-flow__edge-textwrapper {
|
|
153
|
+
pointer-events: all;
|
|
154
|
+
}
|
|
155
|
+
.react-flow__edge .react-flow__edge-text {
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
-webkit-user-select: none;
|
|
158
|
+
-moz-user-select: none;
|
|
159
|
+
user-select: none;
|
|
160
|
+
}
|
|
161
|
+
/* Arrowhead marker styles - use CSS custom properties as default */
|
|
162
|
+
.react-flow__arrowhead polyline {
|
|
163
|
+
stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
|
|
164
|
+
}
|
|
165
|
+
.react-flow__arrowhead polyline.arrowclosed {
|
|
166
|
+
fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
|
|
167
|
+
}
|
|
168
|
+
.react-flow__connection {
|
|
169
|
+
pointer-events: none;
|
|
170
|
+
}
|
|
171
|
+
.react-flow__connection .animated {
|
|
172
|
+
stroke-dasharray: 5;
|
|
173
|
+
animation: dashdraw 0.5s linear infinite;
|
|
174
|
+
}
|
|
175
|
+
svg.react-flow__connectionline {
|
|
176
|
+
z-index: 1001;
|
|
177
|
+
overflow: visible;
|
|
178
|
+
position: absolute;
|
|
179
|
+
}
|
|
180
|
+
.react-flow__nodes {
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
transform-origin: 0 0;
|
|
183
|
+
}
|
|
184
|
+
.react-flow__node {
|
|
185
|
+
position: absolute;
|
|
186
|
+
-webkit-user-select: none;
|
|
187
|
+
-moz-user-select: none;
|
|
188
|
+
user-select: none;
|
|
189
|
+
pointer-events: all;
|
|
190
|
+
transform-origin: 0 0;
|
|
191
|
+
box-sizing: border-box;
|
|
192
|
+
cursor: default;
|
|
193
|
+
}
|
|
194
|
+
.react-flow__node.selectable {
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
}
|
|
197
|
+
.react-flow__node.draggable {
|
|
198
|
+
cursor: grab;
|
|
199
|
+
pointer-events: all;
|
|
200
|
+
}
|
|
201
|
+
.react-flow__node.draggable.dragging {
|
|
202
|
+
cursor: grabbing;
|
|
203
|
+
}
|
|
204
|
+
.react-flow__nodesselection {
|
|
205
|
+
z-index: 3;
|
|
206
|
+
transform-origin: left top;
|
|
207
|
+
pointer-events: none;
|
|
208
|
+
}
|
|
209
|
+
.react-flow__nodesselection-rect {
|
|
210
|
+
position: absolute;
|
|
211
|
+
pointer-events: all;
|
|
212
|
+
cursor: grab;
|
|
213
|
+
}
|
|
214
|
+
.react-flow__handle {
|
|
215
|
+
position: absolute;
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
min-width: 5px;
|
|
218
|
+
min-height: 5px;
|
|
219
|
+
background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
|
|
220
|
+
}
|
|
221
|
+
.react-flow__handle.connectingfrom {
|
|
222
|
+
pointer-events: all;
|
|
223
|
+
}
|
|
224
|
+
.react-flow__handle.connectionindicator {
|
|
225
|
+
pointer-events: all;
|
|
226
|
+
cursor: crosshair;
|
|
227
|
+
}
|
|
228
|
+
.react-flow__handle-bottom {
|
|
229
|
+
top: auto;
|
|
230
|
+
left: 50%;
|
|
231
|
+
bottom: 0;
|
|
232
|
+
transform: translate(-50%, 50%);
|
|
233
|
+
}
|
|
234
|
+
.react-flow__handle-top {
|
|
235
|
+
top: 0;
|
|
236
|
+
left: 50%;
|
|
237
|
+
transform: translate(-50%, -50%);
|
|
238
|
+
}
|
|
239
|
+
.react-flow__handle-left {
|
|
240
|
+
top: 50%;
|
|
241
|
+
left: 0;
|
|
242
|
+
transform: translate(-50%, -50%);
|
|
243
|
+
}
|
|
244
|
+
.react-flow__handle-right {
|
|
245
|
+
top: 50%;
|
|
246
|
+
right: 0;
|
|
247
|
+
transform: translate(50%, -50%);
|
|
248
|
+
}
|
|
249
|
+
.react-flow__edgeupdater {
|
|
250
|
+
cursor: move;
|
|
251
|
+
pointer-events: all;
|
|
252
|
+
}
|
|
253
|
+
.react-flow__pane.selection .react-flow__panel {
|
|
254
|
+
pointer-events: none;
|
|
255
|
+
}
|
|
256
|
+
.react-flow__panel {
|
|
257
|
+
position: absolute;
|
|
258
|
+
z-index: 5;
|
|
259
|
+
margin: 15px;
|
|
260
|
+
}
|
|
261
|
+
.react-flow__panel.top {
|
|
262
|
+
top: 0;
|
|
263
|
+
}
|
|
264
|
+
.react-flow__panel.bottom {
|
|
265
|
+
bottom: 0;
|
|
266
|
+
}
|
|
267
|
+
.react-flow__panel.top.center,
|
|
268
|
+
.react-flow__panel.bottom.center {
|
|
269
|
+
left: 50%;
|
|
270
|
+
transform: translateX(-15px) translateX(-50%);
|
|
271
|
+
}
|
|
272
|
+
.react-flow__panel.left {
|
|
273
|
+
left: 0;
|
|
274
|
+
}
|
|
275
|
+
.react-flow__panel.right {
|
|
276
|
+
right: 0;
|
|
277
|
+
}
|
|
278
|
+
.react-flow__panel.left.center,
|
|
279
|
+
.react-flow__panel.right.center {
|
|
280
|
+
top: 50%;
|
|
281
|
+
transform: translateY(-15px) translateY(-50%);
|
|
282
|
+
}
|
|
283
|
+
.react-flow__attribution {
|
|
284
|
+
font-size: 10px;
|
|
285
|
+
background: var(
|
|
286
|
+
--xy-attribution-background-color,
|
|
287
|
+
var(--xy-attribution-background-color-default)
|
|
288
|
+
);
|
|
289
|
+
padding: 2px 3px;
|
|
290
|
+
margin: 0;
|
|
291
|
+
}
|
|
292
|
+
.react-flow__attribution a {
|
|
293
|
+
text-decoration: none;
|
|
294
|
+
color: #999;
|
|
295
|
+
}
|
|
296
|
+
@keyframes dashdraw {
|
|
297
|
+
from {
|
|
298
|
+
stroke-dashoffset: 10;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
.react-flow__edgelabel-renderer {
|
|
302
|
+
position: absolute;
|
|
303
|
+
width: 100%;
|
|
304
|
+
height: 100%;
|
|
305
|
+
pointer-events: none;
|
|
306
|
+
-webkit-user-select: none;
|
|
307
|
+
-moz-user-select: none;
|
|
308
|
+
user-select: none;
|
|
309
|
+
left: 0;
|
|
310
|
+
top: 0;
|
|
311
|
+
}
|
|
312
|
+
.react-flow__viewport-portal {
|
|
313
|
+
position: absolute;
|
|
314
|
+
width: 100%;
|
|
315
|
+
height: 100%;
|
|
316
|
+
left: 0;
|
|
317
|
+
top: 0;
|
|
318
|
+
-webkit-user-select: none;
|
|
319
|
+
-moz-user-select: none;
|
|
320
|
+
user-select: none;
|
|
321
|
+
}
|
|
322
|
+
.react-flow__minimap {
|
|
323
|
+
background: var(
|
|
324
|
+
--xy-minimap-background-color-props,
|
|
325
|
+
var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
.react-flow__minimap-svg {
|
|
329
|
+
display: block;
|
|
330
|
+
}
|
|
331
|
+
.react-flow__minimap-mask {
|
|
332
|
+
fill: var(
|
|
333
|
+
--xy-minimap-mask-background-color-props,
|
|
334
|
+
var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))
|
|
335
|
+
);
|
|
336
|
+
stroke: var(
|
|
337
|
+
--xy-minimap-mask-stroke-color-props,
|
|
338
|
+
var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))
|
|
339
|
+
);
|
|
340
|
+
stroke-width: var(
|
|
341
|
+
--xy-minimap-mask-stroke-width-props,
|
|
342
|
+
var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
.react-flow__minimap-node {
|
|
346
|
+
fill: var(
|
|
347
|
+
--xy-minimap-node-background-color-props,
|
|
348
|
+
var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))
|
|
349
|
+
);
|
|
350
|
+
stroke: var(
|
|
351
|
+
--xy-minimap-node-stroke-color-props,
|
|
352
|
+
var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))
|
|
353
|
+
);
|
|
354
|
+
stroke-width: var(
|
|
355
|
+
--xy-minimap-node-stroke-width-props,
|
|
356
|
+
var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))
|
|
357
|
+
);
|
|
358
|
+
}
|
|
359
|
+
.react-flow__background-pattern.dots {
|
|
360
|
+
fill: var(
|
|
361
|
+
--xy-background-pattern-color-props,
|
|
362
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
.react-flow__background-pattern.lines {
|
|
366
|
+
stroke: var(
|
|
367
|
+
--xy-background-pattern-color-props,
|
|
368
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
.react-flow__background-pattern.cross {
|
|
372
|
+
stroke: var(
|
|
373
|
+
--xy-background-pattern-color-props,
|
|
374
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
.react-flow__controls {
|
|
378
|
+
display: flex;
|
|
379
|
+
flex-direction: column;
|
|
380
|
+
}
|
|
381
|
+
.react-flow__controls.horizontal {
|
|
382
|
+
flex-direction: row;
|
|
383
|
+
}
|
|
384
|
+
.react-flow__controls-button {
|
|
385
|
+
display: flex;
|
|
386
|
+
justify-content: center;
|
|
387
|
+
align-items: center;
|
|
388
|
+
height: 26px;
|
|
389
|
+
width: 26px;
|
|
390
|
+
padding: 4px;
|
|
391
|
+
}
|
|
392
|
+
.react-flow__controls-button svg {
|
|
393
|
+
width: 100%;
|
|
394
|
+
max-width: 12px;
|
|
395
|
+
max-height: 12px;
|
|
396
|
+
fill: currentColor;
|
|
397
|
+
}
|
|
398
|
+
.react-flow__node-input,
|
|
399
|
+
.react-flow__node-default,
|
|
400
|
+
.react-flow__node-output,
|
|
401
|
+
.react-flow__node-group {
|
|
402
|
+
border: var(--xy-node-border, var(--xy-node-border-default));
|
|
403
|
+
color: var(--xy-node-color, var(--xy-node-color-default));
|
|
404
|
+
}
|
|
405
|
+
.react-flow__node-input.selected,
|
|
406
|
+
.react-flow__node-input:focus,
|
|
407
|
+
.react-flow__node-input:focus-visible,
|
|
408
|
+
.react-flow__node-default.selected,
|
|
409
|
+
.react-flow__node-default:focus,
|
|
410
|
+
.react-flow__node-default:focus-visible,
|
|
411
|
+
.react-flow__node-output.selected,
|
|
412
|
+
.react-flow__node-output:focus,
|
|
413
|
+
.react-flow__node-output:focus-visible,
|
|
414
|
+
.react-flow__node-group.selected,
|
|
415
|
+
.react-flow__node-group:focus,
|
|
416
|
+
.react-flow__node-group:focus-visible {
|
|
417
|
+
outline: none;
|
|
418
|
+
border: var(--xy-node-border-selected, var(--xy-node-border-selected-default));
|
|
419
|
+
}
|
|
420
|
+
.react-flow__nodesselection-rect,
|
|
421
|
+
.react-flow__selection {
|
|
422
|
+
background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
|
|
423
|
+
border: var(--xy-selection-border, var(--xy-selection-border-default));
|
|
424
|
+
}
|
|
425
|
+
.react-flow__resize-control {
|
|
426
|
+
position: absolute;
|
|
427
|
+
}
|
|
428
|
+
.react-flow__resize-control.left,
|
|
429
|
+
.react-flow__resize-control.right {
|
|
430
|
+
cursor: ew-resize;
|
|
431
|
+
}
|
|
432
|
+
.react-flow__resize-control.top,
|
|
433
|
+
.react-flow__resize-control.bottom {
|
|
434
|
+
cursor: ns-resize;
|
|
435
|
+
}
|
|
436
|
+
.react-flow__resize-control.top.left,
|
|
437
|
+
.react-flow__resize-control.bottom.right {
|
|
438
|
+
cursor: nwse-resize;
|
|
439
|
+
}
|
|
440
|
+
.react-flow__resize-control.bottom.left,
|
|
441
|
+
.react-flow__resize-control.top.right {
|
|
442
|
+
cursor: nesw-resize;
|
|
443
|
+
}
|
|
444
|
+
/* handle styles */
|
|
445
|
+
.react-flow__resize-control.handle {
|
|
446
|
+
width: 5px;
|
|
447
|
+
height: 5px;
|
|
448
|
+
border: 1px solid #fff;
|
|
449
|
+
border-radius: 1px;
|
|
450
|
+
background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
|
|
451
|
+
translate: -50% -50%;
|
|
452
|
+
}
|
|
453
|
+
.react-flow__resize-control.handle.left {
|
|
454
|
+
left: 0;
|
|
455
|
+
top: 50%;
|
|
456
|
+
}
|
|
457
|
+
.react-flow__resize-control.handle.right {
|
|
458
|
+
left: 100%;
|
|
459
|
+
top: 50%;
|
|
460
|
+
}
|
|
461
|
+
.react-flow__resize-control.handle.top {
|
|
462
|
+
left: 50%;
|
|
463
|
+
top: 0;
|
|
464
|
+
}
|
|
465
|
+
.react-flow__resize-control.handle.bottom {
|
|
466
|
+
left: 50%;
|
|
467
|
+
top: 100%;
|
|
468
|
+
}
|
|
469
|
+
.react-flow__resize-control.handle.top.left {
|
|
470
|
+
left: 0;
|
|
471
|
+
}
|
|
472
|
+
.react-flow__resize-control.handle.bottom.left {
|
|
473
|
+
left: 0;
|
|
474
|
+
}
|
|
475
|
+
.react-flow__resize-control.handle.top.right {
|
|
476
|
+
left: 100%;
|
|
477
|
+
}
|
|
478
|
+
.react-flow__resize-control.handle.bottom.right {
|
|
479
|
+
left: 100%;
|
|
480
|
+
}
|
|
481
|
+
/* line styles */
|
|
482
|
+
.react-flow__resize-control.line {
|
|
483
|
+
border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
|
|
484
|
+
border-width: 0;
|
|
485
|
+
border-style: solid;
|
|
486
|
+
}
|
|
487
|
+
.react-flow__resize-control.line.left,
|
|
488
|
+
.react-flow__resize-control.line.right {
|
|
489
|
+
width: 1px;
|
|
490
|
+
transform: translate(-50%, 0);
|
|
491
|
+
top: 0;
|
|
492
|
+
height: 100%;
|
|
493
|
+
}
|
|
494
|
+
.react-flow__resize-control.line.left {
|
|
495
|
+
left: 0;
|
|
496
|
+
border-left-width: 1px;
|
|
497
|
+
}
|
|
498
|
+
.react-flow__resize-control.line.right {
|
|
499
|
+
left: 100%;
|
|
500
|
+
border-right-width: 1px;
|
|
501
|
+
}
|
|
502
|
+
.react-flow__resize-control.line.top,
|
|
503
|
+
.react-flow__resize-control.line.bottom {
|
|
504
|
+
height: 1px;
|
|
505
|
+
transform: translate(0, -50%);
|
|
506
|
+
left: 0;
|
|
507
|
+
width: 100%;
|
|
508
|
+
}
|
|
509
|
+
.react-flow__resize-control.line.top {
|
|
510
|
+
top: 0;
|
|
511
|
+
border-top-width: 1px;
|
|
512
|
+
}
|
|
513
|
+
.react-flow__resize-control.line.bottom {
|
|
514
|
+
border-bottom-width: 1px;
|
|
515
|
+
top: 100%;
|
|
516
|
+
}
|