@xyflow/vue 2.0.0-next.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/dist/base.css +514 -0
- package/dist/index.d.mts +2208 -0
- package/dist/index.d.ts +2208 -0
- package/dist/index.js +7655 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +7442 -0
- package/dist/index.mjs.map +1 -0
- package/dist/style.css +634 -0
- package/package.json +90 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019-2025 webkid GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/base.css
ADDED
|
@@ -0,0 +1,514 @@
|
|
|
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
|
+
.vue-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
|
+
.vue-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: #777;
|
|
57
|
+
--xy-background-pattern-lines-color-default: #777;
|
|
58
|
+
--xy-background-pattern-cross-color-default: #777;
|
|
59
|
+
--xy-node-color-default: #f8f8f8;
|
|
60
|
+
}
|
|
61
|
+
.vue-flow__background {
|
|
62
|
+
background-color: var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
z-index: -1;
|
|
65
|
+
}
|
|
66
|
+
.vue-flow__container {
|
|
67
|
+
position: absolute;
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
top: 0;
|
|
71
|
+
left: 0;
|
|
72
|
+
}
|
|
73
|
+
.vue-flow__pane {
|
|
74
|
+
z-index: 1;
|
|
75
|
+
touch-action: none;
|
|
76
|
+
}
|
|
77
|
+
.vue-flow__pane.draggable {
|
|
78
|
+
cursor: grab;
|
|
79
|
+
}
|
|
80
|
+
.vue-flow__pane.dragging {
|
|
81
|
+
cursor: grabbing;
|
|
82
|
+
}
|
|
83
|
+
.vue-flow__pane.selection {
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
.vue-flow__viewport {
|
|
87
|
+
transform-origin: 0 0;
|
|
88
|
+
z-index: 2;
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
}
|
|
91
|
+
.vue-flow__renderer {
|
|
92
|
+
z-index: 4;
|
|
93
|
+
}
|
|
94
|
+
.vue-flow__selection {
|
|
95
|
+
z-index: 6;
|
|
96
|
+
}
|
|
97
|
+
.vue-flow__nodesselection-rect:focus,
|
|
98
|
+
.vue-flow__nodesselection-rect:focus-visible {
|
|
99
|
+
outline: none;
|
|
100
|
+
}
|
|
101
|
+
.vue-flow__edge-path {
|
|
102
|
+
stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
|
|
103
|
+
stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
|
|
104
|
+
fill: none;
|
|
105
|
+
}
|
|
106
|
+
.vue-flow__connection-path {
|
|
107
|
+
stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
|
|
108
|
+
stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));
|
|
109
|
+
fill: none;
|
|
110
|
+
}
|
|
111
|
+
.vue-flow .vue-flow__edges {
|
|
112
|
+
position: absolute;
|
|
113
|
+
}
|
|
114
|
+
.vue-flow .vue-flow__edges svg {
|
|
115
|
+
overflow: visible;
|
|
116
|
+
position: absolute;
|
|
117
|
+
pointer-events: none;
|
|
118
|
+
}
|
|
119
|
+
.vue-flow__edge {
|
|
120
|
+
pointer-events: visibleStroke;
|
|
121
|
+
}
|
|
122
|
+
.vue-flow__edge.selectable {
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
}
|
|
125
|
+
.vue-flow__edge.animated path {
|
|
126
|
+
stroke-dasharray: 5;
|
|
127
|
+
animation: dashdraw 0.5s linear infinite;
|
|
128
|
+
}
|
|
129
|
+
.vue-flow__edge.animated path.vue-flow__edge-interaction {
|
|
130
|
+
stroke-dasharray: none;
|
|
131
|
+
animation: none;
|
|
132
|
+
}
|
|
133
|
+
.vue-flow__edge.inactive {
|
|
134
|
+
pointer-events: none;
|
|
135
|
+
}
|
|
136
|
+
.vue-flow__edge.selected,
|
|
137
|
+
.vue-flow__edge:focus,
|
|
138
|
+
.vue-flow__edge:focus-visible {
|
|
139
|
+
outline: none;
|
|
140
|
+
}
|
|
141
|
+
.vue-flow__edge.selected .vue-flow__edge-path,
|
|
142
|
+
.vue-flow__edge.selectable:focus .vue-flow__edge-path,
|
|
143
|
+
.vue-flow__edge.selectable:focus-visible .vue-flow__edge-path {
|
|
144
|
+
stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
|
|
145
|
+
}
|
|
146
|
+
.vue-flow__edge-textwrapper {
|
|
147
|
+
pointer-events: all;
|
|
148
|
+
}
|
|
149
|
+
.vue-flow__edge .vue-flow__edge-text {
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
-webkit-user-select: none;
|
|
152
|
+
-moz-user-select: none;
|
|
153
|
+
user-select: none;
|
|
154
|
+
}
|
|
155
|
+
/* Arrowhead marker styles - use CSS custom properties as default */
|
|
156
|
+
.vue-flow__arrowhead polyline {
|
|
157
|
+
stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
|
|
158
|
+
}
|
|
159
|
+
.vue-flow__arrowhead polyline.arrowclosed {
|
|
160
|
+
fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
|
|
161
|
+
}
|
|
162
|
+
.vue-flow__connection {
|
|
163
|
+
pointer-events: none;
|
|
164
|
+
}
|
|
165
|
+
.vue-flow__connection .animated {
|
|
166
|
+
stroke-dasharray: 5;
|
|
167
|
+
animation: dashdraw 0.5s linear infinite;
|
|
168
|
+
}
|
|
169
|
+
svg.vue-flow__connectionline {
|
|
170
|
+
z-index: 1001;
|
|
171
|
+
overflow: visible;
|
|
172
|
+
position: absolute;
|
|
173
|
+
}
|
|
174
|
+
.vue-flow__nodes {
|
|
175
|
+
pointer-events: none;
|
|
176
|
+
transform-origin: 0 0;
|
|
177
|
+
}
|
|
178
|
+
.vue-flow__node {
|
|
179
|
+
position: absolute;
|
|
180
|
+
-webkit-user-select: none;
|
|
181
|
+
-moz-user-select: none;
|
|
182
|
+
user-select: none;
|
|
183
|
+
pointer-events: all;
|
|
184
|
+
transform-origin: 0 0;
|
|
185
|
+
box-sizing: border-box;
|
|
186
|
+
cursor: default;
|
|
187
|
+
}
|
|
188
|
+
.vue-flow__node.selectable {
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
}
|
|
191
|
+
.vue-flow__node.draggable {
|
|
192
|
+
cursor: grab;
|
|
193
|
+
pointer-events: all;
|
|
194
|
+
}
|
|
195
|
+
.vue-flow__node.draggable.dragging {
|
|
196
|
+
cursor: grabbing;
|
|
197
|
+
}
|
|
198
|
+
.vue-flow__nodesselection {
|
|
199
|
+
z-index: 3;
|
|
200
|
+
transform-origin: left top;
|
|
201
|
+
pointer-events: none;
|
|
202
|
+
}
|
|
203
|
+
.vue-flow__nodesselection-rect {
|
|
204
|
+
position: absolute;
|
|
205
|
+
pointer-events: all;
|
|
206
|
+
cursor: grab;
|
|
207
|
+
}
|
|
208
|
+
.vue-flow__handle {
|
|
209
|
+
position: absolute;
|
|
210
|
+
pointer-events: none;
|
|
211
|
+
min-width: 5px;
|
|
212
|
+
min-height: 5px;
|
|
213
|
+
background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
|
|
214
|
+
}
|
|
215
|
+
.vue-flow__handle.connectingfrom {
|
|
216
|
+
pointer-events: all;
|
|
217
|
+
}
|
|
218
|
+
.vue-flow__handle.connectionindicator {
|
|
219
|
+
pointer-events: all;
|
|
220
|
+
cursor: crosshair;
|
|
221
|
+
}
|
|
222
|
+
.vue-flow__handle-bottom {
|
|
223
|
+
top: auto;
|
|
224
|
+
left: 50%;
|
|
225
|
+
bottom: 0;
|
|
226
|
+
transform: translate(-50%, 50%);
|
|
227
|
+
}
|
|
228
|
+
.vue-flow__handle-top {
|
|
229
|
+
top: 0;
|
|
230
|
+
left: 50%;
|
|
231
|
+
transform: translate(-50%, -50%);
|
|
232
|
+
}
|
|
233
|
+
.vue-flow__handle-left {
|
|
234
|
+
top: 50%;
|
|
235
|
+
left: 0;
|
|
236
|
+
transform: translate(-50%, -50%);
|
|
237
|
+
}
|
|
238
|
+
.vue-flow__handle-right {
|
|
239
|
+
top: 50%;
|
|
240
|
+
right: 0;
|
|
241
|
+
transform: translate(50%, -50%);
|
|
242
|
+
}
|
|
243
|
+
.vue-flow__edgeupdater {
|
|
244
|
+
cursor: move;
|
|
245
|
+
pointer-events: all;
|
|
246
|
+
}
|
|
247
|
+
.vue-flow__pane.selection .vue-flow__panel {
|
|
248
|
+
pointer-events: none;
|
|
249
|
+
}
|
|
250
|
+
.vue-flow__panel {
|
|
251
|
+
position: absolute;
|
|
252
|
+
z-index: 5;
|
|
253
|
+
margin: 15px;
|
|
254
|
+
}
|
|
255
|
+
.vue-flow__panel.top {
|
|
256
|
+
top: 0;
|
|
257
|
+
}
|
|
258
|
+
.vue-flow__panel.bottom {
|
|
259
|
+
bottom: 0;
|
|
260
|
+
}
|
|
261
|
+
.vue-flow__panel.top.center, .vue-flow__panel.bottom.center {
|
|
262
|
+
left: 50%;
|
|
263
|
+
transform: translateX(-15px) translateX(-50%);
|
|
264
|
+
}
|
|
265
|
+
.vue-flow__panel.left {
|
|
266
|
+
left: 0;
|
|
267
|
+
}
|
|
268
|
+
.vue-flow__panel.right {
|
|
269
|
+
right: 0;
|
|
270
|
+
}
|
|
271
|
+
.vue-flow__panel.left.center, .vue-flow__panel.right.center {
|
|
272
|
+
top: 50%;
|
|
273
|
+
transform: translateY(-15px) translateY(-50%);
|
|
274
|
+
}
|
|
275
|
+
.vue-flow__attribution {
|
|
276
|
+
font-size: 10px;
|
|
277
|
+
background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));
|
|
278
|
+
padding: 2px 3px;
|
|
279
|
+
margin: 0;
|
|
280
|
+
}
|
|
281
|
+
.vue-flow__attribution a {
|
|
282
|
+
text-decoration: none;
|
|
283
|
+
color: #999;
|
|
284
|
+
}
|
|
285
|
+
@keyframes dashdraw {
|
|
286
|
+
from {
|
|
287
|
+
stroke-dashoffset: 10;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
.vue-flow__edgelabel-renderer {
|
|
291
|
+
position: absolute;
|
|
292
|
+
width: 100%;
|
|
293
|
+
height: 100%;
|
|
294
|
+
pointer-events: none;
|
|
295
|
+
-webkit-user-select: none;
|
|
296
|
+
-moz-user-select: none;
|
|
297
|
+
user-select: none;
|
|
298
|
+
left: 0;
|
|
299
|
+
top: 0;
|
|
300
|
+
}
|
|
301
|
+
.vue-flow__viewport-portal {
|
|
302
|
+
position: absolute;
|
|
303
|
+
width: 100%;
|
|
304
|
+
height: 100%;
|
|
305
|
+
left: 0;
|
|
306
|
+
top: 0;
|
|
307
|
+
-webkit-user-select: none;
|
|
308
|
+
-moz-user-select: none;
|
|
309
|
+
user-select: none;
|
|
310
|
+
}
|
|
311
|
+
.vue-flow__minimap {
|
|
312
|
+
background: var(
|
|
313
|
+
--xy-minimap-background-color-props,
|
|
314
|
+
var(--xy-minimap-background-color, var(--xy-minimap-background-color-default))
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
.vue-flow__minimap-svg {
|
|
318
|
+
display: block;
|
|
319
|
+
}
|
|
320
|
+
.vue-flow__minimap-mask {
|
|
321
|
+
fill: var(
|
|
322
|
+
--xy-minimap-mask-background-color-props,
|
|
323
|
+
var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default))
|
|
324
|
+
);
|
|
325
|
+
stroke: var(
|
|
326
|
+
--xy-minimap-mask-stroke-color-props,
|
|
327
|
+
var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default))
|
|
328
|
+
);
|
|
329
|
+
stroke-width: var(
|
|
330
|
+
--xy-minimap-mask-stroke-width-props,
|
|
331
|
+
var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default))
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
.vue-flow__minimap-node {
|
|
335
|
+
fill: var(
|
|
336
|
+
--xy-minimap-node-background-color-props,
|
|
337
|
+
var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default))
|
|
338
|
+
);
|
|
339
|
+
stroke: var(
|
|
340
|
+
--xy-minimap-node-stroke-color-props,
|
|
341
|
+
var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default))
|
|
342
|
+
);
|
|
343
|
+
stroke-width: var(
|
|
344
|
+
--xy-minimap-node-stroke-width-props,
|
|
345
|
+
var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default))
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
.vue-flow__background-pattern.dots {
|
|
349
|
+
fill: var(
|
|
350
|
+
--xy-background-pattern-color-props,
|
|
351
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default))
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
.vue-flow__background-pattern.lines {
|
|
355
|
+
stroke: var(
|
|
356
|
+
--xy-background-pattern-color-props,
|
|
357
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default))
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
.vue-flow__background-pattern.cross {
|
|
361
|
+
stroke: var(
|
|
362
|
+
--xy-background-pattern-color-props,
|
|
363
|
+
var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default))
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
.vue-flow__controls {
|
|
367
|
+
display: flex;
|
|
368
|
+
flex-direction: column;
|
|
369
|
+
}
|
|
370
|
+
.vue-flow__controls.horizontal {
|
|
371
|
+
flex-direction: row;
|
|
372
|
+
}
|
|
373
|
+
.vue-flow__controls-button {
|
|
374
|
+
display: flex;
|
|
375
|
+
justify-content: center;
|
|
376
|
+
align-items: center;
|
|
377
|
+
height: 26px;
|
|
378
|
+
width: 26px;
|
|
379
|
+
padding: 4px;
|
|
380
|
+
}
|
|
381
|
+
.vue-flow__controls-button svg {
|
|
382
|
+
width: 100%;
|
|
383
|
+
max-width: 12px;
|
|
384
|
+
max-height: 12px;
|
|
385
|
+
fill: currentColor;
|
|
386
|
+
}
|
|
387
|
+
.vue-flow__node-input,
|
|
388
|
+
.vue-flow__node-default,
|
|
389
|
+
.vue-flow__node-output,
|
|
390
|
+
.vue-flow__node-group {
|
|
391
|
+
border: var(--xy-node-border, var(--xy-node-border-default));
|
|
392
|
+
color: var(--xy-node-color, var(--xy-node-color-default));
|
|
393
|
+
}
|
|
394
|
+
.vue-flow__node-input.selected,
|
|
395
|
+
.vue-flow__node-input:focus,
|
|
396
|
+
.vue-flow__node-input:focus-visible,
|
|
397
|
+
.vue-flow__node-default.selected,
|
|
398
|
+
.vue-flow__node-default:focus,
|
|
399
|
+
.vue-flow__node-default:focus-visible,
|
|
400
|
+
.vue-flow__node-output.selected,
|
|
401
|
+
.vue-flow__node-output:focus,
|
|
402
|
+
.vue-flow__node-output:focus-visible,
|
|
403
|
+
.vue-flow__node-group.selected,
|
|
404
|
+
.vue-flow__node-group:focus,
|
|
405
|
+
.vue-flow__node-group:focus-visible {
|
|
406
|
+
outline: none;
|
|
407
|
+
border: var(--xy-node-border-selected, var(--xy-node-border-selected-default));
|
|
408
|
+
}
|
|
409
|
+
.vue-flow__nodesselection-rect,
|
|
410
|
+
.vue-flow__selection {
|
|
411
|
+
background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
|
|
412
|
+
border: var(--xy-selection-border, var(--xy-selection-border-default));
|
|
413
|
+
}
|
|
414
|
+
.vue-flow__resize-control {
|
|
415
|
+
position: absolute;
|
|
416
|
+
}
|
|
417
|
+
.vue-flow__resize-control.left,
|
|
418
|
+
.vue-flow__resize-control.right {
|
|
419
|
+
cursor: ew-resize;
|
|
420
|
+
}
|
|
421
|
+
.vue-flow__resize-control.top,
|
|
422
|
+
.vue-flow__resize-control.bottom {
|
|
423
|
+
cursor: ns-resize;
|
|
424
|
+
}
|
|
425
|
+
.vue-flow__resize-control.top.left,
|
|
426
|
+
.vue-flow__resize-control.bottom.right {
|
|
427
|
+
cursor: nwse-resize;
|
|
428
|
+
}
|
|
429
|
+
.vue-flow__resize-control.bottom.left,
|
|
430
|
+
.vue-flow__resize-control.top.right {
|
|
431
|
+
cursor: nesw-resize;
|
|
432
|
+
}
|
|
433
|
+
/* handle styles */
|
|
434
|
+
.vue-flow__resize-control.handle {
|
|
435
|
+
width: 5px;
|
|
436
|
+
height: 5px;
|
|
437
|
+
border: 1px solid #fff;
|
|
438
|
+
border-radius: 1px;
|
|
439
|
+
background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
|
|
440
|
+
translate: -50% -50%;
|
|
441
|
+
}
|
|
442
|
+
.vue-flow__resize-control.handle.left {
|
|
443
|
+
left: 0;
|
|
444
|
+
top: 50%;
|
|
445
|
+
}
|
|
446
|
+
.vue-flow__resize-control.handle.right {
|
|
447
|
+
left: 100%;
|
|
448
|
+
top: 50%;
|
|
449
|
+
}
|
|
450
|
+
.vue-flow__resize-control.handle.top {
|
|
451
|
+
left: 50%;
|
|
452
|
+
top: 0;
|
|
453
|
+
}
|
|
454
|
+
.vue-flow__resize-control.handle.bottom {
|
|
455
|
+
left: 50%;
|
|
456
|
+
top: 100%;
|
|
457
|
+
}
|
|
458
|
+
.vue-flow__resize-control.handle.top.left {
|
|
459
|
+
left: 0;
|
|
460
|
+
}
|
|
461
|
+
.vue-flow__resize-control.handle.bottom.left {
|
|
462
|
+
left: 0;
|
|
463
|
+
}
|
|
464
|
+
.vue-flow__resize-control.handle.top.right {
|
|
465
|
+
left: 100%;
|
|
466
|
+
}
|
|
467
|
+
.vue-flow__resize-control.handle.bottom.right {
|
|
468
|
+
left: 100%;
|
|
469
|
+
}
|
|
470
|
+
/* line styles */
|
|
471
|
+
.vue-flow__resize-control.line {
|
|
472
|
+
border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
|
|
473
|
+
border-width: 0;
|
|
474
|
+
border-style: solid;
|
|
475
|
+
}
|
|
476
|
+
.vue-flow__resize-control.line.left,
|
|
477
|
+
.vue-flow__resize-control.line.right {
|
|
478
|
+
width: 1px;
|
|
479
|
+
transform: translate(-50%, 0);
|
|
480
|
+
top: 0;
|
|
481
|
+
height: 100%;
|
|
482
|
+
}
|
|
483
|
+
.vue-flow__resize-control.line.left {
|
|
484
|
+
left: 0;
|
|
485
|
+
border-left-width: 1px;
|
|
486
|
+
}
|
|
487
|
+
.vue-flow__resize-control.line.right {
|
|
488
|
+
left: 100%;
|
|
489
|
+
border-right-width: 1px;
|
|
490
|
+
}
|
|
491
|
+
.vue-flow__resize-control.line.top,
|
|
492
|
+
.vue-flow__resize-control.line.bottom {
|
|
493
|
+
height: 1px;
|
|
494
|
+
transform: translate(0, -50%);
|
|
495
|
+
left: 0;
|
|
496
|
+
width: 100%;
|
|
497
|
+
}
|
|
498
|
+
.vue-flow__resize-control.line.top {
|
|
499
|
+
top: 0;
|
|
500
|
+
border-top-width: 1px;
|
|
501
|
+
}
|
|
502
|
+
.vue-flow__resize-control.line.bottom {
|
|
503
|
+
border-bottom-width: 1px;
|
|
504
|
+
top: 100%;
|
|
505
|
+
}
|
|
506
|
+
/* root container layout — @xyflow/system's CSS only declares vars + theme on `.vue-flow`; the framework
|
|
507
|
+
owns the layout box (xyflow/react applies the equivalent inline). */
|
|
508
|
+
.vue-flow {
|
|
509
|
+
width: 100%;
|
|
510
|
+
height: 100%;
|
|
511
|
+
overflow: hidden;
|
|
512
|
+
position: relative;
|
|
513
|
+
z-index: 0;
|
|
514
|
+
}
|