@dschz/solid-flow 0.2.2 → 0.2.4
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/dist/index/index.d.ts +1234 -1184
- package/dist/index/index.js +4089 -5110
- package/dist/index/index.jsx +2543 -4529
- package/dist/styles/index.css +204 -20
- package/package.json +10 -6
- package/dist/styles/index.d.ts +0 -2
package/dist/styles/index.css
CHANGED
|
@@ -1,48 +1,62 @@
|
|
|
1
|
+
/* Container Styles */
|
|
1
2
|
/* src/components/container/styles.css */
|
|
2
3
|
.solid-flow__zoom {
|
|
3
4
|
z-index: 4;
|
|
4
5
|
}
|
|
6
|
+
|
|
5
7
|
.solid-flow__viewport {
|
|
6
8
|
transform-origin: 0 0;
|
|
7
9
|
z-index: 2;
|
|
8
10
|
pointer-events: none;
|
|
9
11
|
}
|
|
12
|
+
|
|
10
13
|
.solid-flow__viewport-portal {
|
|
11
14
|
user-select: none;
|
|
12
15
|
}
|
|
16
|
+
|
|
13
17
|
.solid-flow__pane {
|
|
14
18
|
z-index: 1;
|
|
19
|
+
|
|
15
20
|
&.draggable {
|
|
16
21
|
cursor: grab;
|
|
17
22
|
}
|
|
23
|
+
|
|
18
24
|
&.dragging {
|
|
19
25
|
cursor: grabbing;
|
|
20
26
|
}
|
|
27
|
+
|
|
21
28
|
&.selection {
|
|
22
29
|
cursor: pointer;
|
|
23
30
|
}
|
|
24
31
|
}
|
|
32
|
+
|
|
25
33
|
.solid-flow__panel {
|
|
26
34
|
position: absolute;
|
|
27
35
|
z-index: 5;
|
|
28
36
|
margin: 15px;
|
|
37
|
+
|
|
29
38
|
&.top {
|
|
30
39
|
top: 0;
|
|
31
40
|
}
|
|
41
|
+
|
|
32
42
|
&.bottom {
|
|
33
43
|
bottom: 0;
|
|
34
44
|
}
|
|
45
|
+
|
|
35
46
|
&.left {
|
|
36
47
|
left: 0;
|
|
37
48
|
}
|
|
49
|
+
|
|
38
50
|
&.right {
|
|
39
51
|
right: 0;
|
|
40
52
|
}
|
|
53
|
+
|
|
41
54
|
&.center {
|
|
42
55
|
left: 50%;
|
|
43
56
|
transform: translateX(-50%);
|
|
44
57
|
}
|
|
45
58
|
}
|
|
59
|
+
|
|
46
60
|
.solid-flow__nodes {
|
|
47
61
|
z-index: 0;
|
|
48
62
|
pointer-events: none;
|
|
@@ -53,6 +67,7 @@
|
|
|
53
67
|
.a11y-hidden {
|
|
54
68
|
display: none;
|
|
55
69
|
}
|
|
70
|
+
|
|
56
71
|
.a11y-live-msg {
|
|
57
72
|
position: absolute;
|
|
58
73
|
width: 1px;
|
|
@@ -65,50 +80,64 @@
|
|
|
65
80
|
clip-path: inset(100%);
|
|
66
81
|
}
|
|
67
82
|
|
|
83
|
+
|
|
84
|
+
/* Graph Styles */
|
|
68
85
|
/* src/components/graph/connection/styles.css */
|
|
69
86
|
.solid-flow {
|
|
70
87
|
--xy-connectionline-stroke-default: #b1b1b7;
|
|
71
88
|
--xy-connectionline-stroke-width-default: 1;
|
|
72
89
|
}
|
|
90
|
+
|
|
73
91
|
.solid-flow.dark {
|
|
74
92
|
--xy-connectionline-stroke-default: #b1b1b7;
|
|
75
93
|
--xy-connectionline-stroke-width-default: 1;
|
|
76
94
|
}
|
|
95
|
+
|
|
77
96
|
connectionline {
|
|
78
97
|
z-index: 1001;
|
|
79
98
|
overflow: visible;
|
|
80
99
|
position: absolute;
|
|
81
100
|
}
|
|
101
|
+
|
|
82
102
|
.solid-flow__connection {
|
|
83
103
|
pointer-events: none;
|
|
104
|
+
|
|
84
105
|
.animated {
|
|
85
106
|
stroke-dasharray: 5;
|
|
86
107
|
animation: dashdraw 0.5s linear infinite;
|
|
87
108
|
}
|
|
88
109
|
}
|
|
110
|
+
|
|
89
111
|
.solid-flow__connection-path {
|
|
90
112
|
fill: none;
|
|
91
113
|
stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
|
|
92
|
-
stroke-width: var(
|
|
114
|
+
stroke-width: var(
|
|
115
|
+
--xy-connectionline-stroke-width,
|
|
116
|
+
var(--xy-connectionline-stroke-width-default)
|
|
117
|
+
);
|
|
93
118
|
}
|
|
94
119
|
|
|
95
120
|
/* src/components/graph/edge/styles.css */
|
|
96
121
|
.solid-flow {
|
|
97
122
|
--xy-edge-label-background-color-default: #ffffff;
|
|
98
123
|
--xy-edge-label-color-default: inherit;
|
|
124
|
+
|
|
99
125
|
--xy-edge-stroke-default: #b1b1b7;
|
|
100
126
|
--xy-edge-stroke-width-default: 1;
|
|
101
127
|
--xy-edge-stroke-selected-default: #555;
|
|
102
128
|
}
|
|
129
|
+
|
|
103
130
|
.solid-flow.dark {
|
|
104
131
|
--xy-edge-stroke-default: #3e3e3e;
|
|
105
132
|
--xy-edge-stroke-width-default: 1;
|
|
106
133
|
--xy-edge-stroke-selected-default: #727272;
|
|
107
134
|
}
|
|
135
|
+
|
|
108
136
|
.solid-flow__edgeupdater {
|
|
109
137
|
cursor: move;
|
|
110
138
|
pointer-events: all;
|
|
111
139
|
}
|
|
140
|
+
|
|
112
141
|
.solid-flow__edgelabel-renderer {
|
|
113
142
|
position: absolute;
|
|
114
143
|
width: 100%;
|
|
@@ -119,6 +148,7 @@ connectionline {
|
|
|
119
148
|
top: 0;
|
|
120
149
|
z-index: 0;
|
|
121
150
|
}
|
|
151
|
+
|
|
122
152
|
.solid-flow__edge-label {
|
|
123
153
|
text-align: center;
|
|
124
154
|
position: absolute;
|
|
@@ -128,53 +158,66 @@ connectionline {
|
|
|
128
158
|
color: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
|
|
129
159
|
background: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
|
|
130
160
|
}
|
|
161
|
+
|
|
131
162
|
.solid-flow__edge-path {
|
|
132
163
|
stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
|
|
133
164
|
stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
|
|
134
165
|
fill: none;
|
|
135
166
|
}
|
|
167
|
+
|
|
136
168
|
.solid-flow__edges {
|
|
137
169
|
position: absolute;
|
|
170
|
+
|
|
138
171
|
svg {
|
|
139
172
|
overflow: visible;
|
|
140
173
|
position: absolute;
|
|
141
174
|
pointer-events: none;
|
|
142
175
|
}
|
|
143
176
|
}
|
|
177
|
+
|
|
144
178
|
.solid-flow__edge {
|
|
145
179
|
pointer-events: visibleStroke;
|
|
180
|
+
|
|
146
181
|
&.updating {
|
|
147
182
|
.solid-flow__edge-path {
|
|
148
183
|
stroke: #777;
|
|
149
184
|
}
|
|
150
185
|
}
|
|
186
|
+
|
|
151
187
|
&.selectable {
|
|
152
188
|
cursor: pointer;
|
|
153
189
|
}
|
|
190
|
+
|
|
154
191
|
&.animated path {
|
|
155
192
|
stroke-dasharray: 5;
|
|
156
193
|
animation: dashdraw 0.5s linear infinite;
|
|
157
194
|
}
|
|
195
|
+
|
|
158
196
|
&.animated path.solid-flow__edge-interaction {
|
|
159
197
|
stroke-dasharray: none;
|
|
160
198
|
animation: none;
|
|
161
199
|
}
|
|
200
|
+
|
|
162
201
|
&.inactive {
|
|
163
202
|
pointer-events: none;
|
|
164
203
|
}
|
|
204
|
+
|
|
165
205
|
&.selected,
|
|
166
206
|
&:focus,
|
|
167
207
|
&:focus-visible {
|
|
168
208
|
outline: none;
|
|
169
209
|
}
|
|
210
|
+
|
|
170
211
|
&.selected .solid-flow__edge-path,
|
|
171
212
|
&.selectable:focus .solid-flow__edge-path,
|
|
172
213
|
&.selectable:focus-visible .solid-flow__edge-path {
|
|
173
214
|
stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
|
|
174
215
|
}
|
|
216
|
+
|
|
175
217
|
&.textwrapper {
|
|
176
218
|
pointer-events: all;
|
|
177
219
|
}
|
|
220
|
+
|
|
178
221
|
&.text {
|
|
179
222
|
font-size: 10px;
|
|
180
223
|
pointer-events: none;
|
|
@@ -187,43 +230,52 @@ connectionline {
|
|
|
187
230
|
--xy-handle-background-color-default: #1a192b;
|
|
188
231
|
--xy-handle-border-color-default: #fff;
|
|
189
232
|
}
|
|
233
|
+
|
|
190
234
|
.solid-flow.dark {
|
|
191
235
|
--xy-handle-background-color-default: #bebebe;
|
|
192
236
|
--xy-handle-border-color-default: #1e1e1e;
|
|
193
237
|
}
|
|
238
|
+
|
|
194
239
|
.solid-flow__handle {
|
|
195
240
|
position: absolute;
|
|
196
241
|
pointer-events: none;
|
|
197
242
|
min-width: 5px;
|
|
198
243
|
min-height: 5px;
|
|
244
|
+
|
|
199
245
|
width: 6px;
|
|
200
246
|
height: 6px;
|
|
201
247
|
background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
|
|
202
248
|
border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));
|
|
203
249
|
border-radius: 100%;
|
|
250
|
+
|
|
204
251
|
&.connectingfrom {
|
|
205
252
|
pointer-events: all;
|
|
206
253
|
}
|
|
254
|
+
|
|
207
255
|
&.connectionindicator {
|
|
208
256
|
pointer-events: all;
|
|
209
257
|
cursor: crosshair;
|
|
210
258
|
}
|
|
211
259
|
}
|
|
260
|
+
|
|
212
261
|
.solid-flow__handle-left {
|
|
213
262
|
top: 50%;
|
|
214
263
|
left: 0;
|
|
215
264
|
transform: translate(-50%, -50%);
|
|
216
265
|
}
|
|
266
|
+
|
|
217
267
|
.solid-flow__handle-right {
|
|
218
268
|
top: 50%;
|
|
219
269
|
right: 0;
|
|
220
270
|
transform: translate(50%, -50%);
|
|
221
271
|
}
|
|
272
|
+
|
|
222
273
|
.solid-flow__handle-top {
|
|
223
274
|
top: 0;
|
|
224
275
|
left: 50%;
|
|
225
276
|
transform: translate(-50%, -50%);
|
|
226
277
|
}
|
|
278
|
+
|
|
227
279
|
.solid-flow__handle-bottom {
|
|
228
280
|
top: auto;
|
|
229
281
|
left: 50%;
|
|
@@ -240,8 +292,10 @@ connectionline {
|
|
|
240
292
|
--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
|
|
241
293
|
--xy-node-boxshadow-selected-default: 0 0 0 0.5px #1a192b;
|
|
242
294
|
--xy-node-border-radius-default: 3px;
|
|
295
|
+
|
|
243
296
|
--xy-node-border-selected-default: 1px solid #555;
|
|
244
297
|
}
|
|
298
|
+
|
|
245
299
|
.solid-flow.dark {
|
|
246
300
|
--xy-node-color-default: #f8f8f8;
|
|
247
301
|
--xy-node-border-default: 1px solid #3c3c3c;
|
|
@@ -250,6 +304,7 @@ connectionline {
|
|
|
250
304
|
--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, 0.08);
|
|
251
305
|
--xy-node-boxshadow-selected-default: 0 0 0 0.5px #999;
|
|
252
306
|
}
|
|
307
|
+
|
|
253
308
|
.solid-flow__node {
|
|
254
309
|
position: absolute;
|
|
255
310
|
user-select: none;
|
|
@@ -257,20 +312,26 @@ connectionline {
|
|
|
257
312
|
transform-origin: 0 0;
|
|
258
313
|
box-sizing: border-box;
|
|
259
314
|
cursor: default;
|
|
315
|
+
|
|
260
316
|
&.selectable {
|
|
261
317
|
cursor: pointer;
|
|
262
318
|
}
|
|
319
|
+
|
|
263
320
|
&.draggable {
|
|
264
321
|
cursor: grab;
|
|
265
322
|
pointer-events: all;
|
|
323
|
+
|
|
266
324
|
&.dragging {
|
|
267
325
|
cursor: grabbing;
|
|
268
326
|
}
|
|
269
327
|
}
|
|
328
|
+
|
|
329
|
+
/* TODO: Verify this class */
|
|
270
330
|
&.parent {
|
|
271
331
|
background-color: rgba(220, 220, 255, 0.4);
|
|
272
332
|
}
|
|
273
333
|
}
|
|
334
|
+
|
|
274
335
|
.solid-flow__node-input,
|
|
275
336
|
.solid-flow__node-default,
|
|
276
337
|
.solid-flow__node-output,
|
|
@@ -283,10 +344,12 @@ connectionline {
|
|
|
283
344
|
text-align: center;
|
|
284
345
|
border: var(--xy-node-border, var(--xy-node-border-default));
|
|
285
346
|
background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));
|
|
347
|
+
|
|
286
348
|
&.selectable {
|
|
287
349
|
&:hover {
|
|
288
350
|
box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));
|
|
289
351
|
}
|
|
352
|
+
|
|
290
353
|
&.selected,
|
|
291
354
|
&:focus,
|
|
292
355
|
&:focus-visible {
|
|
@@ -296,8 +359,12 @@ connectionline {
|
|
|
296
359
|
}
|
|
297
360
|
}
|
|
298
361
|
}
|
|
362
|
+
|
|
299
363
|
.solid-flow__node-group {
|
|
300
|
-
background-color: var(
|
|
364
|
+
background-color: var(
|
|
365
|
+
--xy-node-group-background-color,
|
|
366
|
+
var(--xy-node-group-background-color-default)
|
|
367
|
+
);
|
|
301
368
|
}
|
|
302
369
|
|
|
303
370
|
/* src/components/graph/plugins/background/styles.css */
|
|
@@ -306,29 +373,48 @@ connectionline {
|
|
|
306
373
|
--xy-background-pattern-dots-color-default: #91919a;
|
|
307
374
|
--xy-background-pattern-lines-color-default: #eee;
|
|
308
375
|
--xy-background-pattern-cross-color-default: #e2e2e2;
|
|
376
|
+
|
|
309
377
|
--background-color-default: #fff;
|
|
310
378
|
--background-pattern-color-default: #ddd;
|
|
311
379
|
}
|
|
380
|
+
|
|
312
381
|
.solid-flow.dark {
|
|
313
382
|
--xy-background-color-default: #141414;
|
|
314
383
|
--xy-background-pattern-dots-color-default: #777;
|
|
315
384
|
--xy-background-pattern-lines-color-default: #777;
|
|
316
385
|
--xy-background-pattern-cross-color-default: #777;
|
|
317
386
|
}
|
|
387
|
+
|
|
318
388
|
.solid-flow__background {
|
|
319
389
|
pointer-events: none;
|
|
320
390
|
z-index: -1;
|
|
321
|
-
|
|
391
|
+
|
|
392
|
+
background-color: var(
|
|
393
|
+
--xy-background-color,
|
|
394
|
+
var(--xy-background-color-props, var(--xy-background-color-default))
|
|
395
|
+
);
|
|
322
396
|
}
|
|
397
|
+
|
|
323
398
|
.solid-flow__background-pattern {
|
|
324
399
|
&.dots {
|
|
325
|
-
fill: var(
|
|
400
|
+
fill: var(
|
|
401
|
+
--xy-background-pattern-color-props,
|
|
402
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))
|
|
403
|
+
);
|
|
326
404
|
}
|
|
405
|
+
|
|
327
406
|
&.lines {
|
|
328
|
-
stroke: var(
|
|
407
|
+
stroke: var(
|
|
408
|
+
--xy-background-pattern-color-props,
|
|
409
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))
|
|
410
|
+
);
|
|
329
411
|
}
|
|
412
|
+
|
|
330
413
|
&.cross {
|
|
331
|
-
stroke: var(
|
|
414
|
+
stroke: var(
|
|
415
|
+
--xy-background-pattern-color-props,
|
|
416
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))
|
|
417
|
+
);
|
|
332
418
|
}
|
|
333
419
|
}
|
|
334
420
|
|
|
@@ -341,6 +427,7 @@ connectionline {
|
|
|
341
427
|
--xy-controls-button-border-color-default: #eee;
|
|
342
428
|
--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);
|
|
343
429
|
}
|
|
430
|
+
|
|
344
431
|
.solid-flow.dark {
|
|
345
432
|
--xy-controls-button-background-color-default: #2b2b2b;
|
|
346
433
|
--xy-controls-button-background-color-hover-default: #3e3e3e;
|
|
@@ -349,36 +436,64 @@ connectionline {
|
|
|
349
436
|
--xy-controls-button-border-color-default: #5b5b5b;
|
|
350
437
|
--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);
|
|
351
438
|
}
|
|
439
|
+
|
|
352
440
|
.solid-flow__controls {
|
|
353
441
|
display: flex;
|
|
354
442
|
flex-direction: column;
|
|
355
443
|
box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));
|
|
444
|
+
|
|
356
445
|
&.horizontal {
|
|
357
446
|
flex-direction: row;
|
|
358
447
|
}
|
|
448
|
+
|
|
359
449
|
button {
|
|
360
450
|
cursor: pointer;
|
|
361
451
|
user-select: none;
|
|
362
452
|
border: none;
|
|
453
|
+
|
|
363
454
|
display: flex;
|
|
364
455
|
justify-content: center;
|
|
365
456
|
align-items: center;
|
|
366
457
|
height: 26px;
|
|
367
458
|
width: 26px;
|
|
368
459
|
padding: 4px;
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
460
|
+
|
|
461
|
+
background: var(
|
|
462
|
+
--xy-controls-button-background-color,
|
|
463
|
+
var(--xy-controls-button-background-color-default)
|
|
464
|
+
);
|
|
465
|
+
border-bottom: 1px solid
|
|
466
|
+
var(
|
|
467
|
+
--xy-controls-button-border-color-props,
|
|
468
|
+
var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default))
|
|
469
|
+
);
|
|
470
|
+
color: var(
|
|
471
|
+
--xy-controls-button-color-props,
|
|
472
|
+
var(--xy-controls-button-color, var(--xy-controls-button-color-default))
|
|
473
|
+
);
|
|
474
|
+
|
|
372
475
|
&:hover {
|
|
373
|
-
background: var(
|
|
374
|
-
|
|
476
|
+
background: var(
|
|
477
|
+
--xy-controls-button-background-color-hover-props,
|
|
478
|
+
var(
|
|
479
|
+
--xy-controls-button-background-color-hover,
|
|
480
|
+
var(--xy-controls-button-background-color-hover-default)
|
|
481
|
+
)
|
|
482
|
+
);
|
|
483
|
+
color: var(
|
|
484
|
+
--xy-controls-button-color-hover-props,
|
|
485
|
+
var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default))
|
|
486
|
+
);
|
|
375
487
|
}
|
|
488
|
+
|
|
376
489
|
&:disabled {
|
|
377
490
|
pointer-events: none;
|
|
491
|
+
|
|
378
492
|
svg {
|
|
379
493
|
fill-opacity: 0.4;
|
|
380
494
|
}
|
|
381
495
|
}
|
|
496
|
+
|
|
382
497
|
svg {
|
|
383
498
|
width: 100%;
|
|
384
499
|
max-width: 12px;
|
|
@@ -386,6 +501,7 @@ connectionline {
|
|
|
386
501
|
fill: currentColor;
|
|
387
502
|
}
|
|
388
503
|
}
|
|
504
|
+
|
|
389
505
|
button:last-child {
|
|
390
506
|
border-bottom: none;
|
|
391
507
|
}
|
|
@@ -394,62 +510,98 @@ connectionline {
|
|
|
394
510
|
/* src/components/graph/plugins/minimap/styles.css */
|
|
395
511
|
.solid-flow {
|
|
396
512
|
--xy-minimap-background-color-default: #fff;
|
|
513
|
+
|
|
397
514
|
--xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);
|
|
398
515
|
--xy-minimap-mask-stroke-color-default: transparent;
|
|
399
516
|
--xy-minimap-mask-stroke-width-default: 1;
|
|
517
|
+
|
|
400
518
|
--xy-minimap-node-background-color-default: #e2e2e2;
|
|
401
519
|
--xy-minimap-node-stroke-color-default: transparent;
|
|
402
520
|
--xy-minimap-node-stroke-width-default: 2;
|
|
403
521
|
}
|
|
522
|
+
|
|
404
523
|
.solid-flow.dark {
|
|
405
524
|
--xy-minimap-background-color-default: #141414;
|
|
525
|
+
|
|
406
526
|
--xy-minimap-mask-background-color-default: rgb(60, 60, 60, 0.6);
|
|
407
527
|
--xy-minimap-mask-stroke-color-default: transparent;
|
|
408
528
|
--xy-minimap-mask-stroke-width-default: 1;
|
|
529
|
+
|
|
409
530
|
--xy-minimap-node-background-color-default: #2b2b2b;
|
|
410
531
|
--xy-minimap-node-stroke-color-default: transparent;
|
|
411
532
|
--xy-minimap-node-stroke-width-default: 2;
|
|
412
533
|
}
|
|
534
|
+
|
|
413
535
|
.solid-flow__minimap {
|
|
414
|
-
background: var(
|
|
536
|
+
background: var(
|
|
537
|
+
--xy-minimap-background-color-props,
|
|
538
|
+
var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))
|
|
539
|
+
);
|
|
415
540
|
}
|
|
541
|
+
|
|
416
542
|
.solid-flow__minimap-svg {
|
|
417
543
|
display: block;
|
|
418
544
|
}
|
|
545
|
+
|
|
419
546
|
.solid-flow__minimap-mask {
|
|
420
|
-
fill: var(
|
|
421
|
-
|
|
422
|
-
|
|
547
|
+
fill: var(
|
|
548
|
+
--xy-minimap-mask-background-color-props,
|
|
549
|
+
var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))
|
|
550
|
+
);
|
|
551
|
+
stroke: var(
|
|
552
|
+
--xy-minimap-mask-stroke-color-props,
|
|
553
|
+
var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))
|
|
554
|
+
);
|
|
555
|
+
stroke-width: var(
|
|
556
|
+
--xy-minimap-mask-stroke-width-props,
|
|
557
|
+
var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))
|
|
558
|
+
);
|
|
423
559
|
}
|
|
560
|
+
|
|
424
561
|
.solid-flow__minimap-node {
|
|
425
|
-
fill: var(
|
|
426
|
-
|
|
427
|
-
|
|
562
|
+
fill: var(
|
|
563
|
+
--xy-minimap-node-background-color-props,
|
|
564
|
+
var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))
|
|
565
|
+
);
|
|
566
|
+
stroke: var(
|
|
567
|
+
--xy-minimap-node-stroke-color-props,
|
|
568
|
+
var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))
|
|
569
|
+
);
|
|
570
|
+
stroke-width: var(
|
|
571
|
+
--xy-minimap-node-stroke-width-props,
|
|
572
|
+
var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))
|
|
573
|
+
);
|
|
428
574
|
}
|
|
429
575
|
|
|
430
576
|
/* src/components/graph/plugins/nodeResizer/styles.css */
|
|
431
577
|
.solid-flow {
|
|
432
578
|
--xy-resize-background-color-default: #3367d9;
|
|
433
579
|
}
|
|
580
|
+
|
|
434
581
|
.solid-flow__resize-control {
|
|
435
582
|
position: absolute;
|
|
583
|
+
|
|
436
584
|
&.left,
|
|
437
585
|
&.right {
|
|
438
586
|
cursor: ew-resize;
|
|
439
587
|
}
|
|
588
|
+
|
|
440
589
|
&.top,
|
|
441
590
|
&.bottom {
|
|
442
591
|
cursor: ns-resize;
|
|
443
592
|
}
|
|
593
|
+
|
|
444
594
|
&.top.left,
|
|
445
595
|
&.bottom.right {
|
|
446
596
|
cursor: nwse-resize;
|
|
447
597
|
}
|
|
598
|
+
|
|
448
599
|
&.bottom.left,
|
|
449
600
|
&.top.right {
|
|
450
601
|
cursor: nesw-resize;
|
|
451
602
|
}
|
|
452
603
|
}
|
|
604
|
+
|
|
453
605
|
.solid-flow__resize-control.handle {
|
|
454
606
|
width: 4px;
|
|
455
607
|
height: 4px;
|
|
@@ -457,39 +609,50 @@ connectionline {
|
|
|
457
609
|
border-radius: 1px;
|
|
458
610
|
background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
|
|
459
611
|
transform: translate(-50%, -50%);
|
|
612
|
+
|
|
460
613
|
&.left {
|
|
461
614
|
left: 0;
|
|
462
615
|
top: 50%;
|
|
463
616
|
}
|
|
617
|
+
|
|
464
618
|
&.right {
|
|
465
619
|
left: 100%;
|
|
466
620
|
top: 50%;
|
|
467
621
|
}
|
|
622
|
+
|
|
468
623
|
&.top {
|
|
469
624
|
left: 50%;
|
|
470
625
|
top: 0;
|
|
471
626
|
}
|
|
627
|
+
|
|
472
628
|
&.bottom {
|
|
473
629
|
left: 50%;
|
|
474
630
|
top: 100%;
|
|
475
631
|
}
|
|
632
|
+
|
|
476
633
|
&.top.left {
|
|
477
634
|
left: 0;
|
|
478
635
|
}
|
|
636
|
+
|
|
479
637
|
&.bottom.left {
|
|
480
638
|
left: 0;
|
|
481
639
|
}
|
|
640
|
+
|
|
482
641
|
&.top.right {
|
|
483
642
|
left: 100%;
|
|
484
643
|
}
|
|
644
|
+
|
|
485
645
|
&.bottom.right {
|
|
486
646
|
left: 100%;
|
|
487
647
|
}
|
|
488
648
|
}
|
|
649
|
+
|
|
650
|
+
/* line styles */
|
|
489
651
|
.solid-flow__resize-control.line {
|
|
490
652
|
border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
|
|
491
653
|
border-width: 0;
|
|
492
654
|
border-style: solid;
|
|
655
|
+
|
|
493
656
|
&.left,
|
|
494
657
|
&.right {
|
|
495
658
|
width: 1px;
|
|
@@ -497,6 +660,7 @@ connectionline {
|
|
|
497
660
|
transform: translate(-50%, 0);
|
|
498
661
|
top: 0;
|
|
499
662
|
}
|
|
663
|
+
|
|
500
664
|
&.top,
|
|
501
665
|
&.bottom {
|
|
502
666
|
width: 100%;
|
|
@@ -504,18 +668,22 @@ connectionline {
|
|
|
504
668
|
transform: translate(0, -50%);
|
|
505
669
|
left: 0;
|
|
506
670
|
}
|
|
671
|
+
|
|
507
672
|
&.left {
|
|
508
673
|
left: 0;
|
|
509
674
|
border-left-width: 1px;
|
|
510
675
|
}
|
|
676
|
+
|
|
511
677
|
&.right {
|
|
512
678
|
left: 100%;
|
|
513
679
|
border-right-width: 1px;
|
|
514
680
|
}
|
|
681
|
+
|
|
515
682
|
&.top {
|
|
516
683
|
top: 0;
|
|
517
684
|
border-top-width: 1px;
|
|
518
685
|
}
|
|
686
|
+
|
|
519
687
|
&.bottom {
|
|
520
688
|
top: 100%;
|
|
521
689
|
border-bottom-width: 1px;
|
|
@@ -527,10 +695,12 @@ connectionline {
|
|
|
527
695
|
--xy-selection-background-color-default: rgba(0, 89, 220, 0.08);
|
|
528
696
|
--xy-selection-border-default: 1px dotted rgba(0, 89, 220, 0.8);
|
|
529
697
|
}
|
|
698
|
+
|
|
530
699
|
.solid-flow.dark {
|
|
531
700
|
--xy-selection-background-color-default: rgba(200, 200, 220, 0.08);
|
|
532
701
|
--xy-selection-border-default: 1px dotted rgba(200, 200, 220, 0.8);
|
|
533
702
|
}
|
|
703
|
+
|
|
534
704
|
.solid-flow__selection-wrapper {
|
|
535
705
|
position: absolute;
|
|
536
706
|
top: 0;
|
|
@@ -538,38 +708,49 @@ connectionline {
|
|
|
538
708
|
z-index: 2000;
|
|
539
709
|
pointer-events: all;
|
|
540
710
|
}
|
|
711
|
+
|
|
541
712
|
.solid-flow__selection {
|
|
542
713
|
background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
|
|
543
714
|
border: var(--xy-selection-border, var(--xy-selection-border-default));
|
|
715
|
+
|
|
544
716
|
position: absolute;
|
|
545
717
|
top: 0;
|
|
546
718
|
left: 0;
|
|
547
719
|
z-index: 6;
|
|
720
|
+
|
|
548
721
|
&:focus,
|
|
549
722
|
&:focus-visible {
|
|
550
723
|
outline: none;
|
|
551
724
|
}
|
|
552
725
|
}
|
|
553
726
|
|
|
727
|
+
|
|
728
|
+
/* Utility Styles */
|
|
554
729
|
/* src/components/utility/styles.css */
|
|
555
730
|
.solid-flow {
|
|
556
731
|
--xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);
|
|
557
732
|
}
|
|
733
|
+
|
|
558
734
|
.solid-flow.dark {
|
|
559
735
|
--xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);
|
|
560
736
|
}
|
|
737
|
+
|
|
561
738
|
.solid-flow__attribution {
|
|
562
739
|
font-size: 10px;
|
|
563
|
-
background: var(
|
|
740
|
+
background: var(
|
|
741
|
+
--xy-attribution-background-color,
|
|
742
|
+
var(--xy-attribution-background-color-default)
|
|
743
|
+
);
|
|
564
744
|
padding: 2px 3px;
|
|
565
745
|
margin: 0;
|
|
746
|
+
|
|
566
747
|
a {
|
|
567
748
|
text-decoration: none;
|
|
568
749
|
color: #999;
|
|
569
750
|
}
|
|
570
751
|
}
|
|
571
752
|
|
|
572
|
-
|
|
753
|
+
|
|
573
754
|
.solid-flow__container {
|
|
574
755
|
position: absolute;
|
|
575
756
|
width: 100%;
|
|
@@ -577,14 +758,17 @@ connectionline {
|
|
|
577
758
|
top: 0;
|
|
578
759
|
left: 0;
|
|
579
760
|
}
|
|
761
|
+
|
|
580
762
|
.solid-flow {
|
|
581
763
|
width: 100%;
|
|
582
764
|
height: 100%;
|
|
583
765
|
overflow: hidden;
|
|
584
766
|
position: relative;
|
|
585
767
|
z-index: 0;
|
|
768
|
+
|
|
586
769
|
background-color: var(--xy-background-color, var(--xy-background-color-default));
|
|
587
770
|
}
|
|
771
|
+
|
|
588
772
|
@keyframes dashdraw {
|
|
589
773
|
from {
|
|
590
774
|
stroke-dashoffset: 10;
|