@visactor/vseed 0.0.11 → 0.0.13
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/builder/builder/builder.d.ts +4339 -477
- package/dist/builder/register/theme.d.ts +4 -1
- package/dist/dataSelector/selector.d.ts +1 -1
- package/dist/i18n/i18n.d.ts +17 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/index.cjs +1064 -190
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1015 -183
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/config/config.d.ts +3 -3
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
- package/dist/pipeline/constant.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/horizontalCrosshairRect.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/index.d.ts +3 -0
- package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairRect.d.ts +2 -0
- package/dist/pipeline/spec/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/markStyle/areaStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/markStyle/index.d.ts +3 -0
- package/dist/pipeline/spec/pipes/markStyle/lineStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/markStyle/pointStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/stack/stackCornerRadius.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +16 -16
- package/dist/pipeline/utils/format/createFormatter.d.ts +3 -0
- package/dist/pipeline/utils/format/createNumFormatter.d.ts +3 -0
- package/dist/pipeline/utils/format/index.d.ts +2 -0
- package/dist/pipeline/utils/index.d.ts +4 -2
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +2 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +2445 -320
- package/dist/types/chartType/area/area.d.ts +40 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +43 -4
- package/dist/types/chartType/bar/bar.d.ts +20 -2
- package/dist/types/chartType/barParallel/barParallel.d.ts +20 -2
- package/dist/types/chartType/barPercent/barPercent.d.ts +20 -2
- package/dist/types/chartType/column/column.d.ts +20 -2
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +20 -2
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +20 -2
- package/dist/types/chartType/donut/donut.d.ts +7 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +7 -0
- package/dist/types/chartType/line/line.d.ts +34 -4
- package/dist/types/chartType/pie/pie.d.ts +7 -0
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +7 -0
- package/dist/types/chartType/rose/rose.d.ts +7 -0
- package/dist/types/chartType/table/table.d.ts +7 -0
- package/dist/types/i18n/i18n.d.ts +9 -0
- package/dist/types/i18n/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/properties/config/config.d.ts +105 -36
- package/dist/types/properties/config/crosshair.d.ts +17 -0
- package/dist/types/properties/config/index.d.ts +2 -0
- package/dist/types/properties/config/stackCornerRadius.d.ts +3 -0
- package/dist/types/properties/markStyle/areaStyle.d.ts +129 -0
- package/dist/types/properties/markStyle/index.d.ts +3 -0
- package/dist/types/properties/markStyle/lineStyle.d.ts +160 -0
- package/dist/types/properties/markStyle/markStyle.d.ts +543 -2
- package/dist/types/properties/markStyle/pointStyle.d.ts +168 -0
- package/dist/types/properties/measures/format/formatter.d.ts +1 -0
- package/dist/types/properties/measures/format/index.d.ts +2 -0
- package/dist/types/properties/measures/format/numFormat.d.ts +20 -0
- package/dist/types/properties/measures/index.d.ts +2 -2
- package/dist/types/properties/measures/measures.d.ts +40 -40
- package/dist/types/properties/theme/customTheme.d.ts +3094 -72
- package/dist/types/vseed.d.ts +29 -25
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const zConfig: z.ZodObject<{
|
|
3
3
|
line: z.ZodOptional<z.ZodObject<{
|
|
4
|
-
xAxis: z.ZodObject<{
|
|
4
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
5
5
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
6
6
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
7
7
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -39,8 +39,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
39
39
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
40
40
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
41
41
|
}, z.core.$strip>>;
|
|
42
|
-
}, z.core.$strip
|
|
43
|
-
yAxis: z.ZodObject<{
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
44
44
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
45
45
|
min: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -77,10 +77,17 @@ export declare const zConfig: z.ZodObject<{
|
|
|
77
77
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
78
78
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
79
79
|
}, z.core.$strip>>;
|
|
80
|
-
}, z.core.$strip
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
crosshairLine: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
lineColor: z.ZodOptional<z.ZodString>;
|
|
84
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
85
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
81
88
|
}, z.core.$strip>>;
|
|
82
89
|
column: z.ZodOptional<z.ZodObject<{
|
|
83
|
-
xAxis: z.ZodObject<{
|
|
90
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
84
91
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
85
92
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
86
93
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -118,8 +125,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
118
125
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
119
126
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
120
127
|
}, z.core.$strip>>;
|
|
121
|
-
}, z.core.$strip
|
|
122
|
-
yAxis: z.ZodObject<{
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
123
130
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
124
131
|
min: z.ZodOptional<z.ZodNumber>;
|
|
125
132
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -156,10 +163,18 @@ export declare const zConfig: z.ZodObject<{
|
|
|
156
163
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
157
164
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
158
165
|
}, z.core.$strip>>;
|
|
159
|
-
}, z.core.$strip
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
crosshairRect: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
rectColor: z.ZodOptional<z.ZodString>;
|
|
170
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
171
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
stackCornerRadius: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
160
175
|
}, z.core.$strip>>;
|
|
161
176
|
columnParallel: z.ZodOptional<z.ZodObject<{
|
|
162
|
-
xAxis: z.ZodObject<{
|
|
177
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
163
178
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
164
179
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
165
180
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -197,8 +212,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
197
212
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
198
213
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
199
214
|
}, z.core.$strip>>;
|
|
200
|
-
}, z.core.$strip
|
|
201
|
-
yAxis: z.ZodObject<{
|
|
215
|
+
}, z.core.$strip>>;
|
|
216
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
202
217
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
203
218
|
min: z.ZodOptional<z.ZodNumber>;
|
|
204
219
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -235,10 +250,18 @@ export declare const zConfig: z.ZodObject<{
|
|
|
235
250
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
236
251
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
237
252
|
}, z.core.$strip>>;
|
|
238
|
-
}, z.core.$strip
|
|
253
|
+
}, z.core.$strip>>;
|
|
254
|
+
crosshairRect: z.ZodOptional<z.ZodObject<{
|
|
255
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
+
rectColor: z.ZodOptional<z.ZodString>;
|
|
257
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
258
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
stackCornerRadius: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
239
262
|
}, z.core.$strip>>;
|
|
240
263
|
columnPercent: z.ZodOptional<z.ZodObject<{
|
|
241
|
-
xAxis: z.ZodObject<{
|
|
264
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
242
265
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
243
266
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
244
267
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -276,8 +299,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
276
299
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
277
300
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
278
301
|
}, z.core.$strip>>;
|
|
279
|
-
}, z.core.$strip
|
|
280
|
-
yAxis: z.ZodObject<{
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
281
304
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
282
305
|
min: z.ZodOptional<z.ZodNumber>;
|
|
283
306
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -314,10 +337,18 @@ export declare const zConfig: z.ZodObject<{
|
|
|
314
337
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
315
338
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
316
339
|
}, z.core.$strip>>;
|
|
317
|
-
}, z.core.$strip
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
crosshairRect: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
+
rectColor: z.ZodOptional<z.ZodString>;
|
|
344
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
345
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, z.core.$strip>>;
|
|
348
|
+
stackCornerRadius: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
318
349
|
}, z.core.$strip>>;
|
|
319
350
|
bar: z.ZodOptional<z.ZodObject<{
|
|
320
|
-
xAxis: z.ZodObject<{
|
|
351
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
321
352
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
322
353
|
min: z.ZodOptional<z.ZodNumber>;
|
|
323
354
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -354,8 +385,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
354
385
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
355
386
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
356
387
|
}, z.core.$strip>>;
|
|
357
|
-
}, z.core.$strip
|
|
358
|
-
yAxis: z.ZodObject<{
|
|
388
|
+
}, z.core.$strip>>;
|
|
389
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
359
390
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
360
391
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
361
392
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -393,10 +424,18 @@ export declare const zConfig: z.ZodObject<{
|
|
|
393
424
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
394
425
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
395
426
|
}, z.core.$strip>>;
|
|
396
|
-
}, z.core.$strip
|
|
427
|
+
}, z.core.$strip>>;
|
|
428
|
+
crosshairRect: z.ZodOptional<z.ZodObject<{
|
|
429
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
+
rectColor: z.ZodOptional<z.ZodString>;
|
|
431
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
432
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
433
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
434
|
+
}, z.core.$strip>>;
|
|
435
|
+
stackCornerRadius: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
397
436
|
}, z.core.$strip>>;
|
|
398
437
|
barParallel: z.ZodOptional<z.ZodObject<{
|
|
399
|
-
xAxis: z.ZodObject<{
|
|
438
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
400
439
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
401
440
|
min: z.ZodOptional<z.ZodNumber>;
|
|
402
441
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -433,8 +472,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
433
472
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
434
473
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
435
474
|
}, z.core.$strip>>;
|
|
436
|
-
}, z.core.$strip
|
|
437
|
-
yAxis: z.ZodObject<{
|
|
475
|
+
}, z.core.$strip>>;
|
|
476
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
438
477
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
439
478
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
440
479
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -472,10 +511,18 @@ export declare const zConfig: z.ZodObject<{
|
|
|
472
511
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
473
512
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
474
513
|
}, z.core.$strip>>;
|
|
475
|
-
}, z.core.$strip
|
|
514
|
+
}, z.core.$strip>>;
|
|
515
|
+
crosshairRect: z.ZodOptional<z.ZodObject<{
|
|
516
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
rectColor: z.ZodOptional<z.ZodString>;
|
|
518
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
519
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
520
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
521
|
+
}, z.core.$strip>>;
|
|
522
|
+
stackCornerRadius: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
476
523
|
}, z.core.$strip>>;
|
|
477
524
|
barPercent: z.ZodOptional<z.ZodObject<{
|
|
478
|
-
xAxis: z.ZodObject<{
|
|
525
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
479
526
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
480
527
|
min: z.ZodOptional<z.ZodNumber>;
|
|
481
528
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -512,8 +559,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
512
559
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
513
560
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
514
561
|
}, z.core.$strip>>;
|
|
515
|
-
}, z.core.$strip
|
|
516
|
-
yAxis: z.ZodObject<{
|
|
562
|
+
}, z.core.$strip>>;
|
|
563
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
517
564
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
518
565
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
519
566
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -551,10 +598,18 @@ export declare const zConfig: z.ZodObject<{
|
|
|
551
598
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
552
599
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
553
600
|
}, z.core.$strip>>;
|
|
554
|
-
}, z.core.$strip
|
|
601
|
+
}, z.core.$strip>>;
|
|
602
|
+
crosshairRect: z.ZodOptional<z.ZodObject<{
|
|
603
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
604
|
+
rectColor: z.ZodOptional<z.ZodString>;
|
|
605
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
606
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
607
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
608
|
+
}, z.core.$strip>>;
|
|
609
|
+
stackCornerRadius: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
555
610
|
}, z.core.$strip>>;
|
|
556
611
|
area: z.ZodOptional<z.ZodObject<{
|
|
557
|
-
xAxis: z.ZodObject<{
|
|
612
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
558
613
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
559
614
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
560
615
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -592,8 +647,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
592
647
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
593
648
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
594
649
|
}, z.core.$strip>>;
|
|
595
|
-
}, z.core.$strip
|
|
596
|
-
yAxis: z.ZodObject<{
|
|
650
|
+
}, z.core.$strip>>;
|
|
651
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
597
652
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
598
653
|
min: z.ZodOptional<z.ZodNumber>;
|
|
599
654
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -630,10 +685,17 @@ export declare const zConfig: z.ZodObject<{
|
|
|
630
685
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
631
686
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
632
687
|
}, z.core.$strip>>;
|
|
633
|
-
}, z.core.$strip
|
|
688
|
+
}, z.core.$strip>>;
|
|
689
|
+
crosshairLine: z.ZodOptional<z.ZodObject<{
|
|
690
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
691
|
+
lineColor: z.ZodOptional<z.ZodString>;
|
|
692
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
693
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
694
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
695
|
+
}, z.core.$strip>>;
|
|
634
696
|
}, z.core.$strip>>;
|
|
635
697
|
areaPercent: z.ZodOptional<z.ZodObject<{
|
|
636
|
-
xAxis: z.ZodObject<{
|
|
698
|
+
xAxis: z.ZodOptional<z.ZodObject<{
|
|
637
699
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
638
700
|
labelAutoHide: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
639
701
|
labelAutoHideGap: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -671,8 +733,8 @@ export declare const zConfig: z.ZodObject<{
|
|
|
671
733
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
672
734
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
673
735
|
}, z.core.$strip>>;
|
|
674
|
-
}, z.core.$strip
|
|
675
|
-
yAxis: z.ZodObject<{
|
|
736
|
+
}, z.core.$strip>>;
|
|
737
|
+
yAxis: z.ZodOptional<z.ZodObject<{
|
|
676
738
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
677
739
|
min: z.ZodOptional<z.ZodNumber>;
|
|
678
740
|
max: z.ZodOptional<z.ZodNumber>;
|
|
@@ -709,7 +771,14 @@ export declare const zConfig: z.ZodObject<{
|
|
|
709
771
|
gridColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
710
772
|
gridWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
711
773
|
}, z.core.$strip>>;
|
|
712
|
-
}, z.core.$strip
|
|
774
|
+
}, z.core.$strip>>;
|
|
775
|
+
crosshairLine: z.ZodOptional<z.ZodObject<{
|
|
776
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
777
|
+
lineColor: z.ZodOptional<z.ZodString>;
|
|
778
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
779
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
780
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
781
|
+
}, z.core.$strip>>;
|
|
713
782
|
}, z.core.$strip>>;
|
|
714
783
|
pie: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
715
784
|
donut: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const zCrosshairLine: z.ZodObject<{
|
|
3
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
lineColor: z.ZodOptional<z.ZodString>;
|
|
5
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type CrosshairLine = z.infer<typeof zCrosshairLine>;
|
|
10
|
+
export declare const zCrosshairRect: z.ZodObject<{
|
|
11
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
rectColor: z.ZodOptional<z.ZodString>;
|
|
13
|
+
labelColor: z.ZodOptional<z.ZodString>;
|
|
14
|
+
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type CrosshairRect = z.infer<typeof zCrosshairLine>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type Selector, type Selectors } from '../../dataSelector';
|
|
3
|
+
export type AreaStyle = {
|
|
4
|
+
/**
|
|
5
|
+
* 数据选择器
|
|
6
|
+
* @description
|
|
7
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
|
8
|
+
* 若未配置selector, 则样式全局生效.
|
|
9
|
+
* @type {Selector | Selectors}
|
|
10
|
+
* @example 数值选择器
|
|
11
|
+
* selector = "tool"
|
|
12
|
+
* selector = ["tool", "book"]
|
|
13
|
+
* selector = 100
|
|
14
|
+
* selector = [100, 200]
|
|
15
|
+
* @example 局部数据选择器
|
|
16
|
+
* selector = { profit: 100 }
|
|
17
|
+
* selector = [{ profit: 100 }, { profit: 200 }]
|
|
18
|
+
* @example 条件维度选择器
|
|
19
|
+
* selector = {
|
|
20
|
+
* field: 'category',
|
|
21
|
+
* operator: 'in',
|
|
22
|
+
* value: 'tool'
|
|
23
|
+
* }
|
|
24
|
+
* selector = {
|
|
25
|
+
* field: 'category',
|
|
26
|
+
* operator: 'not in',
|
|
27
|
+
* value: 'book'
|
|
28
|
+
* }
|
|
29
|
+
* @example 条件指标选择器
|
|
30
|
+
* selector = {
|
|
31
|
+
* field: 'profit',
|
|
32
|
+
* operator: '>=',
|
|
33
|
+
* value: 100
|
|
34
|
+
* }
|
|
35
|
+
* selector = {
|
|
36
|
+
* field: 'profit',
|
|
37
|
+
* operator: 'between'
|
|
38
|
+
* value: [100, 300]
|
|
39
|
+
* }
|
|
40
|
+
*/
|
|
41
|
+
selector?: Selector | Selectors;
|
|
42
|
+
/**
|
|
43
|
+
* 面积图元的颜色
|
|
44
|
+
* @description 面积图元的颜色
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @default {undefined} follow series color
|
|
47
|
+
*/
|
|
48
|
+
areaColor?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 面积图元的颜色透明度
|
|
51
|
+
* @description 面积图元的颜色透明度
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @default 1
|
|
54
|
+
*/
|
|
55
|
+
areaColorOpacity?: number;
|
|
56
|
+
};
|
|
57
|
+
export declare const zAreaStyle: z.ZodObject<{
|
|
58
|
+
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
59
|
+
field: z.ZodString;
|
|
60
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
"=": "=";
|
|
62
|
+
"==": "==";
|
|
63
|
+
"!=": "!=";
|
|
64
|
+
">": ">";
|
|
65
|
+
"<": "<";
|
|
66
|
+
">=": ">=";
|
|
67
|
+
"<=": "<=";
|
|
68
|
+
between: "between";
|
|
69
|
+
}>>;
|
|
70
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
"=": "=";
|
|
72
|
+
"==": "==";
|
|
73
|
+
"!=": "!=";
|
|
74
|
+
">": ">";
|
|
75
|
+
"<": "<";
|
|
76
|
+
">=": ">=";
|
|
77
|
+
"<=": "<=";
|
|
78
|
+
between: "between";
|
|
79
|
+
}>>;
|
|
80
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
field: z.ZodString;
|
|
83
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
in: "in";
|
|
85
|
+
"not in": "not in";
|
|
86
|
+
}>>;
|
|
87
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
in: "in";
|
|
89
|
+
"not in": "not in";
|
|
90
|
+
}>>;
|
|
91
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
92
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
93
|
+
field: z.ZodString;
|
|
94
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
"=": "=";
|
|
96
|
+
"==": "==";
|
|
97
|
+
"!=": "!=";
|
|
98
|
+
">": ">";
|
|
99
|
+
"<": "<";
|
|
100
|
+
">=": ">=";
|
|
101
|
+
"<=": "<=";
|
|
102
|
+
between: "between";
|
|
103
|
+
}>>;
|
|
104
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
105
|
+
"=": "=";
|
|
106
|
+
"==": "==";
|
|
107
|
+
"!=": "!=";
|
|
108
|
+
">": ">";
|
|
109
|
+
"<": "<";
|
|
110
|
+
">=": ">=";
|
|
111
|
+
"<=": "<=";
|
|
112
|
+
between: "between";
|
|
113
|
+
}>>;
|
|
114
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
+
field: z.ZodString;
|
|
117
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
in: "in";
|
|
119
|
+
"not in": "not in";
|
|
120
|
+
}>>;
|
|
121
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
122
|
+
in: "in";
|
|
123
|
+
"not in": "not in";
|
|
124
|
+
}>>;
|
|
125
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
126
|
+
}, z.core.$strip>]>>]>>;
|
|
127
|
+
areaColor: z.ZodOptional<z.ZodString>;
|
|
128
|
+
areaColorOpacity: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type Selector, type Selectors } from '../../dataSelector';
|
|
3
|
+
export type LineStyle = {
|
|
4
|
+
/**
|
|
5
|
+
* 数据选择器
|
|
6
|
+
* @description
|
|
7
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
|
8
|
+
* 若未配置selector, 则样式全局生效.
|
|
9
|
+
* @type {Selector | Selectors}
|
|
10
|
+
* @example 数值选择器
|
|
11
|
+
* selector = "tool"
|
|
12
|
+
* selector = ["tool", "book"]
|
|
13
|
+
* selector = 100
|
|
14
|
+
* selector = [100, 200]
|
|
15
|
+
* @example 局部数据选择器
|
|
16
|
+
* selector = { profit: 100 }
|
|
17
|
+
* selector = [{ profit: 100 }, { profit: 200 }]
|
|
18
|
+
* @example 条件维度选择器
|
|
19
|
+
* selector = {
|
|
20
|
+
* field: 'category',
|
|
21
|
+
* operator: 'in',
|
|
22
|
+
* value: 'tool'
|
|
23
|
+
* }
|
|
24
|
+
* selector = {
|
|
25
|
+
* field: 'category',
|
|
26
|
+
* operator: 'not in',
|
|
27
|
+
* value: 'book'
|
|
28
|
+
* }
|
|
29
|
+
* @example 条件指标选择器
|
|
30
|
+
* selector = {
|
|
31
|
+
* field: 'profit',
|
|
32
|
+
* operator: '>=',
|
|
33
|
+
* value: 100
|
|
34
|
+
* }
|
|
35
|
+
* selector = {
|
|
36
|
+
* field: 'profit',
|
|
37
|
+
* operator: 'between'
|
|
38
|
+
* value: [100, 300]
|
|
39
|
+
* }
|
|
40
|
+
*/
|
|
41
|
+
selector?: Selector | Selectors;
|
|
42
|
+
/**
|
|
43
|
+
* 折线图是否平滑
|
|
44
|
+
* @description 折线图是否平滑
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
lineSmooth?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* 柱状图颜色
|
|
51
|
+
* @description 柱状图颜色
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @default {undefined} follow series color
|
|
54
|
+
*/
|
|
55
|
+
lineColor?: string;
|
|
56
|
+
/**
|
|
57
|
+
* 柱状图颜色透明度
|
|
58
|
+
* @description 柱状图颜色透明度
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @default 1
|
|
61
|
+
*/
|
|
62
|
+
lineColorOpacity?: number;
|
|
63
|
+
/**
|
|
64
|
+
* 柱状图边框宽度
|
|
65
|
+
* @description 柱状图边框宽度
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @default 1
|
|
68
|
+
*/
|
|
69
|
+
lineWidth?: number;
|
|
70
|
+
/**
|
|
71
|
+
* 柱状图边框样式
|
|
72
|
+
* @description 柱状图边框样式
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @default solid
|
|
75
|
+
* @example solid
|
|
76
|
+
* @example dashed
|
|
77
|
+
* @example dotted
|
|
78
|
+
*/
|
|
79
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
80
|
+
};
|
|
81
|
+
export declare const zLineStyle: z.ZodObject<{
|
|
82
|
+
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
83
|
+
field: z.ZodString;
|
|
84
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
85
|
+
"=": "=";
|
|
86
|
+
"==": "==";
|
|
87
|
+
"!=": "!=";
|
|
88
|
+
">": ">";
|
|
89
|
+
"<": "<";
|
|
90
|
+
">=": ">=";
|
|
91
|
+
"<=": "<=";
|
|
92
|
+
between: "between";
|
|
93
|
+
}>>;
|
|
94
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
"=": "=";
|
|
96
|
+
"==": "==";
|
|
97
|
+
"!=": "!=";
|
|
98
|
+
">": ">";
|
|
99
|
+
"<": "<";
|
|
100
|
+
">=": ">=";
|
|
101
|
+
"<=": "<=";
|
|
102
|
+
between: "between";
|
|
103
|
+
}>>;
|
|
104
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
field: z.ZodString;
|
|
107
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
108
|
+
in: "in";
|
|
109
|
+
"not in": "not in";
|
|
110
|
+
}>>;
|
|
111
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
112
|
+
in: "in";
|
|
113
|
+
"not in": "not in";
|
|
114
|
+
}>>;
|
|
115
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
116
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
117
|
+
field: z.ZodString;
|
|
118
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
119
|
+
"=": "=";
|
|
120
|
+
"==": "==";
|
|
121
|
+
"!=": "!=";
|
|
122
|
+
">": ">";
|
|
123
|
+
"<": "<";
|
|
124
|
+
">=": ">=";
|
|
125
|
+
"<=": "<=";
|
|
126
|
+
between: "between";
|
|
127
|
+
}>>;
|
|
128
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
129
|
+
"=": "=";
|
|
130
|
+
"==": "==";
|
|
131
|
+
"!=": "!=";
|
|
132
|
+
">": ">";
|
|
133
|
+
"<": "<";
|
|
134
|
+
">=": ">=";
|
|
135
|
+
"<=": "<=";
|
|
136
|
+
between: "between";
|
|
137
|
+
}>>;
|
|
138
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
field: z.ZodString;
|
|
141
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
142
|
+
in: "in";
|
|
143
|
+
"not in": "not in";
|
|
144
|
+
}>>;
|
|
145
|
+
op: z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
in: "in";
|
|
147
|
+
"not in": "not in";
|
|
148
|
+
}>>;
|
|
149
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
150
|
+
}, z.core.$strip>]>>]>>;
|
|
151
|
+
lineSmooth: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
152
|
+
lineColor: z.ZodOptional<z.ZodString>;
|
|
153
|
+
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
lineWidth: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
lineStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
156
|
+
solid: "solid";
|
|
157
|
+
dashed: "dashed";
|
|
158
|
+
dotted: "dotted";
|
|
159
|
+
}>]>>;
|
|
160
|
+
}, z.core.$strip>;
|