@retikz/core 0.2.0-alpha.6 → 0.2.0-alpha.7
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/es/compile/compile.d.ts.map +1 -1
- package/dist/es/compile/compile.js +10 -4
- package/dist/es/compile/node.d.ts +19 -4
- package/dist/es/compile/node.d.ts.map +1 -1
- package/dist/es/compile/node.js +159 -29
- package/dist/es/compile/paint.d.ts +16 -0
- package/dist/es/compile/paint.d.ts.map +1 -0
- package/dist/es/compile/paint.js +37 -0
- package/dist/es/compile/path/index.d.ts +3 -0
- package/dist/es/compile/path/index.d.ts.map +1 -1
- package/dist/es/compile/path/index.js +2 -1
- package/dist/es/index.d.ts +3 -3
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/index.js +2 -1
- package/dist/es/ir/index.d.ts +1 -0
- package/dist/es/ir/index.d.ts.map +1 -1
- package/dist/es/ir/node.d.ts +262 -9
- package/dist/es/ir/node.d.ts.map +1 -1
- package/dist/es/ir/node.js +9 -2
- package/dist/es/ir/paint.d.ts +132 -0
- package/dist/es/ir/paint.d.ts.map +1 -0
- package/dist/es/ir/paint.js +53 -0
- package/dist/es/ir/path/arrow.d.ts +24 -24
- package/dist/es/ir/path/path.d.ts +198 -37
- package/dist/es/ir/path/path.d.ts.map +1 -1
- package/dist/es/ir/path/path.js +2 -1
- package/dist/es/ir/scope.d.ts +1187 -165
- package/dist/es/ir/scope.d.ts.map +1 -1
- package/dist/es/ir/scope.js +2 -1
- package/dist/es/primitive/ellipse.d.ts +3 -5
- package/dist/es/primitive/ellipse.d.ts.map +1 -1
- package/dist/es/primitive/paint.d.ts +24 -0
- package/dist/es/primitive/paint.d.ts.map +1 -0
- package/dist/es/primitive/path.d.ts +3 -2
- package/dist/es/primitive/path.d.ts.map +1 -1
- package/dist/es/primitive/rect.d.ts +3 -2
- package/dist/es/primitive/rect.d.ts.map +1 -1
- package/dist/es/primitive/scene.d.ts +4 -0
- package/dist/es/primitive/scene.d.ts.map +1 -1
- package/dist/es/shapes/types.d.ts +2 -2
- package/dist/es/shapes/types.d.ts.map +1 -1
- package/dist/lib/compile/compile.cjs +9 -3
- package/dist/lib/compile/compile.d.ts.map +1 -1
- package/dist/lib/compile/node.cjs +159 -28
- package/dist/lib/compile/node.d.ts +19 -4
- package/dist/lib/compile/node.d.ts.map +1 -1
- package/dist/lib/compile/paint.cjs +37 -0
- package/dist/lib/compile/paint.d.ts +16 -0
- package/dist/lib/compile/paint.d.ts.map +1 -0
- package/dist/lib/compile/path/index.cjs +2 -1
- package/dist/lib/compile/path/index.d.ts +3 -0
- package/dist/lib/compile/path/index.d.ts.map +1 -1
- package/dist/lib/index.cjs +3 -0
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/ir/index.d.ts +1 -0
- package/dist/lib/ir/index.d.ts.map +1 -1
- package/dist/lib/ir/node.cjs +9 -2
- package/dist/lib/ir/node.d.ts +262 -9
- package/dist/lib/ir/node.d.ts.map +1 -1
- package/dist/lib/ir/paint.cjs +54 -0
- package/dist/lib/ir/paint.d.ts +132 -0
- package/dist/lib/ir/paint.d.ts.map +1 -0
- package/dist/lib/ir/path/arrow.d.ts +24 -24
- package/dist/lib/ir/path/path.cjs +2 -1
- package/dist/lib/ir/path/path.d.ts +198 -37
- package/dist/lib/ir/path/path.d.ts.map +1 -1
- package/dist/lib/ir/scope.cjs +2 -1
- package/dist/lib/ir/scope.d.ts +1187 -165
- package/dist/lib/ir/scope.d.ts.map +1 -1
- package/dist/lib/primitive/ellipse.d.ts +3 -5
- package/dist/lib/primitive/ellipse.d.ts.map +1 -1
- package/dist/lib/primitive/paint.d.ts +24 -0
- package/dist/lib/primitive/paint.d.ts.map +1 -0
- package/dist/lib/primitive/path.d.ts +3 -2
- package/dist/lib/primitive/path.d.ts.map +1 -1
- package/dist/lib/primitive/rect.d.ts +3 -2
- package/dist/lib/primitive/rect.d.ts.map +1 -1
- package/dist/lib/primitive/scene.d.ts +4 -0
- package/dist/lib/primitive/scene.d.ts.map +1 -1
- package/dist/lib/shapes/types.d.ts +2 -2
- package/dist/lib/shapes/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/lib/ir/scope.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { IRCoordinate } from './coordinate';
|
|
3
|
+
import { IRPaintSpec } from './paint';
|
|
3
4
|
import { IRNode } from './node';
|
|
4
5
|
import { IRPath } from './path';
|
|
5
6
|
import { IRTransform } from './transform';
|
|
@@ -91,8 +92,112 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
91
92
|
readonly right: "right";
|
|
92
93
|
}>>;
|
|
93
94
|
lineHeight: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
maxTextWidth: z.ZodOptional<z.ZodNumber>;
|
|
94
96
|
color: z.ZodOptional<z.ZodString>;
|
|
95
|
-
fill: z.ZodOptional<z.ZodString
|
|
97
|
+
fill: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
98
|
+
type: z.ZodLiteral<"linearGradient">;
|
|
99
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
100
|
+
offset: z.ZodNumber;
|
|
101
|
+
color: z.ZodString;
|
|
102
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
offset: number;
|
|
105
|
+
color: string;
|
|
106
|
+
opacity?: number | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
offset: number;
|
|
109
|
+
color: string;
|
|
110
|
+
opacity?: number | undefined;
|
|
111
|
+
}>, "many">;
|
|
112
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
type: "linearGradient";
|
|
115
|
+
stops: {
|
|
116
|
+
offset: number;
|
|
117
|
+
color: string;
|
|
118
|
+
opacity?: number | undefined;
|
|
119
|
+
}[];
|
|
120
|
+
angle?: number | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
type: "linearGradient";
|
|
123
|
+
stops: {
|
|
124
|
+
offset: number;
|
|
125
|
+
color: string;
|
|
126
|
+
opacity?: number | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
angle?: number | undefined;
|
|
129
|
+
}>, z.ZodObject<{
|
|
130
|
+
type: z.ZodLiteral<"radialGradient">;
|
|
131
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
132
|
+
offset: z.ZodNumber;
|
|
133
|
+
color: z.ZodString;
|
|
134
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
offset: number;
|
|
137
|
+
color: string;
|
|
138
|
+
opacity?: number | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
offset: number;
|
|
141
|
+
color: string;
|
|
142
|
+
opacity?: number | undefined;
|
|
143
|
+
}>, "many">;
|
|
144
|
+
center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
145
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
type: "radialGradient";
|
|
148
|
+
stops: {
|
|
149
|
+
offset: number;
|
|
150
|
+
color: string;
|
|
151
|
+
opacity?: number | undefined;
|
|
152
|
+
}[];
|
|
153
|
+
radius?: number | undefined;
|
|
154
|
+
center?: [number, number] | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
type: "radialGradient";
|
|
157
|
+
stops: {
|
|
158
|
+
offset: number;
|
|
159
|
+
color: string;
|
|
160
|
+
opacity?: number | undefined;
|
|
161
|
+
}[];
|
|
162
|
+
radius?: number | undefined;
|
|
163
|
+
center?: [number, number] | undefined;
|
|
164
|
+
}>, z.ZodObject<{
|
|
165
|
+
type: z.ZodLiteral<"pattern">;
|
|
166
|
+
shape: z.ZodEnum<["lines", "dots", "grid"]>;
|
|
167
|
+
color: z.ZodOptional<z.ZodString>;
|
|
168
|
+
background: z.ZodOptional<z.ZodString>;
|
|
169
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
type: "pattern";
|
|
174
|
+
shape: "lines" | "dots" | "grid";
|
|
175
|
+
size?: number | undefined;
|
|
176
|
+
color?: string | undefined;
|
|
177
|
+
background?: string | undefined;
|
|
178
|
+
lineWidth?: number | undefined;
|
|
179
|
+
rotation?: number | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
type: "pattern";
|
|
182
|
+
shape: "lines" | "dots" | "grid";
|
|
183
|
+
size?: number | undefined;
|
|
184
|
+
color?: string | undefined;
|
|
185
|
+
background?: string | undefined;
|
|
186
|
+
lineWidth?: number | undefined;
|
|
187
|
+
rotation?: number | undefined;
|
|
188
|
+
}>, z.ZodObject<{
|
|
189
|
+
type: z.ZodLiteral<"image">;
|
|
190
|
+
href: z.ZodString;
|
|
191
|
+
fit: z.ZodOptional<z.ZodEnum<["fill", "contain", "cover"]>>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
type: "image";
|
|
194
|
+
href: string;
|
|
195
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
196
|
+
}, {
|
|
197
|
+
type: "image";
|
|
198
|
+
href: string;
|
|
199
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
200
|
+
}>]>]>>;
|
|
96
201
|
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
97
202
|
stroke: z.ZodOptional<z.ZodString>;
|
|
98
203
|
drawOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -163,6 +268,19 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
163
268
|
}>>;
|
|
164
269
|
rotate: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "radial", "tangent"]>, z.ZodNumber]>>;
|
|
165
270
|
keepUpright: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
pin: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
272
|
+
stroke: z.ZodOptional<z.ZodString>;
|
|
273
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
274
|
+
dashPattern: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
stroke?: string | undefined;
|
|
277
|
+
strokeWidth?: number | undefined;
|
|
278
|
+
dashPattern?: number[] | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
stroke?: string | undefined;
|
|
281
|
+
strokeWidth?: number | undefined;
|
|
282
|
+
dashPattern?: number[] | undefined;
|
|
283
|
+
}>]>>;
|
|
166
284
|
}, "strip", z.ZodTypeAny, {
|
|
167
285
|
text: string;
|
|
168
286
|
distance?: number | undefined;
|
|
@@ -177,6 +295,11 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
177
295
|
textColor?: string | undefined;
|
|
178
296
|
rotate?: number | "none" | "radial" | "tangent" | undefined;
|
|
179
297
|
keepUpright?: boolean | undefined;
|
|
298
|
+
pin?: boolean | {
|
|
299
|
+
stroke?: string | undefined;
|
|
300
|
+
strokeWidth?: number | undefined;
|
|
301
|
+
dashPattern?: number[] | undefined;
|
|
302
|
+
} | undefined;
|
|
180
303
|
}, {
|
|
181
304
|
text: string;
|
|
182
305
|
distance?: number | undefined;
|
|
@@ -191,6 +314,11 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
191
314
|
textColor?: string | undefined;
|
|
192
315
|
rotate?: number | "none" | "radial" | "tangent" | undefined;
|
|
193
316
|
keepUpright?: boolean | undefined;
|
|
317
|
+
pin?: boolean | {
|
|
318
|
+
stroke?: string | undefined;
|
|
319
|
+
strokeWidth?: number | undefined;
|
|
320
|
+
dashPattern?: number[] | undefined;
|
|
321
|
+
} | undefined;
|
|
194
322
|
}>, z.ZodArray<z.ZodObject<{
|
|
195
323
|
text: z.ZodString;
|
|
196
324
|
position: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
|
|
@@ -224,6 +352,19 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
224
352
|
}>>;
|
|
225
353
|
rotate: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "radial", "tangent"]>, z.ZodNumber]>>;
|
|
226
354
|
keepUpright: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
+
pin: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
356
|
+
stroke: z.ZodOptional<z.ZodString>;
|
|
357
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
dashPattern: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
stroke?: string | undefined;
|
|
361
|
+
strokeWidth?: number | undefined;
|
|
362
|
+
dashPattern?: number[] | undefined;
|
|
363
|
+
}, {
|
|
364
|
+
stroke?: string | undefined;
|
|
365
|
+
strokeWidth?: number | undefined;
|
|
366
|
+
dashPattern?: number[] | undefined;
|
|
367
|
+
}>]>>;
|
|
227
368
|
}, "strip", z.ZodTypeAny, {
|
|
228
369
|
text: string;
|
|
229
370
|
distance?: number | undefined;
|
|
@@ -238,6 +379,11 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
238
379
|
textColor?: string | undefined;
|
|
239
380
|
rotate?: number | "none" | "radial" | "tangent" | undefined;
|
|
240
381
|
keepUpright?: boolean | undefined;
|
|
382
|
+
pin?: boolean | {
|
|
383
|
+
stroke?: string | undefined;
|
|
384
|
+
strokeWidth?: number | undefined;
|
|
385
|
+
dashPattern?: number[] | undefined;
|
|
386
|
+
} | undefined;
|
|
241
387
|
}, {
|
|
242
388
|
text: string;
|
|
243
389
|
distance?: number | undefined;
|
|
@@ -252,20 +398,54 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
252
398
|
textColor?: string | undefined;
|
|
253
399
|
rotate?: number | "none" | "radial" | "tangent" | undefined;
|
|
254
400
|
keepUpright?: boolean | undefined;
|
|
401
|
+
pin?: boolean | {
|
|
402
|
+
stroke?: string | undefined;
|
|
403
|
+
strokeWidth?: number | undefined;
|
|
404
|
+
dashPattern?: number[] | undefined;
|
|
405
|
+
} | undefined;
|
|
255
406
|
}>, "many">]>>;
|
|
256
407
|
zIndex: z.ZodOptional<z.ZodNumber>;
|
|
257
408
|
}, "type" | "text" | "id" | "position" | "label" | "zIndex">, "strict", z.ZodTypeAny, {
|
|
258
|
-
fill?: string |
|
|
409
|
+
fill?: string | {
|
|
410
|
+
type: "linearGradient";
|
|
411
|
+
stops: {
|
|
412
|
+
offset: number;
|
|
413
|
+
color: string;
|
|
414
|
+
opacity?: number | undefined;
|
|
415
|
+
}[];
|
|
416
|
+
angle?: number | undefined;
|
|
417
|
+
} | {
|
|
418
|
+
type: "radialGradient";
|
|
419
|
+
stops: {
|
|
420
|
+
offset: number;
|
|
421
|
+
color: string;
|
|
422
|
+
opacity?: number | undefined;
|
|
423
|
+
}[];
|
|
424
|
+
radius?: number | undefined;
|
|
425
|
+
center?: [number, number] | undefined;
|
|
426
|
+
} | {
|
|
427
|
+
type: "pattern";
|
|
428
|
+
shape: "lines" | "dots" | "grid";
|
|
429
|
+
size?: number | undefined;
|
|
430
|
+
color?: string | undefined;
|
|
431
|
+
background?: string | undefined;
|
|
432
|
+
lineWidth?: number | undefined;
|
|
433
|
+
rotation?: number | undefined;
|
|
434
|
+
} | {
|
|
435
|
+
type: "image";
|
|
436
|
+
href: string;
|
|
437
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
438
|
+
} | undefined;
|
|
439
|
+
color?: string | undefined;
|
|
259
440
|
opacity?: number | undefined;
|
|
441
|
+
shape?: string | undefined;
|
|
260
442
|
font?: {
|
|
261
443
|
family?: string | undefined;
|
|
262
444
|
size?: number | undefined;
|
|
263
445
|
weight?: number | "normal" | "bold" | undefined;
|
|
264
446
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
265
447
|
} | undefined;
|
|
266
|
-
shape?: string | undefined;
|
|
267
448
|
scale?: number | undefined;
|
|
268
|
-
color?: string | undefined;
|
|
269
449
|
textColor?: string | undefined;
|
|
270
450
|
roundedCorners?: number | undefined;
|
|
271
451
|
stroke?: string | undefined;
|
|
@@ -275,6 +455,7 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
275
455
|
rotate?: number | undefined;
|
|
276
456
|
align?: "left" | "right" | "center" | undefined;
|
|
277
457
|
lineHeight?: number | undefined;
|
|
458
|
+
maxTextWidth?: number | undefined;
|
|
278
459
|
dashed?: boolean | undefined;
|
|
279
460
|
dotted?: boolean | undefined;
|
|
280
461
|
dashArray?: number[] | undefined;
|
|
@@ -289,17 +470,46 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
289
470
|
padding?: number | undefined;
|
|
290
471
|
margin?: number | undefined;
|
|
291
472
|
}, {
|
|
292
|
-
fill?: string |
|
|
473
|
+
fill?: string | {
|
|
474
|
+
type: "linearGradient";
|
|
475
|
+
stops: {
|
|
476
|
+
offset: number;
|
|
477
|
+
color: string;
|
|
478
|
+
opacity?: number | undefined;
|
|
479
|
+
}[];
|
|
480
|
+
angle?: number | undefined;
|
|
481
|
+
} | {
|
|
482
|
+
type: "radialGradient";
|
|
483
|
+
stops: {
|
|
484
|
+
offset: number;
|
|
485
|
+
color: string;
|
|
486
|
+
opacity?: number | undefined;
|
|
487
|
+
}[];
|
|
488
|
+
radius?: number | undefined;
|
|
489
|
+
center?: [number, number] | undefined;
|
|
490
|
+
} | {
|
|
491
|
+
type: "pattern";
|
|
492
|
+
shape: "lines" | "dots" | "grid";
|
|
493
|
+
size?: number | undefined;
|
|
494
|
+
color?: string | undefined;
|
|
495
|
+
background?: string | undefined;
|
|
496
|
+
lineWidth?: number | undefined;
|
|
497
|
+
rotation?: number | undefined;
|
|
498
|
+
} | {
|
|
499
|
+
type: "image";
|
|
500
|
+
href: string;
|
|
501
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
502
|
+
} | undefined;
|
|
503
|
+
color?: string | undefined;
|
|
293
504
|
opacity?: number | undefined;
|
|
505
|
+
shape?: string | undefined;
|
|
294
506
|
font?: {
|
|
295
507
|
family?: string | undefined;
|
|
296
508
|
size?: number | undefined;
|
|
297
509
|
weight?: number | "normal" | "bold" | undefined;
|
|
298
510
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
299
511
|
} | undefined;
|
|
300
|
-
shape?: string | undefined;
|
|
301
512
|
scale?: number | undefined;
|
|
302
|
-
color?: string | undefined;
|
|
303
513
|
textColor?: string | undefined;
|
|
304
514
|
roundedCorners?: number | undefined;
|
|
305
515
|
stroke?: string | undefined;
|
|
@@ -309,6 +519,7 @@ export declare const NodeDefaultSchema: z.ZodObject<Omit<{
|
|
|
309
519
|
rotate?: number | undefined;
|
|
310
520
|
align?: "left" | "right" | "center" | undefined;
|
|
311
521
|
lineHeight?: number | undefined;
|
|
522
|
+
maxTextWidth?: number | undefined;
|
|
312
523
|
dashed?: boolean | undefined;
|
|
313
524
|
dotted?: boolean | undefined;
|
|
314
525
|
dashArray?: number[] | undefined;
|
|
@@ -372,21 +583,21 @@ export declare const PathDefaultSchema: z.ZodObject<Omit<{
|
|
|
372
583
|
}, "strip", z.ZodTypeAny, {
|
|
373
584
|
length?: number | undefined;
|
|
374
585
|
fill?: string | undefined;
|
|
586
|
+
color?: string | undefined;
|
|
375
587
|
opacity?: number | undefined;
|
|
376
588
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
589
|
+
lineWidth?: number | undefined;
|
|
377
590
|
scale?: number | undefined;
|
|
378
591
|
width?: number | undefined;
|
|
379
|
-
color?: string | undefined;
|
|
380
|
-
lineWidth?: number | undefined;
|
|
381
592
|
}, {
|
|
382
593
|
length?: number | undefined;
|
|
383
594
|
fill?: string | undefined;
|
|
595
|
+
color?: string | undefined;
|
|
384
596
|
opacity?: number | undefined;
|
|
385
597
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
598
|
+
lineWidth?: number | undefined;
|
|
386
599
|
scale?: number | undefined;
|
|
387
600
|
width?: number | undefined;
|
|
388
|
-
color?: string | undefined;
|
|
389
|
-
lineWidth?: number | undefined;
|
|
390
601
|
}>>;
|
|
391
602
|
end: z.ZodOptional<z.ZodObject<{
|
|
392
603
|
shape: z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -408,82 +619,185 @@ export declare const PathDefaultSchema: z.ZodObject<Omit<{
|
|
|
408
619
|
}, "strip", z.ZodTypeAny, {
|
|
409
620
|
length?: number | undefined;
|
|
410
621
|
fill?: string | undefined;
|
|
622
|
+
color?: string | undefined;
|
|
411
623
|
opacity?: number | undefined;
|
|
412
624
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
625
|
+
lineWidth?: number | undefined;
|
|
413
626
|
scale?: number | undefined;
|
|
414
627
|
width?: number | undefined;
|
|
415
|
-
color?: string | undefined;
|
|
416
|
-
lineWidth?: number | undefined;
|
|
417
628
|
}, {
|
|
418
629
|
length?: number | undefined;
|
|
419
630
|
fill?: string | undefined;
|
|
631
|
+
color?: string | undefined;
|
|
420
632
|
opacity?: number | undefined;
|
|
421
633
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
634
|
+
lineWidth?: number | undefined;
|
|
422
635
|
scale?: number | undefined;
|
|
423
636
|
width?: number | undefined;
|
|
424
|
-
color?: string | undefined;
|
|
425
|
-
lineWidth?: number | undefined;
|
|
426
637
|
}>>;
|
|
427
638
|
}, "strip", z.ZodTypeAny, {
|
|
428
639
|
length?: number | undefined;
|
|
429
640
|
fill?: string | undefined;
|
|
641
|
+
color?: string | undefined;
|
|
430
642
|
opacity?: number | undefined;
|
|
431
643
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
644
|
+
lineWidth?: number | undefined;
|
|
432
645
|
scale?: number | undefined;
|
|
433
646
|
width?: number | undefined;
|
|
434
|
-
color?: string | undefined;
|
|
435
|
-
lineWidth?: number | undefined;
|
|
436
647
|
start?: {
|
|
437
648
|
length?: number | undefined;
|
|
438
649
|
fill?: string | undefined;
|
|
650
|
+
color?: string | undefined;
|
|
439
651
|
opacity?: number | undefined;
|
|
440
652
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
653
|
+
lineWidth?: number | undefined;
|
|
441
654
|
scale?: number | undefined;
|
|
442
655
|
width?: number | undefined;
|
|
443
|
-
color?: string | undefined;
|
|
444
|
-
lineWidth?: number | undefined;
|
|
445
656
|
} | undefined;
|
|
446
657
|
end?: {
|
|
447
658
|
length?: number | undefined;
|
|
448
659
|
fill?: string | undefined;
|
|
660
|
+
color?: string | undefined;
|
|
449
661
|
opacity?: number | undefined;
|
|
450
662
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
663
|
+
lineWidth?: number | undefined;
|
|
451
664
|
scale?: number | undefined;
|
|
452
665
|
width?: number | undefined;
|
|
453
|
-
color?: string | undefined;
|
|
454
|
-
lineWidth?: number | undefined;
|
|
455
666
|
} | undefined;
|
|
456
667
|
}, {
|
|
457
668
|
length?: number | undefined;
|
|
458
669
|
fill?: string | undefined;
|
|
670
|
+
color?: string | undefined;
|
|
459
671
|
opacity?: number | undefined;
|
|
460
672
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
673
|
+
lineWidth?: number | undefined;
|
|
461
674
|
scale?: number | undefined;
|
|
462
675
|
width?: number | undefined;
|
|
463
|
-
color?: string | undefined;
|
|
464
|
-
lineWidth?: number | undefined;
|
|
465
676
|
start?: {
|
|
466
677
|
length?: number | undefined;
|
|
467
678
|
fill?: string | undefined;
|
|
679
|
+
color?: string | undefined;
|
|
468
680
|
opacity?: number | undefined;
|
|
469
681
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
682
|
+
lineWidth?: number | undefined;
|
|
470
683
|
scale?: number | undefined;
|
|
471
684
|
width?: number | undefined;
|
|
472
|
-
color?: string | undefined;
|
|
473
|
-
lineWidth?: number | undefined;
|
|
474
685
|
} | undefined;
|
|
475
686
|
end?: {
|
|
476
687
|
length?: number | undefined;
|
|
477
688
|
fill?: string | undefined;
|
|
689
|
+
color?: string | undefined;
|
|
478
690
|
opacity?: number | undefined;
|
|
479
691
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
692
|
+
lineWidth?: number | undefined;
|
|
480
693
|
scale?: number | undefined;
|
|
481
694
|
width?: number | undefined;
|
|
482
|
-
color?: string | undefined;
|
|
483
|
-
lineWidth?: number | undefined;
|
|
484
695
|
} | undefined;
|
|
485
696
|
}>>;
|
|
486
|
-
fill: z.ZodOptional<z.ZodString
|
|
697
|
+
fill: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
698
|
+
type: z.ZodLiteral<"linearGradient">;
|
|
699
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
700
|
+
offset: z.ZodNumber;
|
|
701
|
+
color: z.ZodString;
|
|
702
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
703
|
+
}, "strip", z.ZodTypeAny, {
|
|
704
|
+
offset: number;
|
|
705
|
+
color: string;
|
|
706
|
+
opacity?: number | undefined;
|
|
707
|
+
}, {
|
|
708
|
+
offset: number;
|
|
709
|
+
color: string;
|
|
710
|
+
opacity?: number | undefined;
|
|
711
|
+
}>, "many">;
|
|
712
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
713
|
+
}, "strip", z.ZodTypeAny, {
|
|
714
|
+
type: "linearGradient";
|
|
715
|
+
stops: {
|
|
716
|
+
offset: number;
|
|
717
|
+
color: string;
|
|
718
|
+
opacity?: number | undefined;
|
|
719
|
+
}[];
|
|
720
|
+
angle?: number | undefined;
|
|
721
|
+
}, {
|
|
722
|
+
type: "linearGradient";
|
|
723
|
+
stops: {
|
|
724
|
+
offset: number;
|
|
725
|
+
color: string;
|
|
726
|
+
opacity?: number | undefined;
|
|
727
|
+
}[];
|
|
728
|
+
angle?: number | undefined;
|
|
729
|
+
}>, z.ZodObject<{
|
|
730
|
+
type: z.ZodLiteral<"radialGradient">;
|
|
731
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
732
|
+
offset: z.ZodNumber;
|
|
733
|
+
color: z.ZodString;
|
|
734
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
735
|
+
}, "strip", z.ZodTypeAny, {
|
|
736
|
+
offset: number;
|
|
737
|
+
color: string;
|
|
738
|
+
opacity?: number | undefined;
|
|
739
|
+
}, {
|
|
740
|
+
offset: number;
|
|
741
|
+
color: string;
|
|
742
|
+
opacity?: number | undefined;
|
|
743
|
+
}>, "many">;
|
|
744
|
+
center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
745
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
}, "strip", z.ZodTypeAny, {
|
|
747
|
+
type: "radialGradient";
|
|
748
|
+
stops: {
|
|
749
|
+
offset: number;
|
|
750
|
+
color: string;
|
|
751
|
+
opacity?: number | undefined;
|
|
752
|
+
}[];
|
|
753
|
+
radius?: number | undefined;
|
|
754
|
+
center?: [number, number] | undefined;
|
|
755
|
+
}, {
|
|
756
|
+
type: "radialGradient";
|
|
757
|
+
stops: {
|
|
758
|
+
offset: number;
|
|
759
|
+
color: string;
|
|
760
|
+
opacity?: number | undefined;
|
|
761
|
+
}[];
|
|
762
|
+
radius?: number | undefined;
|
|
763
|
+
center?: [number, number] | undefined;
|
|
764
|
+
}>, z.ZodObject<{
|
|
765
|
+
type: z.ZodLiteral<"pattern">;
|
|
766
|
+
shape: z.ZodEnum<["lines", "dots", "grid"]>;
|
|
767
|
+
color: z.ZodOptional<z.ZodString>;
|
|
768
|
+
background: z.ZodOptional<z.ZodString>;
|
|
769
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
770
|
+
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
771
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
772
|
+
}, "strip", z.ZodTypeAny, {
|
|
773
|
+
type: "pattern";
|
|
774
|
+
shape: "lines" | "dots" | "grid";
|
|
775
|
+
size?: number | undefined;
|
|
776
|
+
color?: string | undefined;
|
|
777
|
+
background?: string | undefined;
|
|
778
|
+
lineWidth?: number | undefined;
|
|
779
|
+
rotation?: number | undefined;
|
|
780
|
+
}, {
|
|
781
|
+
type: "pattern";
|
|
782
|
+
shape: "lines" | "dots" | "grid";
|
|
783
|
+
size?: number | undefined;
|
|
784
|
+
color?: string | undefined;
|
|
785
|
+
background?: string | undefined;
|
|
786
|
+
lineWidth?: number | undefined;
|
|
787
|
+
rotation?: number | undefined;
|
|
788
|
+
}>, z.ZodObject<{
|
|
789
|
+
type: z.ZodLiteral<"image">;
|
|
790
|
+
href: z.ZodString;
|
|
791
|
+
fit: z.ZodOptional<z.ZodEnum<["fill", "contain", "cover"]>>;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
type: "image";
|
|
794
|
+
href: string;
|
|
795
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
796
|
+
}, {
|
|
797
|
+
type: "image";
|
|
798
|
+
href: string;
|
|
799
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
800
|
+
}>]>]>>;
|
|
487
801
|
fillRule: z.ZodOptional<z.ZodEnum<["nonzero", "evenodd"]>>;
|
|
488
802
|
lineCap: z.ZodOptional<z.ZodEnum<["butt", "round", "square"]>>;
|
|
489
803
|
lineJoin: z.ZodOptional<z.ZodEnum<["miter", "round", "bevel"]>>;
|
|
@@ -1951,9 +2265,38 @@ export declare const PathDefaultSchema: z.ZodObject<Omit<{
|
|
|
1951
2265
|
roundedCorners?: number | undefined;
|
|
1952
2266
|
}>]>, "many">;
|
|
1953
2267
|
}, "type" | "arrow" | "arrowDetail" | "zIndex" | "children">, "strict", z.ZodTypeAny, {
|
|
1954
|
-
fill?: string |
|
|
1955
|
-
|
|
2268
|
+
fill?: string | {
|
|
2269
|
+
type: "linearGradient";
|
|
2270
|
+
stops: {
|
|
2271
|
+
offset: number;
|
|
2272
|
+
color: string;
|
|
2273
|
+
opacity?: number | undefined;
|
|
2274
|
+
}[];
|
|
2275
|
+
angle?: number | undefined;
|
|
2276
|
+
} | {
|
|
2277
|
+
type: "radialGradient";
|
|
2278
|
+
stops: {
|
|
2279
|
+
offset: number;
|
|
2280
|
+
color: string;
|
|
2281
|
+
opacity?: number | undefined;
|
|
2282
|
+
}[];
|
|
2283
|
+
radius?: number | undefined;
|
|
2284
|
+
center?: [number, number] | undefined;
|
|
2285
|
+
} | {
|
|
2286
|
+
type: "pattern";
|
|
2287
|
+
shape: "lines" | "dots" | "grid";
|
|
2288
|
+
size?: number | undefined;
|
|
2289
|
+
color?: string | undefined;
|
|
2290
|
+
background?: string | undefined;
|
|
2291
|
+
lineWidth?: number | undefined;
|
|
2292
|
+
rotation?: number | undefined;
|
|
2293
|
+
} | {
|
|
2294
|
+
type: "image";
|
|
2295
|
+
href: string;
|
|
2296
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
2297
|
+
} | undefined;
|
|
1956
2298
|
color?: string | undefined;
|
|
2299
|
+
opacity?: number | undefined;
|
|
1957
2300
|
stroke?: string | undefined;
|
|
1958
2301
|
strokeWidth?: number | undefined;
|
|
1959
2302
|
dashPattern?: number[] | undefined;
|
|
@@ -1964,9 +2307,38 @@ export declare const PathDefaultSchema: z.ZodObject<Omit<{
|
|
|
1964
2307
|
fillOpacity?: number | undefined;
|
|
1965
2308
|
drawOpacity?: number | undefined;
|
|
1966
2309
|
}, {
|
|
1967
|
-
fill?: string |
|
|
1968
|
-
|
|
2310
|
+
fill?: string | {
|
|
2311
|
+
type: "linearGradient";
|
|
2312
|
+
stops: {
|
|
2313
|
+
offset: number;
|
|
2314
|
+
color: string;
|
|
2315
|
+
opacity?: number | undefined;
|
|
2316
|
+
}[];
|
|
2317
|
+
angle?: number | undefined;
|
|
2318
|
+
} | {
|
|
2319
|
+
type: "radialGradient";
|
|
2320
|
+
stops: {
|
|
2321
|
+
offset: number;
|
|
2322
|
+
color: string;
|
|
2323
|
+
opacity?: number | undefined;
|
|
2324
|
+
}[];
|
|
2325
|
+
radius?: number | undefined;
|
|
2326
|
+
center?: [number, number] | undefined;
|
|
2327
|
+
} | {
|
|
2328
|
+
type: "pattern";
|
|
2329
|
+
shape: "lines" | "dots" | "grid";
|
|
2330
|
+
size?: number | undefined;
|
|
2331
|
+
color?: string | undefined;
|
|
2332
|
+
background?: string | undefined;
|
|
2333
|
+
lineWidth?: number | undefined;
|
|
2334
|
+
rotation?: number | undefined;
|
|
2335
|
+
} | {
|
|
2336
|
+
type: "image";
|
|
2337
|
+
href: string;
|
|
2338
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
2339
|
+
} | undefined;
|
|
1969
2340
|
color?: string | undefined;
|
|
2341
|
+
opacity?: number | undefined;
|
|
1970
2342
|
stroke?: string | undefined;
|
|
1971
2343
|
strokeWidth?: number | undefined;
|
|
1972
2344
|
dashPattern?: number[] | undefined;
|
|
@@ -2002,6 +2374,7 @@ export declare const LabelDefaultSchema: z.ZodObject<{
|
|
|
2002
2374
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2003
2375
|
}>>;
|
|
2004
2376
|
}, "strict", z.ZodTypeAny, {
|
|
2377
|
+
color?: string | undefined;
|
|
2005
2378
|
opacity?: number | undefined;
|
|
2006
2379
|
font?: {
|
|
2007
2380
|
family?: string | undefined;
|
|
@@ -2009,9 +2382,9 @@ export declare const LabelDefaultSchema: z.ZodObject<{
|
|
|
2009
2382
|
weight?: number | "normal" | "bold" | undefined;
|
|
2010
2383
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2011
2384
|
} | undefined;
|
|
2012
|
-
color?: string | undefined;
|
|
2013
2385
|
textColor?: string | undefined;
|
|
2014
2386
|
}, {
|
|
2387
|
+
color?: string | undefined;
|
|
2015
2388
|
opacity?: number | undefined;
|
|
2016
2389
|
font?: {
|
|
2017
2390
|
family?: string | undefined;
|
|
@@ -2019,7 +2392,6 @@ export declare const LabelDefaultSchema: z.ZodObject<{
|
|
|
2019
2392
|
weight?: number | "normal" | "bold" | undefined;
|
|
2020
2393
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2021
2394
|
} | undefined;
|
|
2022
|
-
color?: string | undefined;
|
|
2023
2395
|
textColor?: string | undefined;
|
|
2024
2396
|
}>;
|
|
2025
2397
|
/**
|
|
@@ -2064,21 +2436,21 @@ export declare const ArrowDefaultSchema: z.ZodObject<{
|
|
|
2064
2436
|
}, "strip", z.ZodTypeAny, {
|
|
2065
2437
|
length?: number | undefined;
|
|
2066
2438
|
fill?: string | undefined;
|
|
2439
|
+
color?: string | undefined;
|
|
2067
2440
|
opacity?: number | undefined;
|
|
2068
2441
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2442
|
+
lineWidth?: number | undefined;
|
|
2069
2443
|
scale?: number | undefined;
|
|
2070
2444
|
width?: number | undefined;
|
|
2071
|
-
color?: string | undefined;
|
|
2072
|
-
lineWidth?: number | undefined;
|
|
2073
2445
|
}, {
|
|
2074
2446
|
length?: number | undefined;
|
|
2075
2447
|
fill?: string | undefined;
|
|
2448
|
+
color?: string | undefined;
|
|
2076
2449
|
opacity?: number | undefined;
|
|
2077
2450
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2451
|
+
lineWidth?: number | undefined;
|
|
2078
2452
|
scale?: number | undefined;
|
|
2079
2453
|
width?: number | undefined;
|
|
2080
|
-
color?: string | undefined;
|
|
2081
|
-
lineWidth?: number | undefined;
|
|
2082
2454
|
}>>;
|
|
2083
2455
|
end: z.ZodOptional<z.ZodObject<{
|
|
2084
2456
|
shape: z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -2100,79 +2472,79 @@ export declare const ArrowDefaultSchema: z.ZodObject<{
|
|
|
2100
2472
|
}, "strip", z.ZodTypeAny, {
|
|
2101
2473
|
length?: number | undefined;
|
|
2102
2474
|
fill?: string | undefined;
|
|
2475
|
+
color?: string | undefined;
|
|
2103
2476
|
opacity?: number | undefined;
|
|
2104
2477
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2478
|
+
lineWidth?: number | undefined;
|
|
2105
2479
|
scale?: number | undefined;
|
|
2106
2480
|
width?: number | undefined;
|
|
2107
|
-
color?: string | undefined;
|
|
2108
|
-
lineWidth?: number | undefined;
|
|
2109
2481
|
}, {
|
|
2110
2482
|
length?: number | undefined;
|
|
2111
2483
|
fill?: string | undefined;
|
|
2484
|
+
color?: string | undefined;
|
|
2112
2485
|
opacity?: number | undefined;
|
|
2113
2486
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2487
|
+
lineWidth?: number | undefined;
|
|
2114
2488
|
scale?: number | undefined;
|
|
2115
2489
|
width?: number | undefined;
|
|
2116
|
-
color?: string | undefined;
|
|
2117
|
-
lineWidth?: number | undefined;
|
|
2118
2490
|
}>>;
|
|
2119
2491
|
}, "strip", z.ZodTypeAny, {
|
|
2120
2492
|
length?: number | undefined;
|
|
2121
2493
|
fill?: string | undefined;
|
|
2494
|
+
color?: string | undefined;
|
|
2122
2495
|
opacity?: number | undefined;
|
|
2123
2496
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2497
|
+
lineWidth?: number | undefined;
|
|
2124
2498
|
scale?: number | undefined;
|
|
2125
2499
|
width?: number | undefined;
|
|
2126
|
-
color?: string | undefined;
|
|
2127
|
-
lineWidth?: number | undefined;
|
|
2128
2500
|
start?: {
|
|
2129
2501
|
length?: number | undefined;
|
|
2130
2502
|
fill?: string | undefined;
|
|
2503
|
+
color?: string | undefined;
|
|
2131
2504
|
opacity?: number | undefined;
|
|
2132
2505
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2506
|
+
lineWidth?: number | undefined;
|
|
2133
2507
|
scale?: number | undefined;
|
|
2134
2508
|
width?: number | undefined;
|
|
2135
|
-
color?: string | undefined;
|
|
2136
|
-
lineWidth?: number | undefined;
|
|
2137
2509
|
} | undefined;
|
|
2138
2510
|
end?: {
|
|
2139
2511
|
length?: number | undefined;
|
|
2140
2512
|
fill?: string | undefined;
|
|
2513
|
+
color?: string | undefined;
|
|
2141
2514
|
opacity?: number | undefined;
|
|
2142
2515
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2516
|
+
lineWidth?: number | undefined;
|
|
2143
2517
|
scale?: number | undefined;
|
|
2144
2518
|
width?: number | undefined;
|
|
2145
|
-
color?: string | undefined;
|
|
2146
|
-
lineWidth?: number | undefined;
|
|
2147
2519
|
} | undefined;
|
|
2148
2520
|
}, {
|
|
2149
2521
|
length?: number | undefined;
|
|
2150
2522
|
fill?: string | undefined;
|
|
2523
|
+
color?: string | undefined;
|
|
2151
2524
|
opacity?: number | undefined;
|
|
2152
2525
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2526
|
+
lineWidth?: number | undefined;
|
|
2153
2527
|
scale?: number | undefined;
|
|
2154
2528
|
width?: number | undefined;
|
|
2155
|
-
color?: string | undefined;
|
|
2156
|
-
lineWidth?: number | undefined;
|
|
2157
2529
|
start?: {
|
|
2158
2530
|
length?: number | undefined;
|
|
2159
2531
|
fill?: string | undefined;
|
|
2532
|
+
color?: string | undefined;
|
|
2160
2533
|
opacity?: number | undefined;
|
|
2161
2534
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2535
|
+
lineWidth?: number | undefined;
|
|
2162
2536
|
scale?: number | undefined;
|
|
2163
2537
|
width?: number | undefined;
|
|
2164
|
-
color?: string | undefined;
|
|
2165
|
-
lineWidth?: number | undefined;
|
|
2166
2538
|
} | undefined;
|
|
2167
2539
|
end?: {
|
|
2168
2540
|
length?: number | undefined;
|
|
2169
2541
|
fill?: string | undefined;
|
|
2542
|
+
color?: string | undefined;
|
|
2170
2543
|
opacity?: number | undefined;
|
|
2171
2544
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
2545
|
+
lineWidth?: number | undefined;
|
|
2172
2546
|
scale?: number | undefined;
|
|
2173
2547
|
width?: number | undefined;
|
|
2174
|
-
color?: string | undefined;
|
|
2175
|
-
lineWidth?: number | undefined;
|
|
2176
2548
|
} | undefined;
|
|
2177
2549
|
}>;
|
|
2178
2550
|
/** every node 默认样式(排除 type / id / position / text / label 的全部 node 样式字段) */
|
|
@@ -2197,7 +2569,7 @@ export type IRScope = {
|
|
|
2197
2569
|
transforms?: Array<IRTransform>;
|
|
2198
2570
|
color?: string;
|
|
2199
2571
|
stroke?: string;
|
|
2200
|
-
fill?: string;
|
|
2572
|
+
fill?: string | IRPaintSpec;
|
|
2201
2573
|
strokeWidth?: number;
|
|
2202
2574
|
opacity?: number;
|
|
2203
2575
|
fillOpacity?: number;
|
|
@@ -2319,36 +2691,139 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2319
2691
|
}>]>, "many">>;
|
|
2320
2692
|
color: z.ZodOptional<z.ZodString>;
|
|
2321
2693
|
stroke: z.ZodOptional<z.ZodString>;
|
|
2322
|
-
fill: z.ZodOptional<z.ZodString
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
type: z.ZodLiteral<"node">;
|
|
2329
|
-
id: z.ZodOptional<z.ZodString>;
|
|
2330
|
-
shape: z.ZodOptional<z.ZodString>;
|
|
2331
|
-
position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition>, z.ZodObject<{
|
|
2332
|
-
direction: z.ZodNativeEnum<{
|
|
2333
|
-
readonly above: "above";
|
|
2334
|
-
readonly below: "below";
|
|
2335
|
-
readonly left: "left";
|
|
2336
|
-
readonly right: "right";
|
|
2337
|
-
readonly 'above-left': "above-left";
|
|
2338
|
-
readonly 'above-right': "above-right";
|
|
2339
|
-
readonly 'below-left': "below-left";
|
|
2340
|
-
readonly 'below-right': "below-right";
|
|
2341
|
-
}>;
|
|
2342
|
-
of: z.ZodString;
|
|
2343
|
-
distance: z.ZodOptional<z.ZodNumber>;
|
|
2694
|
+
fill: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2695
|
+
type: z.ZodLiteral<"linearGradient">;
|
|
2696
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
2697
|
+
offset: z.ZodNumber;
|
|
2698
|
+
color: z.ZodString;
|
|
2699
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
2344
2700
|
}, "strip", z.ZodTypeAny, {
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2701
|
+
offset: number;
|
|
2702
|
+
color: string;
|
|
2703
|
+
opacity?: number | undefined;
|
|
2348
2704
|
}, {
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2705
|
+
offset: number;
|
|
2706
|
+
color: string;
|
|
2707
|
+
opacity?: number | undefined;
|
|
2708
|
+
}>, "many">;
|
|
2709
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
2710
|
+
}, "strip", z.ZodTypeAny, {
|
|
2711
|
+
type: "linearGradient";
|
|
2712
|
+
stops: {
|
|
2713
|
+
offset: number;
|
|
2714
|
+
color: string;
|
|
2715
|
+
opacity?: number | undefined;
|
|
2716
|
+
}[];
|
|
2717
|
+
angle?: number | undefined;
|
|
2718
|
+
}, {
|
|
2719
|
+
type: "linearGradient";
|
|
2720
|
+
stops: {
|
|
2721
|
+
offset: number;
|
|
2722
|
+
color: string;
|
|
2723
|
+
opacity?: number | undefined;
|
|
2724
|
+
}[];
|
|
2725
|
+
angle?: number | undefined;
|
|
2726
|
+
}>, z.ZodObject<{
|
|
2727
|
+
type: z.ZodLiteral<"radialGradient">;
|
|
2728
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
2729
|
+
offset: z.ZodNumber;
|
|
2730
|
+
color: z.ZodString;
|
|
2731
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
2732
|
+
}, "strip", z.ZodTypeAny, {
|
|
2733
|
+
offset: number;
|
|
2734
|
+
color: string;
|
|
2735
|
+
opacity?: number | undefined;
|
|
2736
|
+
}, {
|
|
2737
|
+
offset: number;
|
|
2738
|
+
color: string;
|
|
2739
|
+
opacity?: number | undefined;
|
|
2740
|
+
}>, "many">;
|
|
2741
|
+
center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
2742
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
2743
|
+
}, "strip", z.ZodTypeAny, {
|
|
2744
|
+
type: "radialGradient";
|
|
2745
|
+
stops: {
|
|
2746
|
+
offset: number;
|
|
2747
|
+
color: string;
|
|
2748
|
+
opacity?: number | undefined;
|
|
2749
|
+
}[];
|
|
2750
|
+
radius?: number | undefined;
|
|
2751
|
+
center?: [number, number] | undefined;
|
|
2752
|
+
}, {
|
|
2753
|
+
type: "radialGradient";
|
|
2754
|
+
stops: {
|
|
2755
|
+
offset: number;
|
|
2756
|
+
color: string;
|
|
2757
|
+
opacity?: number | undefined;
|
|
2758
|
+
}[];
|
|
2759
|
+
radius?: number | undefined;
|
|
2760
|
+
center?: [number, number] | undefined;
|
|
2761
|
+
}>, z.ZodObject<{
|
|
2762
|
+
type: z.ZodLiteral<"pattern">;
|
|
2763
|
+
shape: z.ZodEnum<["lines", "dots", "grid"]>;
|
|
2764
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2765
|
+
background: z.ZodOptional<z.ZodString>;
|
|
2766
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
2767
|
+
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
2768
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
2769
|
+
}, "strip", z.ZodTypeAny, {
|
|
2770
|
+
type: "pattern";
|
|
2771
|
+
shape: "lines" | "dots" | "grid";
|
|
2772
|
+
size?: number | undefined;
|
|
2773
|
+
color?: string | undefined;
|
|
2774
|
+
background?: string | undefined;
|
|
2775
|
+
lineWidth?: number | undefined;
|
|
2776
|
+
rotation?: number | undefined;
|
|
2777
|
+
}, {
|
|
2778
|
+
type: "pattern";
|
|
2779
|
+
shape: "lines" | "dots" | "grid";
|
|
2780
|
+
size?: number | undefined;
|
|
2781
|
+
color?: string | undefined;
|
|
2782
|
+
background?: string | undefined;
|
|
2783
|
+
lineWidth?: number | undefined;
|
|
2784
|
+
rotation?: number | undefined;
|
|
2785
|
+
}>, z.ZodObject<{
|
|
2786
|
+
type: z.ZodLiteral<"image">;
|
|
2787
|
+
href: z.ZodString;
|
|
2788
|
+
fit: z.ZodOptional<z.ZodEnum<["fill", "contain", "cover"]>>;
|
|
2789
|
+
}, "strip", z.ZodTypeAny, {
|
|
2790
|
+
type: "image";
|
|
2791
|
+
href: string;
|
|
2792
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
2793
|
+
}, {
|
|
2794
|
+
type: "image";
|
|
2795
|
+
href: string;
|
|
2796
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
2797
|
+
}>]>]>>;
|
|
2798
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
2799
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
2800
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
2801
|
+
drawOpacity: z.ZodOptional<z.ZodNumber>;
|
|
2802
|
+
nodeDefault: z.ZodOptional<z.ZodObject<Omit<{
|
|
2803
|
+
type: z.ZodLiteral<"node">;
|
|
2804
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2805
|
+
shape: z.ZodOptional<z.ZodString>;
|
|
2806
|
+
position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition>, z.ZodObject<{
|
|
2807
|
+
direction: z.ZodNativeEnum<{
|
|
2808
|
+
readonly above: "above";
|
|
2809
|
+
readonly below: "below";
|
|
2810
|
+
readonly left: "left";
|
|
2811
|
+
readonly right: "right";
|
|
2812
|
+
readonly 'above-left': "above-left";
|
|
2813
|
+
readonly 'above-right': "above-right";
|
|
2814
|
+
readonly 'below-left': "below-left";
|
|
2815
|
+
readonly 'below-right': "below-right";
|
|
2816
|
+
}>;
|
|
2817
|
+
of: z.ZodString;
|
|
2818
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
2819
|
+
}, "strip", z.ZodTypeAny, {
|
|
2820
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2821
|
+
of: string;
|
|
2822
|
+
distance?: number | undefined;
|
|
2823
|
+
}, {
|
|
2824
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2825
|
+
of: string;
|
|
2826
|
+
distance?: number | undefined;
|
|
2352
2827
|
}>, z.ZodObject<{
|
|
2353
2828
|
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition>]>;
|
|
2354
2829
|
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
@@ -2407,8 +2882,112 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2407
2882
|
readonly right: "right";
|
|
2408
2883
|
}>>;
|
|
2409
2884
|
lineHeight: z.ZodOptional<z.ZodNumber>;
|
|
2885
|
+
maxTextWidth: z.ZodOptional<z.ZodNumber>;
|
|
2410
2886
|
color: z.ZodOptional<z.ZodString>;
|
|
2411
|
-
fill: z.ZodOptional<z.ZodString
|
|
2887
|
+
fill: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2888
|
+
type: z.ZodLiteral<"linearGradient">;
|
|
2889
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
2890
|
+
offset: z.ZodNumber;
|
|
2891
|
+
color: z.ZodString;
|
|
2892
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
2893
|
+
}, "strip", z.ZodTypeAny, {
|
|
2894
|
+
offset: number;
|
|
2895
|
+
color: string;
|
|
2896
|
+
opacity?: number | undefined;
|
|
2897
|
+
}, {
|
|
2898
|
+
offset: number;
|
|
2899
|
+
color: string;
|
|
2900
|
+
opacity?: number | undefined;
|
|
2901
|
+
}>, "many">;
|
|
2902
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
2903
|
+
}, "strip", z.ZodTypeAny, {
|
|
2904
|
+
type: "linearGradient";
|
|
2905
|
+
stops: {
|
|
2906
|
+
offset: number;
|
|
2907
|
+
color: string;
|
|
2908
|
+
opacity?: number | undefined;
|
|
2909
|
+
}[];
|
|
2910
|
+
angle?: number | undefined;
|
|
2911
|
+
}, {
|
|
2912
|
+
type: "linearGradient";
|
|
2913
|
+
stops: {
|
|
2914
|
+
offset: number;
|
|
2915
|
+
color: string;
|
|
2916
|
+
opacity?: number | undefined;
|
|
2917
|
+
}[];
|
|
2918
|
+
angle?: number | undefined;
|
|
2919
|
+
}>, z.ZodObject<{
|
|
2920
|
+
type: z.ZodLiteral<"radialGradient">;
|
|
2921
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
2922
|
+
offset: z.ZodNumber;
|
|
2923
|
+
color: z.ZodString;
|
|
2924
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
2925
|
+
}, "strip", z.ZodTypeAny, {
|
|
2926
|
+
offset: number;
|
|
2927
|
+
color: string;
|
|
2928
|
+
opacity?: number | undefined;
|
|
2929
|
+
}, {
|
|
2930
|
+
offset: number;
|
|
2931
|
+
color: string;
|
|
2932
|
+
opacity?: number | undefined;
|
|
2933
|
+
}>, "many">;
|
|
2934
|
+
center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
2935
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
2936
|
+
}, "strip", z.ZodTypeAny, {
|
|
2937
|
+
type: "radialGradient";
|
|
2938
|
+
stops: {
|
|
2939
|
+
offset: number;
|
|
2940
|
+
color: string;
|
|
2941
|
+
opacity?: number | undefined;
|
|
2942
|
+
}[];
|
|
2943
|
+
radius?: number | undefined;
|
|
2944
|
+
center?: [number, number] | undefined;
|
|
2945
|
+
}, {
|
|
2946
|
+
type: "radialGradient";
|
|
2947
|
+
stops: {
|
|
2948
|
+
offset: number;
|
|
2949
|
+
color: string;
|
|
2950
|
+
opacity?: number | undefined;
|
|
2951
|
+
}[];
|
|
2952
|
+
radius?: number | undefined;
|
|
2953
|
+
center?: [number, number] | undefined;
|
|
2954
|
+
}>, z.ZodObject<{
|
|
2955
|
+
type: z.ZodLiteral<"pattern">;
|
|
2956
|
+
shape: z.ZodEnum<["lines", "dots", "grid"]>;
|
|
2957
|
+
color: z.ZodOptional<z.ZodString>;
|
|
2958
|
+
background: z.ZodOptional<z.ZodString>;
|
|
2959
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
2960
|
+
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
2961
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
2962
|
+
}, "strip", z.ZodTypeAny, {
|
|
2963
|
+
type: "pattern";
|
|
2964
|
+
shape: "lines" | "dots" | "grid";
|
|
2965
|
+
size?: number | undefined;
|
|
2966
|
+
color?: string | undefined;
|
|
2967
|
+
background?: string | undefined;
|
|
2968
|
+
lineWidth?: number | undefined;
|
|
2969
|
+
rotation?: number | undefined;
|
|
2970
|
+
}, {
|
|
2971
|
+
type: "pattern";
|
|
2972
|
+
shape: "lines" | "dots" | "grid";
|
|
2973
|
+
size?: number | undefined;
|
|
2974
|
+
color?: string | undefined;
|
|
2975
|
+
background?: string | undefined;
|
|
2976
|
+
lineWidth?: number | undefined;
|
|
2977
|
+
rotation?: number | undefined;
|
|
2978
|
+
}>, z.ZodObject<{
|
|
2979
|
+
type: z.ZodLiteral<"image">;
|
|
2980
|
+
href: z.ZodString;
|
|
2981
|
+
fit: z.ZodOptional<z.ZodEnum<["fill", "contain", "cover"]>>;
|
|
2982
|
+
}, "strip", z.ZodTypeAny, {
|
|
2983
|
+
type: "image";
|
|
2984
|
+
href: string;
|
|
2985
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
2986
|
+
}, {
|
|
2987
|
+
type: "image";
|
|
2988
|
+
href: string;
|
|
2989
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
2990
|
+
}>]>]>>;
|
|
2412
2991
|
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
2413
2992
|
stroke: z.ZodOptional<z.ZodString>;
|
|
2414
2993
|
drawOpacity: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2479,6 +3058,19 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2479
3058
|
}>>;
|
|
2480
3059
|
rotate: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "radial", "tangent"]>, z.ZodNumber]>>;
|
|
2481
3060
|
keepUpright: z.ZodOptional<z.ZodBoolean>;
|
|
3061
|
+
pin: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
3062
|
+
stroke: z.ZodOptional<z.ZodString>;
|
|
3063
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
3064
|
+
dashPattern: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
3065
|
+
}, "strip", z.ZodTypeAny, {
|
|
3066
|
+
stroke?: string | undefined;
|
|
3067
|
+
strokeWidth?: number | undefined;
|
|
3068
|
+
dashPattern?: number[] | undefined;
|
|
3069
|
+
}, {
|
|
3070
|
+
stroke?: string | undefined;
|
|
3071
|
+
strokeWidth?: number | undefined;
|
|
3072
|
+
dashPattern?: number[] | undefined;
|
|
3073
|
+
}>]>>;
|
|
2482
3074
|
}, "strip", z.ZodTypeAny, {
|
|
2483
3075
|
text: string;
|
|
2484
3076
|
distance?: number | undefined;
|
|
@@ -2493,6 +3085,11 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2493
3085
|
textColor?: string | undefined;
|
|
2494
3086
|
rotate?: number | "none" | "radial" | "tangent" | undefined;
|
|
2495
3087
|
keepUpright?: boolean | undefined;
|
|
3088
|
+
pin?: boolean | {
|
|
3089
|
+
stroke?: string | undefined;
|
|
3090
|
+
strokeWidth?: number | undefined;
|
|
3091
|
+
dashPattern?: number[] | undefined;
|
|
3092
|
+
} | undefined;
|
|
2496
3093
|
}, {
|
|
2497
3094
|
text: string;
|
|
2498
3095
|
distance?: number | undefined;
|
|
@@ -2507,6 +3104,11 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2507
3104
|
textColor?: string | undefined;
|
|
2508
3105
|
rotate?: number | "none" | "radial" | "tangent" | undefined;
|
|
2509
3106
|
keepUpright?: boolean | undefined;
|
|
3107
|
+
pin?: boolean | {
|
|
3108
|
+
stroke?: string | undefined;
|
|
3109
|
+
strokeWidth?: number | undefined;
|
|
3110
|
+
dashPattern?: number[] | undefined;
|
|
3111
|
+
} | undefined;
|
|
2510
3112
|
}>, z.ZodArray<z.ZodObject<{
|
|
2511
3113
|
text: z.ZodString;
|
|
2512
3114
|
position: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
|
|
@@ -2540,6 +3142,19 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2540
3142
|
}>>;
|
|
2541
3143
|
rotate: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "radial", "tangent"]>, z.ZodNumber]>>;
|
|
2542
3144
|
keepUpright: z.ZodOptional<z.ZodBoolean>;
|
|
3145
|
+
pin: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
3146
|
+
stroke: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
3148
|
+
dashPattern: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
3149
|
+
}, "strip", z.ZodTypeAny, {
|
|
3150
|
+
stroke?: string | undefined;
|
|
3151
|
+
strokeWidth?: number | undefined;
|
|
3152
|
+
dashPattern?: number[] | undefined;
|
|
3153
|
+
}, {
|
|
3154
|
+
stroke?: string | undefined;
|
|
3155
|
+
strokeWidth?: number | undefined;
|
|
3156
|
+
dashPattern?: number[] | undefined;
|
|
3157
|
+
}>]>>;
|
|
2543
3158
|
}, "strip", z.ZodTypeAny, {
|
|
2544
3159
|
text: string;
|
|
2545
3160
|
distance?: number | undefined;
|
|
@@ -2554,6 +3169,11 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2554
3169
|
textColor?: string | undefined;
|
|
2555
3170
|
rotate?: number | "none" | "radial" | "tangent" | undefined;
|
|
2556
3171
|
keepUpright?: boolean | undefined;
|
|
3172
|
+
pin?: boolean | {
|
|
3173
|
+
stroke?: string | undefined;
|
|
3174
|
+
strokeWidth?: number | undefined;
|
|
3175
|
+
dashPattern?: number[] | undefined;
|
|
3176
|
+
} | undefined;
|
|
2557
3177
|
}, {
|
|
2558
3178
|
text: string;
|
|
2559
3179
|
distance?: number | undefined;
|
|
@@ -2568,20 +3188,54 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2568
3188
|
textColor?: string | undefined;
|
|
2569
3189
|
rotate?: number | "none" | "radial" | "tangent" | undefined;
|
|
2570
3190
|
keepUpright?: boolean | undefined;
|
|
3191
|
+
pin?: boolean | {
|
|
3192
|
+
stroke?: string | undefined;
|
|
3193
|
+
strokeWidth?: number | undefined;
|
|
3194
|
+
dashPattern?: number[] | undefined;
|
|
3195
|
+
} | undefined;
|
|
2571
3196
|
}>, "many">]>>;
|
|
2572
3197
|
zIndex: z.ZodOptional<z.ZodNumber>;
|
|
2573
3198
|
}, "type" | "text" | "id" | "position" | "label" | "zIndex">, "strict", z.ZodTypeAny, {
|
|
2574
|
-
fill?: string |
|
|
3199
|
+
fill?: string | {
|
|
3200
|
+
type: "linearGradient";
|
|
3201
|
+
stops: {
|
|
3202
|
+
offset: number;
|
|
3203
|
+
color: string;
|
|
3204
|
+
opacity?: number | undefined;
|
|
3205
|
+
}[];
|
|
3206
|
+
angle?: number | undefined;
|
|
3207
|
+
} | {
|
|
3208
|
+
type: "radialGradient";
|
|
3209
|
+
stops: {
|
|
3210
|
+
offset: number;
|
|
3211
|
+
color: string;
|
|
3212
|
+
opacity?: number | undefined;
|
|
3213
|
+
}[];
|
|
3214
|
+
radius?: number | undefined;
|
|
3215
|
+
center?: [number, number] | undefined;
|
|
3216
|
+
} | {
|
|
3217
|
+
type: "pattern";
|
|
3218
|
+
shape: "lines" | "dots" | "grid";
|
|
3219
|
+
size?: number | undefined;
|
|
3220
|
+
color?: string | undefined;
|
|
3221
|
+
background?: string | undefined;
|
|
3222
|
+
lineWidth?: number | undefined;
|
|
3223
|
+
rotation?: number | undefined;
|
|
3224
|
+
} | {
|
|
3225
|
+
type: "image";
|
|
3226
|
+
href: string;
|
|
3227
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
3228
|
+
} | undefined;
|
|
3229
|
+
color?: string | undefined;
|
|
2575
3230
|
opacity?: number | undefined;
|
|
3231
|
+
shape?: string | undefined;
|
|
2576
3232
|
font?: {
|
|
2577
3233
|
family?: string | undefined;
|
|
2578
3234
|
size?: number | undefined;
|
|
2579
3235
|
weight?: number | "normal" | "bold" | undefined;
|
|
2580
3236
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2581
3237
|
} | undefined;
|
|
2582
|
-
shape?: string | undefined;
|
|
2583
3238
|
scale?: number | undefined;
|
|
2584
|
-
color?: string | undefined;
|
|
2585
3239
|
textColor?: string | undefined;
|
|
2586
3240
|
roundedCorners?: number | undefined;
|
|
2587
3241
|
stroke?: string | undefined;
|
|
@@ -2591,6 +3245,7 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2591
3245
|
rotate?: number | undefined;
|
|
2592
3246
|
align?: "left" | "right" | "center" | undefined;
|
|
2593
3247
|
lineHeight?: number | undefined;
|
|
3248
|
+
maxTextWidth?: number | undefined;
|
|
2594
3249
|
dashed?: boolean | undefined;
|
|
2595
3250
|
dotted?: boolean | undefined;
|
|
2596
3251
|
dashArray?: number[] | undefined;
|
|
@@ -2605,17 +3260,46 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2605
3260
|
padding?: number | undefined;
|
|
2606
3261
|
margin?: number | undefined;
|
|
2607
3262
|
}, {
|
|
2608
|
-
fill?: string |
|
|
3263
|
+
fill?: string | {
|
|
3264
|
+
type: "linearGradient";
|
|
3265
|
+
stops: {
|
|
3266
|
+
offset: number;
|
|
3267
|
+
color: string;
|
|
3268
|
+
opacity?: number | undefined;
|
|
3269
|
+
}[];
|
|
3270
|
+
angle?: number | undefined;
|
|
3271
|
+
} | {
|
|
3272
|
+
type: "radialGradient";
|
|
3273
|
+
stops: {
|
|
3274
|
+
offset: number;
|
|
3275
|
+
color: string;
|
|
3276
|
+
opacity?: number | undefined;
|
|
3277
|
+
}[];
|
|
3278
|
+
radius?: number | undefined;
|
|
3279
|
+
center?: [number, number] | undefined;
|
|
3280
|
+
} | {
|
|
3281
|
+
type: "pattern";
|
|
3282
|
+
shape: "lines" | "dots" | "grid";
|
|
3283
|
+
size?: number | undefined;
|
|
3284
|
+
color?: string | undefined;
|
|
3285
|
+
background?: string | undefined;
|
|
3286
|
+
lineWidth?: number | undefined;
|
|
3287
|
+
rotation?: number | undefined;
|
|
3288
|
+
} | {
|
|
3289
|
+
type: "image";
|
|
3290
|
+
href: string;
|
|
3291
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
3292
|
+
} | undefined;
|
|
3293
|
+
color?: string | undefined;
|
|
2609
3294
|
opacity?: number | undefined;
|
|
3295
|
+
shape?: string | undefined;
|
|
2610
3296
|
font?: {
|
|
2611
3297
|
family?: string | undefined;
|
|
2612
3298
|
size?: number | undefined;
|
|
2613
3299
|
weight?: number | "normal" | "bold" | undefined;
|
|
2614
3300
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2615
3301
|
} | undefined;
|
|
2616
|
-
shape?: string | undefined;
|
|
2617
3302
|
scale?: number | undefined;
|
|
2618
|
-
color?: string | undefined;
|
|
2619
3303
|
textColor?: string | undefined;
|
|
2620
3304
|
roundedCorners?: number | undefined;
|
|
2621
3305
|
stroke?: string | undefined;
|
|
@@ -2625,6 +3309,7 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2625
3309
|
rotate?: number | undefined;
|
|
2626
3310
|
align?: "left" | "right" | "center" | undefined;
|
|
2627
3311
|
lineHeight?: number | undefined;
|
|
3312
|
+
maxTextWidth?: number | undefined;
|
|
2628
3313
|
dashed?: boolean | undefined;
|
|
2629
3314
|
dotted?: boolean | undefined;
|
|
2630
3315
|
dashArray?: number[] | undefined;
|
|
@@ -2684,21 +3369,21 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2684
3369
|
}, "strip", z.ZodTypeAny, {
|
|
2685
3370
|
length?: number | undefined;
|
|
2686
3371
|
fill?: string | undefined;
|
|
3372
|
+
color?: string | undefined;
|
|
2687
3373
|
opacity?: number | undefined;
|
|
2688
3374
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3375
|
+
lineWidth?: number | undefined;
|
|
2689
3376
|
scale?: number | undefined;
|
|
2690
3377
|
width?: number | undefined;
|
|
2691
|
-
color?: string | undefined;
|
|
2692
|
-
lineWidth?: number | undefined;
|
|
2693
3378
|
}, {
|
|
2694
3379
|
length?: number | undefined;
|
|
2695
3380
|
fill?: string | undefined;
|
|
3381
|
+
color?: string | undefined;
|
|
2696
3382
|
opacity?: number | undefined;
|
|
2697
3383
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3384
|
+
lineWidth?: number | undefined;
|
|
2698
3385
|
scale?: number | undefined;
|
|
2699
3386
|
width?: number | undefined;
|
|
2700
|
-
color?: string | undefined;
|
|
2701
|
-
lineWidth?: number | undefined;
|
|
2702
3387
|
}>>;
|
|
2703
3388
|
end: z.ZodOptional<z.ZodObject<{
|
|
2704
3389
|
shape: z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -2720,82 +3405,185 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
2720
3405
|
}, "strip", z.ZodTypeAny, {
|
|
2721
3406
|
length?: number | undefined;
|
|
2722
3407
|
fill?: string | undefined;
|
|
3408
|
+
color?: string | undefined;
|
|
2723
3409
|
opacity?: number | undefined;
|
|
2724
3410
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3411
|
+
lineWidth?: number | undefined;
|
|
2725
3412
|
scale?: number | undefined;
|
|
2726
3413
|
width?: number | undefined;
|
|
2727
|
-
color?: string | undefined;
|
|
2728
|
-
lineWidth?: number | undefined;
|
|
2729
3414
|
}, {
|
|
2730
3415
|
length?: number | undefined;
|
|
2731
3416
|
fill?: string | undefined;
|
|
3417
|
+
color?: string | undefined;
|
|
2732
3418
|
opacity?: number | undefined;
|
|
2733
3419
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3420
|
+
lineWidth?: number | undefined;
|
|
2734
3421
|
scale?: number | undefined;
|
|
2735
3422
|
width?: number | undefined;
|
|
2736
|
-
color?: string | undefined;
|
|
2737
|
-
lineWidth?: number | undefined;
|
|
2738
3423
|
}>>;
|
|
2739
3424
|
}, "strip", z.ZodTypeAny, {
|
|
2740
3425
|
length?: number | undefined;
|
|
2741
3426
|
fill?: string | undefined;
|
|
3427
|
+
color?: string | undefined;
|
|
2742
3428
|
opacity?: number | undefined;
|
|
2743
3429
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3430
|
+
lineWidth?: number | undefined;
|
|
2744
3431
|
scale?: number | undefined;
|
|
2745
3432
|
width?: number | undefined;
|
|
2746
|
-
color?: string | undefined;
|
|
2747
|
-
lineWidth?: number | undefined;
|
|
2748
3433
|
start?: {
|
|
2749
3434
|
length?: number | undefined;
|
|
2750
3435
|
fill?: string | undefined;
|
|
3436
|
+
color?: string | undefined;
|
|
2751
3437
|
opacity?: number | undefined;
|
|
2752
3438
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3439
|
+
lineWidth?: number | undefined;
|
|
2753
3440
|
scale?: number | undefined;
|
|
2754
3441
|
width?: number | undefined;
|
|
2755
|
-
color?: string | undefined;
|
|
2756
|
-
lineWidth?: number | undefined;
|
|
2757
3442
|
} | undefined;
|
|
2758
3443
|
end?: {
|
|
2759
3444
|
length?: number | undefined;
|
|
2760
3445
|
fill?: string | undefined;
|
|
3446
|
+
color?: string | undefined;
|
|
2761
3447
|
opacity?: number | undefined;
|
|
2762
3448
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3449
|
+
lineWidth?: number | undefined;
|
|
2763
3450
|
scale?: number | undefined;
|
|
2764
3451
|
width?: number | undefined;
|
|
2765
|
-
color?: string | undefined;
|
|
2766
|
-
lineWidth?: number | undefined;
|
|
2767
3452
|
} | undefined;
|
|
2768
3453
|
}, {
|
|
2769
3454
|
length?: number | undefined;
|
|
2770
3455
|
fill?: string | undefined;
|
|
3456
|
+
color?: string | undefined;
|
|
2771
3457
|
opacity?: number | undefined;
|
|
2772
3458
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3459
|
+
lineWidth?: number | undefined;
|
|
2773
3460
|
scale?: number | undefined;
|
|
2774
3461
|
width?: number | undefined;
|
|
2775
|
-
color?: string | undefined;
|
|
2776
|
-
lineWidth?: number | undefined;
|
|
2777
3462
|
start?: {
|
|
2778
3463
|
length?: number | undefined;
|
|
2779
3464
|
fill?: string | undefined;
|
|
3465
|
+
color?: string | undefined;
|
|
2780
3466
|
opacity?: number | undefined;
|
|
2781
3467
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3468
|
+
lineWidth?: number | undefined;
|
|
2782
3469
|
scale?: number | undefined;
|
|
2783
3470
|
width?: number | undefined;
|
|
2784
|
-
color?: string | undefined;
|
|
2785
|
-
lineWidth?: number | undefined;
|
|
2786
3471
|
} | undefined;
|
|
2787
3472
|
end?: {
|
|
2788
3473
|
length?: number | undefined;
|
|
2789
3474
|
fill?: string | undefined;
|
|
3475
|
+
color?: string | undefined;
|
|
2790
3476
|
opacity?: number | undefined;
|
|
2791
3477
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
3478
|
+
lineWidth?: number | undefined;
|
|
2792
3479
|
scale?: number | undefined;
|
|
2793
3480
|
width?: number | undefined;
|
|
2794
|
-
color?: string | undefined;
|
|
2795
|
-
lineWidth?: number | undefined;
|
|
2796
3481
|
} | undefined;
|
|
2797
3482
|
}>>;
|
|
2798
|
-
fill: z.ZodOptional<z.ZodString
|
|
3483
|
+
fill: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3484
|
+
type: z.ZodLiteral<"linearGradient">;
|
|
3485
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
3486
|
+
offset: z.ZodNumber;
|
|
3487
|
+
color: z.ZodString;
|
|
3488
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
3489
|
+
}, "strip", z.ZodTypeAny, {
|
|
3490
|
+
offset: number;
|
|
3491
|
+
color: string;
|
|
3492
|
+
opacity?: number | undefined;
|
|
3493
|
+
}, {
|
|
3494
|
+
offset: number;
|
|
3495
|
+
color: string;
|
|
3496
|
+
opacity?: number | undefined;
|
|
3497
|
+
}>, "many">;
|
|
3498
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
3499
|
+
}, "strip", z.ZodTypeAny, {
|
|
3500
|
+
type: "linearGradient";
|
|
3501
|
+
stops: {
|
|
3502
|
+
offset: number;
|
|
3503
|
+
color: string;
|
|
3504
|
+
opacity?: number | undefined;
|
|
3505
|
+
}[];
|
|
3506
|
+
angle?: number | undefined;
|
|
3507
|
+
}, {
|
|
3508
|
+
type: "linearGradient";
|
|
3509
|
+
stops: {
|
|
3510
|
+
offset: number;
|
|
3511
|
+
color: string;
|
|
3512
|
+
opacity?: number | undefined;
|
|
3513
|
+
}[];
|
|
3514
|
+
angle?: number | undefined;
|
|
3515
|
+
}>, z.ZodObject<{
|
|
3516
|
+
type: z.ZodLiteral<"radialGradient">;
|
|
3517
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
3518
|
+
offset: z.ZodNumber;
|
|
3519
|
+
color: z.ZodString;
|
|
3520
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
3521
|
+
}, "strip", z.ZodTypeAny, {
|
|
3522
|
+
offset: number;
|
|
3523
|
+
color: string;
|
|
3524
|
+
opacity?: number | undefined;
|
|
3525
|
+
}, {
|
|
3526
|
+
offset: number;
|
|
3527
|
+
color: string;
|
|
3528
|
+
opacity?: number | undefined;
|
|
3529
|
+
}>, "many">;
|
|
3530
|
+
center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
3531
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
3532
|
+
}, "strip", z.ZodTypeAny, {
|
|
3533
|
+
type: "radialGradient";
|
|
3534
|
+
stops: {
|
|
3535
|
+
offset: number;
|
|
3536
|
+
color: string;
|
|
3537
|
+
opacity?: number | undefined;
|
|
3538
|
+
}[];
|
|
3539
|
+
radius?: number | undefined;
|
|
3540
|
+
center?: [number, number] | undefined;
|
|
3541
|
+
}, {
|
|
3542
|
+
type: "radialGradient";
|
|
3543
|
+
stops: {
|
|
3544
|
+
offset: number;
|
|
3545
|
+
color: string;
|
|
3546
|
+
opacity?: number | undefined;
|
|
3547
|
+
}[];
|
|
3548
|
+
radius?: number | undefined;
|
|
3549
|
+
center?: [number, number] | undefined;
|
|
3550
|
+
}>, z.ZodObject<{
|
|
3551
|
+
type: z.ZodLiteral<"pattern">;
|
|
3552
|
+
shape: z.ZodEnum<["lines", "dots", "grid"]>;
|
|
3553
|
+
color: z.ZodOptional<z.ZodString>;
|
|
3554
|
+
background: z.ZodOptional<z.ZodString>;
|
|
3555
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
3556
|
+
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
3557
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3558
|
+
}, "strip", z.ZodTypeAny, {
|
|
3559
|
+
type: "pattern";
|
|
3560
|
+
shape: "lines" | "dots" | "grid";
|
|
3561
|
+
size?: number | undefined;
|
|
3562
|
+
color?: string | undefined;
|
|
3563
|
+
background?: string | undefined;
|
|
3564
|
+
lineWidth?: number | undefined;
|
|
3565
|
+
rotation?: number | undefined;
|
|
3566
|
+
}, {
|
|
3567
|
+
type: "pattern";
|
|
3568
|
+
shape: "lines" | "dots" | "grid";
|
|
3569
|
+
size?: number | undefined;
|
|
3570
|
+
color?: string | undefined;
|
|
3571
|
+
background?: string | undefined;
|
|
3572
|
+
lineWidth?: number | undefined;
|
|
3573
|
+
rotation?: number | undefined;
|
|
3574
|
+
}>, z.ZodObject<{
|
|
3575
|
+
type: z.ZodLiteral<"image">;
|
|
3576
|
+
href: z.ZodString;
|
|
3577
|
+
fit: z.ZodOptional<z.ZodEnum<["fill", "contain", "cover"]>>;
|
|
3578
|
+
}, "strip", z.ZodTypeAny, {
|
|
3579
|
+
type: "image";
|
|
3580
|
+
href: string;
|
|
3581
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
3582
|
+
}, {
|
|
3583
|
+
type: "image";
|
|
3584
|
+
href: string;
|
|
3585
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
3586
|
+
}>]>]>>;
|
|
2799
3587
|
fillRule: z.ZodOptional<z.ZodEnum<["nonzero", "evenodd"]>>;
|
|
2800
3588
|
lineCap: z.ZodOptional<z.ZodEnum<["butt", "round", "square"]>>;
|
|
2801
3589
|
lineJoin: z.ZodOptional<z.ZodEnum<["miter", "round", "bevel"]>>;
|
|
@@ -4263,9 +5051,38 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4263
5051
|
roundedCorners?: number | undefined;
|
|
4264
5052
|
}>]>, "many">;
|
|
4265
5053
|
}, "type" | "arrow" | "arrowDetail" | "zIndex" | "children">, "strict", z.ZodTypeAny, {
|
|
4266
|
-
fill?: string |
|
|
4267
|
-
|
|
5054
|
+
fill?: string | {
|
|
5055
|
+
type: "linearGradient";
|
|
5056
|
+
stops: {
|
|
5057
|
+
offset: number;
|
|
5058
|
+
color: string;
|
|
5059
|
+
opacity?: number | undefined;
|
|
5060
|
+
}[];
|
|
5061
|
+
angle?: number | undefined;
|
|
5062
|
+
} | {
|
|
5063
|
+
type: "radialGradient";
|
|
5064
|
+
stops: {
|
|
5065
|
+
offset: number;
|
|
5066
|
+
color: string;
|
|
5067
|
+
opacity?: number | undefined;
|
|
5068
|
+
}[];
|
|
5069
|
+
radius?: number | undefined;
|
|
5070
|
+
center?: [number, number] | undefined;
|
|
5071
|
+
} | {
|
|
5072
|
+
type: "pattern";
|
|
5073
|
+
shape: "lines" | "dots" | "grid";
|
|
5074
|
+
size?: number | undefined;
|
|
5075
|
+
color?: string | undefined;
|
|
5076
|
+
background?: string | undefined;
|
|
5077
|
+
lineWidth?: number | undefined;
|
|
5078
|
+
rotation?: number | undefined;
|
|
5079
|
+
} | {
|
|
5080
|
+
type: "image";
|
|
5081
|
+
href: string;
|
|
5082
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
5083
|
+
} | undefined;
|
|
4268
5084
|
color?: string | undefined;
|
|
5085
|
+
opacity?: number | undefined;
|
|
4269
5086
|
stroke?: string | undefined;
|
|
4270
5087
|
strokeWidth?: number | undefined;
|
|
4271
5088
|
dashPattern?: number[] | undefined;
|
|
@@ -4276,9 +5093,38 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4276
5093
|
fillOpacity?: number | undefined;
|
|
4277
5094
|
drawOpacity?: number | undefined;
|
|
4278
5095
|
}, {
|
|
4279
|
-
fill?: string |
|
|
4280
|
-
|
|
5096
|
+
fill?: string | {
|
|
5097
|
+
type: "linearGradient";
|
|
5098
|
+
stops: {
|
|
5099
|
+
offset: number;
|
|
5100
|
+
color: string;
|
|
5101
|
+
opacity?: number | undefined;
|
|
5102
|
+
}[];
|
|
5103
|
+
angle?: number | undefined;
|
|
5104
|
+
} | {
|
|
5105
|
+
type: "radialGradient";
|
|
5106
|
+
stops: {
|
|
5107
|
+
offset: number;
|
|
5108
|
+
color: string;
|
|
5109
|
+
opacity?: number | undefined;
|
|
5110
|
+
}[];
|
|
5111
|
+
radius?: number | undefined;
|
|
5112
|
+
center?: [number, number] | undefined;
|
|
5113
|
+
} | {
|
|
5114
|
+
type: "pattern";
|
|
5115
|
+
shape: "lines" | "dots" | "grid";
|
|
5116
|
+
size?: number | undefined;
|
|
5117
|
+
color?: string | undefined;
|
|
5118
|
+
background?: string | undefined;
|
|
5119
|
+
lineWidth?: number | undefined;
|
|
5120
|
+
rotation?: number | undefined;
|
|
5121
|
+
} | {
|
|
5122
|
+
type: "image";
|
|
5123
|
+
href: string;
|
|
5124
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
5125
|
+
} | undefined;
|
|
4281
5126
|
color?: string | undefined;
|
|
5127
|
+
opacity?: number | undefined;
|
|
4282
5128
|
stroke?: string | undefined;
|
|
4283
5129
|
strokeWidth?: number | undefined;
|
|
4284
5130
|
dashPattern?: number[] | undefined;
|
|
@@ -4310,6 +5156,7 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4310
5156
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
4311
5157
|
}>>;
|
|
4312
5158
|
}, "strict", z.ZodTypeAny, {
|
|
5159
|
+
color?: string | undefined;
|
|
4313
5160
|
opacity?: number | undefined;
|
|
4314
5161
|
font?: {
|
|
4315
5162
|
family?: string | undefined;
|
|
@@ -4317,9 +5164,9 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4317
5164
|
weight?: number | "normal" | "bold" | undefined;
|
|
4318
5165
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
4319
5166
|
} | undefined;
|
|
4320
|
-
color?: string | undefined;
|
|
4321
5167
|
textColor?: string | undefined;
|
|
4322
5168
|
}, {
|
|
5169
|
+
color?: string | undefined;
|
|
4323
5170
|
opacity?: number | undefined;
|
|
4324
5171
|
font?: {
|
|
4325
5172
|
family?: string | undefined;
|
|
@@ -4327,7 +5174,6 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4327
5174
|
weight?: number | "normal" | "bold" | undefined;
|
|
4328
5175
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
4329
5176
|
} | undefined;
|
|
4330
|
-
color?: string | undefined;
|
|
4331
5177
|
textColor?: string | undefined;
|
|
4332
5178
|
}>>;
|
|
4333
5179
|
arrowDefault: z.ZodOptional<z.ZodObject<{
|
|
@@ -4368,21 +5214,21 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4368
5214
|
}, "strip", z.ZodTypeAny, {
|
|
4369
5215
|
length?: number | undefined;
|
|
4370
5216
|
fill?: string | undefined;
|
|
5217
|
+
color?: string | undefined;
|
|
4371
5218
|
opacity?: number | undefined;
|
|
4372
5219
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5220
|
+
lineWidth?: number | undefined;
|
|
4373
5221
|
scale?: number | undefined;
|
|
4374
5222
|
width?: number | undefined;
|
|
4375
|
-
color?: string | undefined;
|
|
4376
|
-
lineWidth?: number | undefined;
|
|
4377
5223
|
}, {
|
|
4378
5224
|
length?: number | undefined;
|
|
4379
5225
|
fill?: string | undefined;
|
|
5226
|
+
color?: string | undefined;
|
|
4380
5227
|
opacity?: number | undefined;
|
|
4381
5228
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5229
|
+
lineWidth?: number | undefined;
|
|
4382
5230
|
scale?: number | undefined;
|
|
4383
5231
|
width?: number | undefined;
|
|
4384
|
-
color?: string | undefined;
|
|
4385
|
-
lineWidth?: number | undefined;
|
|
4386
5232
|
}>>;
|
|
4387
5233
|
end: z.ZodOptional<z.ZodObject<{
|
|
4388
5234
|
shape: z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -4404,79 +5250,79 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4404
5250
|
}, "strip", z.ZodTypeAny, {
|
|
4405
5251
|
length?: number | undefined;
|
|
4406
5252
|
fill?: string | undefined;
|
|
5253
|
+
color?: string | undefined;
|
|
4407
5254
|
opacity?: number | undefined;
|
|
4408
5255
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5256
|
+
lineWidth?: number | undefined;
|
|
4409
5257
|
scale?: number | undefined;
|
|
4410
5258
|
width?: number | undefined;
|
|
4411
|
-
color?: string | undefined;
|
|
4412
|
-
lineWidth?: number | undefined;
|
|
4413
5259
|
}, {
|
|
4414
5260
|
length?: number | undefined;
|
|
4415
5261
|
fill?: string | undefined;
|
|
5262
|
+
color?: string | undefined;
|
|
4416
5263
|
opacity?: number | undefined;
|
|
4417
5264
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5265
|
+
lineWidth?: number | undefined;
|
|
4418
5266
|
scale?: number | undefined;
|
|
4419
5267
|
width?: number | undefined;
|
|
4420
|
-
color?: string | undefined;
|
|
4421
|
-
lineWidth?: number | undefined;
|
|
4422
5268
|
}>>;
|
|
4423
5269
|
}, "strip", z.ZodTypeAny, {
|
|
4424
5270
|
length?: number | undefined;
|
|
4425
5271
|
fill?: string | undefined;
|
|
5272
|
+
color?: string | undefined;
|
|
4426
5273
|
opacity?: number | undefined;
|
|
4427
5274
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5275
|
+
lineWidth?: number | undefined;
|
|
4428
5276
|
scale?: number | undefined;
|
|
4429
5277
|
width?: number | undefined;
|
|
4430
|
-
color?: string | undefined;
|
|
4431
|
-
lineWidth?: number | undefined;
|
|
4432
5278
|
start?: {
|
|
4433
5279
|
length?: number | undefined;
|
|
4434
5280
|
fill?: string | undefined;
|
|
5281
|
+
color?: string | undefined;
|
|
4435
5282
|
opacity?: number | undefined;
|
|
4436
5283
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5284
|
+
lineWidth?: number | undefined;
|
|
4437
5285
|
scale?: number | undefined;
|
|
4438
5286
|
width?: number | undefined;
|
|
4439
|
-
color?: string | undefined;
|
|
4440
|
-
lineWidth?: number | undefined;
|
|
4441
5287
|
} | undefined;
|
|
4442
5288
|
end?: {
|
|
4443
5289
|
length?: number | undefined;
|
|
4444
5290
|
fill?: string | undefined;
|
|
5291
|
+
color?: string | undefined;
|
|
4445
5292
|
opacity?: number | undefined;
|
|
4446
5293
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5294
|
+
lineWidth?: number | undefined;
|
|
4447
5295
|
scale?: number | undefined;
|
|
4448
5296
|
width?: number | undefined;
|
|
4449
|
-
color?: string | undefined;
|
|
4450
|
-
lineWidth?: number | undefined;
|
|
4451
5297
|
} | undefined;
|
|
4452
5298
|
}, {
|
|
4453
5299
|
length?: number | undefined;
|
|
4454
5300
|
fill?: string | undefined;
|
|
5301
|
+
color?: string | undefined;
|
|
4455
5302
|
opacity?: number | undefined;
|
|
4456
5303
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5304
|
+
lineWidth?: number | undefined;
|
|
4457
5305
|
scale?: number | undefined;
|
|
4458
5306
|
width?: number | undefined;
|
|
4459
|
-
color?: string | undefined;
|
|
4460
|
-
lineWidth?: number | undefined;
|
|
4461
5307
|
start?: {
|
|
4462
5308
|
length?: number | undefined;
|
|
4463
5309
|
fill?: string | undefined;
|
|
5310
|
+
color?: string | undefined;
|
|
4464
5311
|
opacity?: number | undefined;
|
|
4465
5312
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5313
|
+
lineWidth?: number | undefined;
|
|
4466
5314
|
scale?: number | undefined;
|
|
4467
5315
|
width?: number | undefined;
|
|
4468
|
-
color?: string | undefined;
|
|
4469
|
-
lineWidth?: number | undefined;
|
|
4470
5316
|
} | undefined;
|
|
4471
5317
|
end?: {
|
|
4472
5318
|
length?: number | undefined;
|
|
4473
5319
|
fill?: string | undefined;
|
|
5320
|
+
color?: string | undefined;
|
|
4474
5321
|
opacity?: number | undefined;
|
|
4475
5322
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5323
|
+
lineWidth?: number | undefined;
|
|
4476
5324
|
scale?: number | undefined;
|
|
4477
5325
|
width?: number | undefined;
|
|
4478
|
-
color?: string | undefined;
|
|
4479
|
-
lineWidth?: number | undefined;
|
|
4480
5326
|
} | undefined;
|
|
4481
5327
|
}>>;
|
|
4482
5328
|
resetStyle: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEnum<["node", "path", "label", "arrow"]>, "many">]>>;
|
|
@@ -4485,9 +5331,38 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4485
5331
|
}, "strip", z.ZodTypeAny, {
|
|
4486
5332
|
type: "scope";
|
|
4487
5333
|
children: any[];
|
|
4488
|
-
fill?: string |
|
|
4489
|
-
|
|
5334
|
+
fill?: string | {
|
|
5335
|
+
type: "linearGradient";
|
|
5336
|
+
stops: {
|
|
5337
|
+
offset: number;
|
|
5338
|
+
color: string;
|
|
5339
|
+
opacity?: number | undefined;
|
|
5340
|
+
}[];
|
|
5341
|
+
angle?: number | undefined;
|
|
5342
|
+
} | {
|
|
5343
|
+
type: "radialGradient";
|
|
5344
|
+
stops: {
|
|
5345
|
+
offset: number;
|
|
5346
|
+
color: string;
|
|
5347
|
+
opacity?: number | undefined;
|
|
5348
|
+
}[];
|
|
5349
|
+
radius?: number | undefined;
|
|
5350
|
+
center?: [number, number] | undefined;
|
|
5351
|
+
} | {
|
|
5352
|
+
type: "pattern";
|
|
5353
|
+
shape: "lines" | "dots" | "grid";
|
|
5354
|
+
size?: number | undefined;
|
|
5355
|
+
color?: string | undefined;
|
|
5356
|
+
background?: string | undefined;
|
|
5357
|
+
lineWidth?: number | undefined;
|
|
5358
|
+
rotation?: number | undefined;
|
|
5359
|
+
} | {
|
|
5360
|
+
type: "image";
|
|
5361
|
+
href: string;
|
|
5362
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
5363
|
+
} | undefined;
|
|
4490
5364
|
color?: string | undefined;
|
|
5365
|
+
opacity?: number | undefined;
|
|
4491
5366
|
id?: string | undefined;
|
|
4492
5367
|
stroke?: string | undefined;
|
|
4493
5368
|
strokeWidth?: number | undefined;
|
|
@@ -4524,17 +5399,46 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4524
5399
|
y?: number | undefined;
|
|
4525
5400
|
})[] | undefined;
|
|
4526
5401
|
nodeDefault?: {
|
|
4527
|
-
fill?: string |
|
|
5402
|
+
fill?: string | {
|
|
5403
|
+
type: "linearGradient";
|
|
5404
|
+
stops: {
|
|
5405
|
+
offset: number;
|
|
5406
|
+
color: string;
|
|
5407
|
+
opacity?: number | undefined;
|
|
5408
|
+
}[];
|
|
5409
|
+
angle?: number | undefined;
|
|
5410
|
+
} | {
|
|
5411
|
+
type: "radialGradient";
|
|
5412
|
+
stops: {
|
|
5413
|
+
offset: number;
|
|
5414
|
+
color: string;
|
|
5415
|
+
opacity?: number | undefined;
|
|
5416
|
+
}[];
|
|
5417
|
+
radius?: number | undefined;
|
|
5418
|
+
center?: [number, number] | undefined;
|
|
5419
|
+
} | {
|
|
5420
|
+
type: "pattern";
|
|
5421
|
+
shape: "lines" | "dots" | "grid";
|
|
5422
|
+
size?: number | undefined;
|
|
5423
|
+
color?: string | undefined;
|
|
5424
|
+
background?: string | undefined;
|
|
5425
|
+
lineWidth?: number | undefined;
|
|
5426
|
+
rotation?: number | undefined;
|
|
5427
|
+
} | {
|
|
5428
|
+
type: "image";
|
|
5429
|
+
href: string;
|
|
5430
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
5431
|
+
} | undefined;
|
|
5432
|
+
color?: string | undefined;
|
|
4528
5433
|
opacity?: number | undefined;
|
|
5434
|
+
shape?: string | undefined;
|
|
4529
5435
|
font?: {
|
|
4530
5436
|
family?: string | undefined;
|
|
4531
5437
|
size?: number | undefined;
|
|
4532
5438
|
weight?: number | "normal" | "bold" | undefined;
|
|
4533
5439
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
4534
5440
|
} | undefined;
|
|
4535
|
-
shape?: string | undefined;
|
|
4536
5441
|
scale?: number | undefined;
|
|
4537
|
-
color?: string | undefined;
|
|
4538
5442
|
textColor?: string | undefined;
|
|
4539
5443
|
roundedCorners?: number | undefined;
|
|
4540
5444
|
stroke?: string | undefined;
|
|
@@ -4544,6 +5448,7 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4544
5448
|
rotate?: number | undefined;
|
|
4545
5449
|
align?: "left" | "right" | "center" | undefined;
|
|
4546
5450
|
lineHeight?: number | undefined;
|
|
5451
|
+
maxTextWidth?: number | undefined;
|
|
4547
5452
|
dashed?: boolean | undefined;
|
|
4548
5453
|
dotted?: boolean | undefined;
|
|
4549
5454
|
dashArray?: number[] | undefined;
|
|
@@ -4559,9 +5464,38 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4559
5464
|
margin?: number | undefined;
|
|
4560
5465
|
} | undefined;
|
|
4561
5466
|
pathDefault?: {
|
|
4562
|
-
fill?: string |
|
|
4563
|
-
|
|
5467
|
+
fill?: string | {
|
|
5468
|
+
type: "linearGradient";
|
|
5469
|
+
stops: {
|
|
5470
|
+
offset: number;
|
|
5471
|
+
color: string;
|
|
5472
|
+
opacity?: number | undefined;
|
|
5473
|
+
}[];
|
|
5474
|
+
angle?: number | undefined;
|
|
5475
|
+
} | {
|
|
5476
|
+
type: "radialGradient";
|
|
5477
|
+
stops: {
|
|
5478
|
+
offset: number;
|
|
5479
|
+
color: string;
|
|
5480
|
+
opacity?: number | undefined;
|
|
5481
|
+
}[];
|
|
5482
|
+
radius?: number | undefined;
|
|
5483
|
+
center?: [number, number] | undefined;
|
|
5484
|
+
} | {
|
|
5485
|
+
type: "pattern";
|
|
5486
|
+
shape: "lines" | "dots" | "grid";
|
|
5487
|
+
size?: number | undefined;
|
|
5488
|
+
color?: string | undefined;
|
|
5489
|
+
background?: string | undefined;
|
|
5490
|
+
lineWidth?: number | undefined;
|
|
5491
|
+
rotation?: number | undefined;
|
|
5492
|
+
} | {
|
|
5493
|
+
type: "image";
|
|
5494
|
+
href: string;
|
|
5495
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
5496
|
+
} | undefined;
|
|
4564
5497
|
color?: string | undefined;
|
|
5498
|
+
opacity?: number | undefined;
|
|
4565
5499
|
stroke?: string | undefined;
|
|
4566
5500
|
strokeWidth?: number | undefined;
|
|
4567
5501
|
dashPattern?: number[] | undefined;
|
|
@@ -4573,6 +5507,7 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4573
5507
|
drawOpacity?: number | undefined;
|
|
4574
5508
|
} | undefined;
|
|
4575
5509
|
labelDefault?: {
|
|
5510
|
+
color?: string | undefined;
|
|
4576
5511
|
opacity?: number | undefined;
|
|
4577
5512
|
font?: {
|
|
4578
5513
|
family?: string | undefined;
|
|
@@ -4580,46 +5515,74 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4580
5515
|
weight?: number | "normal" | "bold" | undefined;
|
|
4581
5516
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
4582
5517
|
} | undefined;
|
|
4583
|
-
color?: string | undefined;
|
|
4584
5518
|
textColor?: string | undefined;
|
|
4585
5519
|
} | undefined;
|
|
4586
5520
|
arrowDefault?: {
|
|
4587
5521
|
length?: number | undefined;
|
|
4588
5522
|
fill?: string | undefined;
|
|
5523
|
+
color?: string | undefined;
|
|
4589
5524
|
opacity?: number | undefined;
|
|
4590
5525
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5526
|
+
lineWidth?: number | undefined;
|
|
4591
5527
|
scale?: number | undefined;
|
|
4592
5528
|
width?: number | undefined;
|
|
4593
|
-
color?: string | undefined;
|
|
4594
|
-
lineWidth?: number | undefined;
|
|
4595
5529
|
start?: {
|
|
4596
5530
|
length?: number | undefined;
|
|
4597
5531
|
fill?: string | undefined;
|
|
5532
|
+
color?: string | undefined;
|
|
4598
5533
|
opacity?: number | undefined;
|
|
4599
5534
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5535
|
+
lineWidth?: number | undefined;
|
|
4600
5536
|
scale?: number | undefined;
|
|
4601
5537
|
width?: number | undefined;
|
|
4602
|
-
color?: string | undefined;
|
|
4603
|
-
lineWidth?: number | undefined;
|
|
4604
5538
|
} | undefined;
|
|
4605
5539
|
end?: {
|
|
4606
5540
|
length?: number | undefined;
|
|
4607
5541
|
fill?: string | undefined;
|
|
5542
|
+
color?: string | undefined;
|
|
4608
5543
|
opacity?: number | undefined;
|
|
4609
5544
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5545
|
+
lineWidth?: number | undefined;
|
|
4610
5546
|
scale?: number | undefined;
|
|
4611
5547
|
width?: number | undefined;
|
|
4612
|
-
color?: string | undefined;
|
|
4613
|
-
lineWidth?: number | undefined;
|
|
4614
5548
|
} | undefined;
|
|
4615
5549
|
} | undefined;
|
|
4616
5550
|
resetStyle?: boolean | ("path" | "label" | "arrow" | "node")[] | undefined;
|
|
4617
5551
|
}, {
|
|
4618
5552
|
type: "scope";
|
|
4619
5553
|
children: any[];
|
|
4620
|
-
fill?: string |
|
|
4621
|
-
|
|
5554
|
+
fill?: string | {
|
|
5555
|
+
type: "linearGradient";
|
|
5556
|
+
stops: {
|
|
5557
|
+
offset: number;
|
|
5558
|
+
color: string;
|
|
5559
|
+
opacity?: number | undefined;
|
|
5560
|
+
}[];
|
|
5561
|
+
angle?: number | undefined;
|
|
5562
|
+
} | {
|
|
5563
|
+
type: "radialGradient";
|
|
5564
|
+
stops: {
|
|
5565
|
+
offset: number;
|
|
5566
|
+
color: string;
|
|
5567
|
+
opacity?: number | undefined;
|
|
5568
|
+
}[];
|
|
5569
|
+
radius?: number | undefined;
|
|
5570
|
+
center?: [number, number] | undefined;
|
|
5571
|
+
} | {
|
|
5572
|
+
type: "pattern";
|
|
5573
|
+
shape: "lines" | "dots" | "grid";
|
|
5574
|
+
size?: number | undefined;
|
|
5575
|
+
color?: string | undefined;
|
|
5576
|
+
background?: string | undefined;
|
|
5577
|
+
lineWidth?: number | undefined;
|
|
5578
|
+
rotation?: number | undefined;
|
|
5579
|
+
} | {
|
|
5580
|
+
type: "image";
|
|
5581
|
+
href: string;
|
|
5582
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
5583
|
+
} | undefined;
|
|
4622
5584
|
color?: string | undefined;
|
|
5585
|
+
opacity?: number | undefined;
|
|
4623
5586
|
id?: string | undefined;
|
|
4624
5587
|
stroke?: string | undefined;
|
|
4625
5588
|
strokeWidth?: number | undefined;
|
|
@@ -4656,17 +5619,46 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4656
5619
|
y?: number | undefined;
|
|
4657
5620
|
})[] | undefined;
|
|
4658
5621
|
nodeDefault?: {
|
|
4659
|
-
fill?: string |
|
|
5622
|
+
fill?: string | {
|
|
5623
|
+
type: "linearGradient";
|
|
5624
|
+
stops: {
|
|
5625
|
+
offset: number;
|
|
5626
|
+
color: string;
|
|
5627
|
+
opacity?: number | undefined;
|
|
5628
|
+
}[];
|
|
5629
|
+
angle?: number | undefined;
|
|
5630
|
+
} | {
|
|
5631
|
+
type: "radialGradient";
|
|
5632
|
+
stops: {
|
|
5633
|
+
offset: number;
|
|
5634
|
+
color: string;
|
|
5635
|
+
opacity?: number | undefined;
|
|
5636
|
+
}[];
|
|
5637
|
+
radius?: number | undefined;
|
|
5638
|
+
center?: [number, number] | undefined;
|
|
5639
|
+
} | {
|
|
5640
|
+
type: "pattern";
|
|
5641
|
+
shape: "lines" | "dots" | "grid";
|
|
5642
|
+
size?: number | undefined;
|
|
5643
|
+
color?: string | undefined;
|
|
5644
|
+
background?: string | undefined;
|
|
5645
|
+
lineWidth?: number | undefined;
|
|
5646
|
+
rotation?: number | undefined;
|
|
5647
|
+
} | {
|
|
5648
|
+
type: "image";
|
|
5649
|
+
href: string;
|
|
5650
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
5651
|
+
} | undefined;
|
|
5652
|
+
color?: string | undefined;
|
|
4660
5653
|
opacity?: number | undefined;
|
|
5654
|
+
shape?: string | undefined;
|
|
4661
5655
|
font?: {
|
|
4662
5656
|
family?: string | undefined;
|
|
4663
5657
|
size?: number | undefined;
|
|
4664
5658
|
weight?: number | "normal" | "bold" | undefined;
|
|
4665
5659
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
4666
5660
|
} | undefined;
|
|
4667
|
-
shape?: string | undefined;
|
|
4668
5661
|
scale?: number | undefined;
|
|
4669
|
-
color?: string | undefined;
|
|
4670
5662
|
textColor?: string | undefined;
|
|
4671
5663
|
roundedCorners?: number | undefined;
|
|
4672
5664
|
stroke?: string | undefined;
|
|
@@ -4676,6 +5668,7 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4676
5668
|
rotate?: number | undefined;
|
|
4677
5669
|
align?: "left" | "right" | "center" | undefined;
|
|
4678
5670
|
lineHeight?: number | undefined;
|
|
5671
|
+
maxTextWidth?: number | undefined;
|
|
4679
5672
|
dashed?: boolean | undefined;
|
|
4680
5673
|
dotted?: boolean | undefined;
|
|
4681
5674
|
dashArray?: number[] | undefined;
|
|
@@ -4691,9 +5684,38 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4691
5684
|
margin?: number | undefined;
|
|
4692
5685
|
} | undefined;
|
|
4693
5686
|
pathDefault?: {
|
|
4694
|
-
fill?: string |
|
|
4695
|
-
|
|
5687
|
+
fill?: string | {
|
|
5688
|
+
type: "linearGradient";
|
|
5689
|
+
stops: {
|
|
5690
|
+
offset: number;
|
|
5691
|
+
color: string;
|
|
5692
|
+
opacity?: number | undefined;
|
|
5693
|
+
}[];
|
|
5694
|
+
angle?: number | undefined;
|
|
5695
|
+
} | {
|
|
5696
|
+
type: "radialGradient";
|
|
5697
|
+
stops: {
|
|
5698
|
+
offset: number;
|
|
5699
|
+
color: string;
|
|
5700
|
+
opacity?: number | undefined;
|
|
5701
|
+
}[];
|
|
5702
|
+
radius?: number | undefined;
|
|
5703
|
+
center?: [number, number] | undefined;
|
|
5704
|
+
} | {
|
|
5705
|
+
type: "pattern";
|
|
5706
|
+
shape: "lines" | "dots" | "grid";
|
|
5707
|
+
size?: number | undefined;
|
|
5708
|
+
color?: string | undefined;
|
|
5709
|
+
background?: string | undefined;
|
|
5710
|
+
lineWidth?: number | undefined;
|
|
5711
|
+
rotation?: number | undefined;
|
|
5712
|
+
} | {
|
|
5713
|
+
type: "image";
|
|
5714
|
+
href: string;
|
|
5715
|
+
fit?: "fill" | "contain" | "cover" | undefined;
|
|
5716
|
+
} | undefined;
|
|
4696
5717
|
color?: string | undefined;
|
|
5718
|
+
opacity?: number | undefined;
|
|
4697
5719
|
stroke?: string | undefined;
|
|
4698
5720
|
strokeWidth?: number | undefined;
|
|
4699
5721
|
dashPattern?: number[] | undefined;
|
|
@@ -4705,6 +5727,7 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4705
5727
|
drawOpacity?: number | undefined;
|
|
4706
5728
|
} | undefined;
|
|
4707
5729
|
labelDefault?: {
|
|
5730
|
+
color?: string | undefined;
|
|
4708
5731
|
opacity?: number | undefined;
|
|
4709
5732
|
font?: {
|
|
4710
5733
|
family?: string | undefined;
|
|
@@ -4712,37 +5735,36 @@ export declare const ScopeSchema: z.ZodObject<{
|
|
|
4712
5735
|
weight?: number | "normal" | "bold" | undefined;
|
|
4713
5736
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
4714
5737
|
} | undefined;
|
|
4715
|
-
color?: string | undefined;
|
|
4716
5738
|
textColor?: string | undefined;
|
|
4717
5739
|
} | undefined;
|
|
4718
5740
|
arrowDefault?: {
|
|
4719
5741
|
length?: number | undefined;
|
|
4720
5742
|
fill?: string | undefined;
|
|
5743
|
+
color?: string | undefined;
|
|
4721
5744
|
opacity?: number | undefined;
|
|
4722
5745
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5746
|
+
lineWidth?: number | undefined;
|
|
4723
5747
|
scale?: number | undefined;
|
|
4724
5748
|
width?: number | undefined;
|
|
4725
|
-
color?: string | undefined;
|
|
4726
|
-
lineWidth?: number | undefined;
|
|
4727
5749
|
start?: {
|
|
4728
5750
|
length?: number | undefined;
|
|
4729
5751
|
fill?: string | undefined;
|
|
5752
|
+
color?: string | undefined;
|
|
4730
5753
|
opacity?: number | undefined;
|
|
4731
5754
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5755
|
+
lineWidth?: number | undefined;
|
|
4732
5756
|
scale?: number | undefined;
|
|
4733
5757
|
width?: number | undefined;
|
|
4734
|
-
color?: string | undefined;
|
|
4735
|
-
lineWidth?: number | undefined;
|
|
4736
5758
|
} | undefined;
|
|
4737
5759
|
end?: {
|
|
4738
5760
|
length?: number | undefined;
|
|
4739
5761
|
fill?: string | undefined;
|
|
5762
|
+
color?: string | undefined;
|
|
4740
5763
|
opacity?: number | undefined;
|
|
4741
5764
|
shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
|
|
5765
|
+
lineWidth?: number | undefined;
|
|
4742
5766
|
scale?: number | undefined;
|
|
4743
5767
|
width?: number | undefined;
|
|
4744
|
-
color?: string | undefined;
|
|
4745
|
-
lineWidth?: number | undefined;
|
|
4746
5768
|
} | undefined;
|
|
4747
5769
|
} | undefined;
|
|
4748
5770
|
resetStyle?: boolean | ("path" | "label" | "arrow" | "node")[] | undefined;
|