@visactor/vseed 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/builder/builder.d.ts +4 -2
- package/dist/dataReshape/foldMeasures.d.ts +2 -2
- package/dist/index.cjs +520 -370
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +533 -383
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +1 -0
- package/dist/pipeline/advanced/chart/pipes/init/utils.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/measures/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +16 -5
- package/dist/types/chartType/area/zArea.d.ts +16 -5
- package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +16 -5
- package/dist/types/chartType/bar/zBar.d.ts +16 -5
- package/dist/types/chartType/barParallel/zBarParallel.d.ts +16 -5
- package/dist/types/chartType/barPercent/zBarPercent.d.ts +16 -5
- package/dist/types/chartType/column/zColumn.d.ts +16 -5
- package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +16 -5
- package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +16 -5
- package/dist/types/chartType/donut/zDonut.d.ts +16 -5
- package/dist/types/chartType/dualAxis/zDualAxis.d.ts +36 -25
- package/dist/types/chartType/funnel/zFunnel.d.ts +16 -5
- package/dist/types/chartType/heatmap/zHeatmap.d.ts +16 -5
- package/dist/types/chartType/line/zLine.d.ts +16 -5
- package/dist/types/chartType/pie/zPie.d.ts +16 -5
- package/dist/types/chartType/pivotTable/zPivotTable.d.ts +16 -5
- package/dist/types/chartType/radar/zRadar.d.ts +16 -5
- package/dist/types/chartType/rose/zRose.d.ts +16 -5
- package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +16 -5
- package/dist/types/chartType/scatter/zScatter.d.ts +36 -25
- package/dist/types/chartType/table/zTable.d.ts +16 -5
- package/dist/types/properties/dimensions/dimensions.d.ts +16 -0
- package/dist/types/properties/dimensions/zDimensions.d.ts +33 -0
- package/dist/types/properties/measures/zDualMeasures.d.ts +40 -40
- package/dist/types/properties/measures/zMeasures.d.ts +15 -15
- package/dist/types/properties/measures/zScatterMeasures.d.ts +40 -40
- package/dist/types/zVseed.d.ts +360 -140
- package/dist/umd/index.js +534 -370
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,17 @@ export declare const zPie: z.ZodObject<{
|
|
|
24
24
|
rowDimension: "rowDimension";
|
|
25
25
|
columnDimension: "columnDimension";
|
|
26
26
|
}>>;
|
|
27
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
column: "column";
|
|
29
|
+
xAxis: "xAxis";
|
|
30
|
+
yAxis: "yAxis";
|
|
31
|
+
angle: "angle";
|
|
32
|
+
color: "color";
|
|
33
|
+
detail: "detail";
|
|
34
|
+
tooltip: "tooltip";
|
|
35
|
+
label: "label";
|
|
36
|
+
row: "row";
|
|
37
|
+
}>>;
|
|
27
38
|
}, z.core.$strip>>>>;
|
|
28
39
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
29
40
|
id: z.ZodString;
|
|
@@ -60,16 +71,16 @@ export declare const zPie: z.ZodObject<{
|
|
|
60
71
|
}>>>;
|
|
61
72
|
}, z.core.$strip>>>;
|
|
62
73
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
primaryYAxis: "primaryYAxis";
|
|
64
|
-
secondaryYAxis: "secondaryYAxis";
|
|
65
74
|
xAxis: "xAxis";
|
|
66
75
|
yAxis: "yAxis";
|
|
67
76
|
angle: "angle";
|
|
68
|
-
radius: "radius";
|
|
69
|
-
size: "size";
|
|
70
77
|
color: "color";
|
|
71
|
-
label: "label";
|
|
72
78
|
tooltip: "tooltip";
|
|
79
|
+
label: "label";
|
|
80
|
+
primaryYAxis: "primaryYAxis";
|
|
81
|
+
secondaryYAxis: "secondaryYAxis";
|
|
82
|
+
radius: "radius";
|
|
83
|
+
size: "size";
|
|
73
84
|
}>>;
|
|
74
85
|
parentId: z.ZodOptional<z.ZodString>;
|
|
75
86
|
}, z.core.$strip>]>>>>;
|
|
@@ -10,6 +10,17 @@ export declare const zPivotTable: z.ZodObject<{
|
|
|
10
10
|
rowDimension: "rowDimension";
|
|
11
11
|
columnDimension: "columnDimension";
|
|
12
12
|
}>>;
|
|
13
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
column: "column";
|
|
15
|
+
xAxis: "xAxis";
|
|
16
|
+
yAxis: "yAxis";
|
|
17
|
+
angle: "angle";
|
|
18
|
+
color: "color";
|
|
19
|
+
detail: "detail";
|
|
20
|
+
tooltip: "tooltip";
|
|
21
|
+
label: "label";
|
|
22
|
+
row: "row";
|
|
23
|
+
}>>;
|
|
13
24
|
}, z.core.$strip>>>>;
|
|
14
25
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
15
26
|
id: z.ZodString;
|
|
@@ -46,16 +57,16 @@ export declare const zPivotTable: z.ZodObject<{
|
|
|
46
57
|
}>>>;
|
|
47
58
|
}, z.core.$strip>>>;
|
|
48
59
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
49
|
-
primaryYAxis: "primaryYAxis";
|
|
50
|
-
secondaryYAxis: "secondaryYAxis";
|
|
51
60
|
xAxis: "xAxis";
|
|
52
61
|
yAxis: "yAxis";
|
|
53
62
|
angle: "angle";
|
|
54
|
-
radius: "radius";
|
|
55
|
-
size: "size";
|
|
56
63
|
color: "color";
|
|
57
|
-
label: "label";
|
|
58
64
|
tooltip: "tooltip";
|
|
65
|
+
label: "label";
|
|
66
|
+
primaryYAxis: "primaryYAxis";
|
|
67
|
+
secondaryYAxis: "secondaryYAxis";
|
|
68
|
+
radius: "radius";
|
|
69
|
+
size: "size";
|
|
59
70
|
}>>;
|
|
60
71
|
parentId: z.ZodOptional<z.ZodString>;
|
|
61
72
|
}, z.core.$strip>>>>;
|
|
@@ -24,6 +24,17 @@ export declare const zRadar: z.ZodObject<{
|
|
|
24
24
|
rowDimension: "rowDimension";
|
|
25
25
|
columnDimension: "columnDimension";
|
|
26
26
|
}>>;
|
|
27
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
column: "column";
|
|
29
|
+
xAxis: "xAxis";
|
|
30
|
+
yAxis: "yAxis";
|
|
31
|
+
angle: "angle";
|
|
32
|
+
color: "color";
|
|
33
|
+
detail: "detail";
|
|
34
|
+
tooltip: "tooltip";
|
|
35
|
+
label: "label";
|
|
36
|
+
row: "row";
|
|
37
|
+
}>>;
|
|
27
38
|
}, z.core.$strip>>>>;
|
|
28
39
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
29
40
|
id: z.ZodString;
|
|
@@ -60,16 +71,16 @@ export declare const zRadar: z.ZodObject<{
|
|
|
60
71
|
}>>>;
|
|
61
72
|
}, z.core.$strip>>>;
|
|
62
73
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
primaryYAxis: "primaryYAxis";
|
|
64
|
-
secondaryYAxis: "secondaryYAxis";
|
|
65
74
|
xAxis: "xAxis";
|
|
66
75
|
yAxis: "yAxis";
|
|
67
76
|
angle: "angle";
|
|
68
|
-
radius: "radius";
|
|
69
|
-
size: "size";
|
|
70
77
|
color: "color";
|
|
71
|
-
label: "label";
|
|
72
78
|
tooltip: "tooltip";
|
|
79
|
+
label: "label";
|
|
80
|
+
primaryYAxis: "primaryYAxis";
|
|
81
|
+
secondaryYAxis: "secondaryYAxis";
|
|
82
|
+
radius: "radius";
|
|
83
|
+
size: "size";
|
|
73
84
|
}>>;
|
|
74
85
|
parentId: z.ZodOptional<z.ZodString>;
|
|
75
86
|
}, z.core.$strip>]>>>>;
|
|
@@ -24,6 +24,17 @@ export declare const zRose: z.ZodObject<{
|
|
|
24
24
|
rowDimension: "rowDimension";
|
|
25
25
|
columnDimension: "columnDimension";
|
|
26
26
|
}>>;
|
|
27
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
column: "column";
|
|
29
|
+
xAxis: "xAxis";
|
|
30
|
+
yAxis: "yAxis";
|
|
31
|
+
angle: "angle";
|
|
32
|
+
color: "color";
|
|
33
|
+
detail: "detail";
|
|
34
|
+
tooltip: "tooltip";
|
|
35
|
+
label: "label";
|
|
36
|
+
row: "row";
|
|
37
|
+
}>>;
|
|
27
38
|
}, z.core.$strip>>>>;
|
|
28
39
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
29
40
|
id: z.ZodString;
|
|
@@ -60,16 +71,16 @@ export declare const zRose: z.ZodObject<{
|
|
|
60
71
|
}>>>;
|
|
61
72
|
}, z.core.$strip>>>;
|
|
62
73
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
primaryYAxis: "primaryYAxis";
|
|
64
|
-
secondaryYAxis: "secondaryYAxis";
|
|
65
74
|
xAxis: "xAxis";
|
|
66
75
|
yAxis: "yAxis";
|
|
67
76
|
angle: "angle";
|
|
68
|
-
radius: "radius";
|
|
69
|
-
size: "size";
|
|
70
77
|
color: "color";
|
|
71
|
-
label: "label";
|
|
72
78
|
tooltip: "tooltip";
|
|
79
|
+
label: "label";
|
|
80
|
+
primaryYAxis: "primaryYAxis";
|
|
81
|
+
secondaryYAxis: "secondaryYAxis";
|
|
82
|
+
radius: "radius";
|
|
83
|
+
size: "size";
|
|
73
84
|
}>>;
|
|
74
85
|
parentId: z.ZodOptional<z.ZodString>;
|
|
75
86
|
}, z.core.$strip>]>>>>;
|
|
@@ -24,6 +24,17 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
|
24
24
|
rowDimension: "rowDimension";
|
|
25
25
|
columnDimension: "columnDimension";
|
|
26
26
|
}>>;
|
|
27
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
column: "column";
|
|
29
|
+
xAxis: "xAxis";
|
|
30
|
+
yAxis: "yAxis";
|
|
31
|
+
angle: "angle";
|
|
32
|
+
color: "color";
|
|
33
|
+
detail: "detail";
|
|
34
|
+
tooltip: "tooltip";
|
|
35
|
+
label: "label";
|
|
36
|
+
row: "row";
|
|
37
|
+
}>>;
|
|
27
38
|
}, z.core.$strip>>>>;
|
|
28
39
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
29
40
|
id: z.ZodString;
|
|
@@ -60,16 +71,16 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
|
60
71
|
}>>>;
|
|
61
72
|
}, z.core.$strip>>>;
|
|
62
73
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
primaryYAxis: "primaryYAxis";
|
|
64
|
-
secondaryYAxis: "secondaryYAxis";
|
|
65
74
|
xAxis: "xAxis";
|
|
66
75
|
yAxis: "yAxis";
|
|
67
76
|
angle: "angle";
|
|
68
|
-
radius: "radius";
|
|
69
|
-
size: "size";
|
|
70
77
|
color: "color";
|
|
71
|
-
label: "label";
|
|
72
78
|
tooltip: "tooltip";
|
|
79
|
+
label: "label";
|
|
80
|
+
primaryYAxis: "primaryYAxis";
|
|
81
|
+
secondaryYAxis: "secondaryYAxis";
|
|
82
|
+
radius: "radius";
|
|
83
|
+
size: "size";
|
|
73
84
|
}>>;
|
|
74
85
|
parentId: z.ZodOptional<z.ZodString>;
|
|
75
86
|
}, z.core.$strip>]>>>>;
|
|
@@ -24,6 +24,17 @@ export declare const zScatter: z.ZodObject<{
|
|
|
24
24
|
rowDimension: "rowDimension";
|
|
25
25
|
columnDimension: "columnDimension";
|
|
26
26
|
}>>;
|
|
27
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
column: "column";
|
|
29
|
+
xAxis: "xAxis";
|
|
30
|
+
yAxis: "yAxis";
|
|
31
|
+
angle: "angle";
|
|
32
|
+
color: "color";
|
|
33
|
+
detail: "detail";
|
|
34
|
+
tooltip: "tooltip";
|
|
35
|
+
label: "label";
|
|
36
|
+
row: "row";
|
|
37
|
+
}>>;
|
|
27
38
|
}, z.core.$strip>>>>;
|
|
28
39
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
29
40
|
id: z.ZodString;
|
|
@@ -60,16 +71,16 @@ export declare const zScatter: z.ZodObject<{
|
|
|
60
71
|
}>>>;
|
|
61
72
|
}, z.core.$strip>>>;
|
|
62
73
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
63
|
-
primaryYAxis: "primaryYAxis";
|
|
64
|
-
secondaryYAxis: "secondaryYAxis";
|
|
65
74
|
xAxis: "xAxis";
|
|
66
75
|
yAxis: "yAxis";
|
|
67
76
|
angle: "angle";
|
|
68
|
-
radius: "radius";
|
|
69
|
-
size: "size";
|
|
70
77
|
color: "color";
|
|
71
|
-
label: "label";
|
|
72
78
|
tooltip: "tooltip";
|
|
79
|
+
label: "label";
|
|
80
|
+
primaryYAxis: "primaryYAxis";
|
|
81
|
+
secondaryYAxis: "secondaryYAxis";
|
|
82
|
+
radius: "radius";
|
|
83
|
+
size: "size";
|
|
73
84
|
}>>;
|
|
74
85
|
parentId: z.ZodOptional<z.ZodString>;
|
|
75
86
|
}, z.core.$strip>]>>>>;
|
|
@@ -110,16 +121,16 @@ export declare const zScatter: z.ZodObject<{
|
|
|
110
121
|
}>>>;
|
|
111
122
|
}, z.core.$strip>>>;
|
|
112
123
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
113
|
-
primaryYAxis: "primaryYAxis";
|
|
114
|
-
secondaryYAxis: "secondaryYAxis";
|
|
115
124
|
xAxis: "xAxis";
|
|
116
125
|
yAxis: "yAxis";
|
|
117
126
|
angle: "angle";
|
|
118
|
-
radius: "radius";
|
|
119
|
-
size: "size";
|
|
120
127
|
color: "color";
|
|
121
|
-
label: "label";
|
|
122
128
|
tooltip: "tooltip";
|
|
129
|
+
label: "label";
|
|
130
|
+
primaryYAxis: "primaryYAxis";
|
|
131
|
+
secondaryYAxis: "secondaryYAxis";
|
|
132
|
+
radius: "radius";
|
|
133
|
+
size: "size";
|
|
123
134
|
}>>;
|
|
124
135
|
parentId: z.ZodOptional<z.ZodString>;
|
|
125
136
|
}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -157,16 +168,16 @@ export declare const zScatter: z.ZodObject<{
|
|
|
157
168
|
}>>>;
|
|
158
169
|
}, z.core.$strip>>>;
|
|
159
170
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
160
|
-
primaryYAxis: "primaryYAxis";
|
|
161
|
-
secondaryYAxis: "secondaryYAxis";
|
|
162
171
|
xAxis: "xAxis";
|
|
163
172
|
yAxis: "yAxis";
|
|
164
173
|
angle: "angle";
|
|
165
|
-
radius: "radius";
|
|
166
|
-
size: "size";
|
|
167
174
|
color: "color";
|
|
168
|
-
label: "label";
|
|
169
175
|
tooltip: "tooltip";
|
|
176
|
+
label: "label";
|
|
177
|
+
primaryYAxis: "primaryYAxis";
|
|
178
|
+
secondaryYAxis: "secondaryYAxis";
|
|
179
|
+
radius: "radius";
|
|
180
|
+
size: "size";
|
|
170
181
|
}>>;
|
|
171
182
|
parentId: z.ZodOptional<z.ZodString>;
|
|
172
183
|
}, z.core.$strip>]>>;
|
|
@@ -205,16 +216,16 @@ export declare const zScatter: z.ZodObject<{
|
|
|
205
216
|
}>>>;
|
|
206
217
|
}, z.core.$strip>>>;
|
|
207
218
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
208
|
-
primaryYAxis: "primaryYAxis";
|
|
209
|
-
secondaryYAxis: "secondaryYAxis";
|
|
210
219
|
xAxis: "xAxis";
|
|
211
220
|
yAxis: "yAxis";
|
|
212
221
|
angle: "angle";
|
|
213
|
-
radius: "radius";
|
|
214
|
-
size: "size";
|
|
215
222
|
color: "color";
|
|
216
|
-
label: "label";
|
|
217
223
|
tooltip: "tooltip";
|
|
224
|
+
label: "label";
|
|
225
|
+
primaryYAxis: "primaryYAxis";
|
|
226
|
+
secondaryYAxis: "secondaryYAxis";
|
|
227
|
+
radius: "radius";
|
|
228
|
+
size: "size";
|
|
218
229
|
}>>;
|
|
219
230
|
parentId: z.ZodOptional<z.ZodString>;
|
|
220
231
|
}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -252,16 +263,16 @@ export declare const zScatter: z.ZodObject<{
|
|
|
252
263
|
}>>>;
|
|
253
264
|
}, z.core.$strip>>>;
|
|
254
265
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
255
|
-
primaryYAxis: "primaryYAxis";
|
|
256
|
-
secondaryYAxis: "secondaryYAxis";
|
|
257
266
|
xAxis: "xAxis";
|
|
258
267
|
yAxis: "yAxis";
|
|
259
268
|
angle: "angle";
|
|
260
|
-
radius: "radius";
|
|
261
|
-
size: "size";
|
|
262
269
|
color: "color";
|
|
263
|
-
label: "label";
|
|
264
270
|
tooltip: "tooltip";
|
|
271
|
+
label: "label";
|
|
272
|
+
primaryYAxis: "primaryYAxis";
|
|
273
|
+
secondaryYAxis: "secondaryYAxis";
|
|
274
|
+
radius: "radius";
|
|
275
|
+
size: "size";
|
|
265
276
|
}>>;
|
|
266
277
|
parentId: z.ZodOptional<z.ZodString>;
|
|
267
278
|
}, z.core.$strip>]>>;
|
|
@@ -10,6 +10,17 @@ export declare const zTable: z.ZodObject<{
|
|
|
10
10
|
rowDimension: "rowDimension";
|
|
11
11
|
columnDimension: "columnDimension";
|
|
12
12
|
}>>;
|
|
13
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
column: "column";
|
|
15
|
+
xAxis: "xAxis";
|
|
16
|
+
yAxis: "yAxis";
|
|
17
|
+
angle: "angle";
|
|
18
|
+
color: "color";
|
|
19
|
+
detail: "detail";
|
|
20
|
+
tooltip: "tooltip";
|
|
21
|
+
label: "label";
|
|
22
|
+
row: "row";
|
|
23
|
+
}>>;
|
|
13
24
|
}, z.core.$strip>>>>;
|
|
14
25
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
15
26
|
id: z.ZodString;
|
|
@@ -46,16 +57,16 @@ export declare const zTable: z.ZodObject<{
|
|
|
46
57
|
}>>>;
|
|
47
58
|
}, z.core.$strip>>>;
|
|
48
59
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
49
|
-
primaryYAxis: "primaryYAxis";
|
|
50
|
-
secondaryYAxis: "secondaryYAxis";
|
|
51
60
|
xAxis: "xAxis";
|
|
52
61
|
yAxis: "yAxis";
|
|
53
62
|
angle: "angle";
|
|
54
|
-
radius: "radius";
|
|
55
|
-
size: "size";
|
|
56
63
|
color: "color";
|
|
57
|
-
label: "label";
|
|
58
64
|
tooltip: "tooltip";
|
|
65
|
+
label: "label";
|
|
66
|
+
primaryYAxis: "primaryYAxis";
|
|
67
|
+
secondaryYAxis: "secondaryYAxis";
|
|
68
|
+
radius: "radius";
|
|
69
|
+
size: "size";
|
|
59
70
|
}>>;
|
|
60
71
|
parentId: z.ZodOptional<z.ZodString>;
|
|
61
72
|
}, z.core.$strip>]>>>>;
|
|
@@ -4,7 +4,23 @@
|
|
|
4
4
|
export type Dimension = {
|
|
5
5
|
id: string;
|
|
6
6
|
alias?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated 请使用 encoding 代替
|
|
9
|
+
*/
|
|
7
10
|
location?: 'dimension' | 'rowDimension' | 'columnDimension';
|
|
11
|
+
/**
|
|
12
|
+
* @description 维度映射的通道
|
|
13
|
+
* - x: 支持将多个维度映射到x轴, 支持柱状图、折线图、面积图等
|
|
14
|
+
* - y: 支持将多个维度映射到y轴, 支持柱状图、折线图、面积图等
|
|
15
|
+
* - angle: 支持将多个维度映射到角度通道, 支持玫瑰图、雷达图等
|
|
16
|
+
* - color: 支持将多个维度映射到颜色通道, 支持所有图表类型
|
|
17
|
+
* - detail: 支持将多个维度映射到详情通道, 支持所有图表类型
|
|
18
|
+
* - tooltip: 支持将多个维度映射到提示通道, 支持所有图表类型
|
|
19
|
+
* - label: 支持将多个维度映射到标签通道, 支持所有图表类型
|
|
20
|
+
* - row: 支持将多个维度映射到行通道, 支持所有图表类型
|
|
21
|
+
* - column: 支持将多个维度映射到列通道, 支持所有图表类型
|
|
22
|
+
*/
|
|
23
|
+
encoding?: 'xAxis' | 'yAxis' | 'angle' | 'color' | 'detail' | 'tooltip' | 'label' | 'row' | 'column';
|
|
8
24
|
};
|
|
9
25
|
/**
|
|
10
26
|
* @description 维度组
|
|
@@ -8,6 +8,17 @@ export declare const zDimension: z.ZodObject<{
|
|
|
8
8
|
rowDimension: "rowDimension";
|
|
9
9
|
columnDimension: "columnDimension";
|
|
10
10
|
}>>;
|
|
11
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
column: "column";
|
|
13
|
+
xAxis: "xAxis";
|
|
14
|
+
yAxis: "yAxis";
|
|
15
|
+
angle: "angle";
|
|
16
|
+
color: "color";
|
|
17
|
+
detail: "detail";
|
|
18
|
+
tooltip: "tooltip";
|
|
19
|
+
label: "label";
|
|
20
|
+
row: "row";
|
|
21
|
+
}>>;
|
|
11
22
|
}, z.core.$strip>;
|
|
12
23
|
export declare const zDimensionGroup: z.ZodType<DimensionGroup>;
|
|
13
24
|
export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
|
@@ -18,6 +29,17 @@ export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
|
|
18
29
|
rowDimension: "rowDimension";
|
|
19
30
|
columnDimension: "columnDimension";
|
|
20
31
|
}>>;
|
|
32
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
column: "column";
|
|
34
|
+
xAxis: "xAxis";
|
|
35
|
+
yAxis: "yAxis";
|
|
36
|
+
angle: "angle";
|
|
37
|
+
color: "color";
|
|
38
|
+
detail: "detail";
|
|
39
|
+
tooltip: "tooltip";
|
|
40
|
+
label: "label";
|
|
41
|
+
row: "row";
|
|
42
|
+
}>>;
|
|
21
43
|
}, z.core.$strip>>;
|
|
22
44
|
export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionGroup, unknown, z.core.$ZodTypeInternals<DimensionGroup, unknown>>, z.ZodObject<{
|
|
23
45
|
id: z.ZodString;
|
|
@@ -27,4 +49,15 @@ export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionG
|
|
|
27
49
|
rowDimension: "rowDimension";
|
|
28
50
|
columnDimension: "columnDimension";
|
|
29
51
|
}>>;
|
|
52
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
column: "column";
|
|
54
|
+
xAxis: "xAxis";
|
|
55
|
+
yAxis: "yAxis";
|
|
56
|
+
angle: "angle";
|
|
57
|
+
color: "color";
|
|
58
|
+
detail: "detail";
|
|
59
|
+
tooltip: "tooltip";
|
|
60
|
+
label: "label";
|
|
61
|
+
row: "row";
|
|
62
|
+
}>>;
|
|
30
63
|
}, z.core.$strip>]>>;
|
|
@@ -36,16 +36,16 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
|
36
36
|
}>>>;
|
|
37
37
|
}, z.core.$strip>>>;
|
|
38
38
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
39
|
-
primaryYAxis: "primaryYAxis";
|
|
40
|
-
secondaryYAxis: "secondaryYAxis";
|
|
41
39
|
xAxis: "xAxis";
|
|
42
40
|
yAxis: "yAxis";
|
|
43
41
|
angle: "angle";
|
|
44
|
-
radius: "radius";
|
|
45
|
-
size: "size";
|
|
46
42
|
color: "color";
|
|
47
|
-
label: "label";
|
|
48
43
|
tooltip: "tooltip";
|
|
44
|
+
label: "label";
|
|
45
|
+
primaryYAxis: "primaryYAxis";
|
|
46
|
+
secondaryYAxis: "secondaryYAxis";
|
|
47
|
+
radius: "radius";
|
|
48
|
+
size: "size";
|
|
49
49
|
}>>;
|
|
50
50
|
parentId: z.ZodOptional<z.ZodString>;
|
|
51
51
|
}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -83,16 +83,16 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
|
83
83
|
}>>>;
|
|
84
84
|
}, z.core.$strip>>>;
|
|
85
85
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
86
|
-
primaryYAxis: "primaryYAxis";
|
|
87
|
-
secondaryYAxis: "secondaryYAxis";
|
|
88
86
|
xAxis: "xAxis";
|
|
89
87
|
yAxis: "yAxis";
|
|
90
88
|
angle: "angle";
|
|
91
|
-
radius: "radius";
|
|
92
|
-
size: "size";
|
|
93
89
|
color: "color";
|
|
94
|
-
label: "label";
|
|
95
90
|
tooltip: "tooltip";
|
|
91
|
+
label: "label";
|
|
92
|
+
primaryYAxis: "primaryYAxis";
|
|
93
|
+
secondaryYAxis: "secondaryYAxis";
|
|
94
|
+
radius: "radius";
|
|
95
|
+
size: "size";
|
|
96
96
|
}>>;
|
|
97
97
|
parentId: z.ZodOptional<z.ZodString>;
|
|
98
98
|
}, z.core.$strip>]>>;
|
|
@@ -131,16 +131,16 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
|
131
131
|
}>>>;
|
|
132
132
|
}, z.core.$strip>>>;
|
|
133
133
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
134
|
-
primaryYAxis: "primaryYAxis";
|
|
135
|
-
secondaryYAxis: "secondaryYAxis";
|
|
136
134
|
xAxis: "xAxis";
|
|
137
135
|
yAxis: "yAxis";
|
|
138
136
|
angle: "angle";
|
|
139
|
-
radius: "radius";
|
|
140
|
-
size: "size";
|
|
141
137
|
color: "color";
|
|
142
|
-
label: "label";
|
|
143
138
|
tooltip: "tooltip";
|
|
139
|
+
label: "label";
|
|
140
|
+
primaryYAxis: "primaryYAxis";
|
|
141
|
+
secondaryYAxis: "secondaryYAxis";
|
|
142
|
+
radius: "radius";
|
|
143
|
+
size: "size";
|
|
144
144
|
}>>;
|
|
145
145
|
parentId: z.ZodOptional<z.ZodString>;
|
|
146
146
|
}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -178,16 +178,16 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
|
178
178
|
}>>>;
|
|
179
179
|
}, z.core.$strip>>>;
|
|
180
180
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
181
|
-
primaryYAxis: "primaryYAxis";
|
|
182
|
-
secondaryYAxis: "secondaryYAxis";
|
|
183
181
|
xAxis: "xAxis";
|
|
184
182
|
yAxis: "yAxis";
|
|
185
183
|
angle: "angle";
|
|
186
|
-
radius: "radius";
|
|
187
|
-
size: "size";
|
|
188
184
|
color: "color";
|
|
189
|
-
label: "label";
|
|
190
185
|
tooltip: "tooltip";
|
|
186
|
+
label: "label";
|
|
187
|
+
primaryYAxis: "primaryYAxis";
|
|
188
|
+
secondaryYAxis: "secondaryYAxis";
|
|
189
|
+
radius: "radius";
|
|
190
|
+
size: "size";
|
|
191
191
|
}>>;
|
|
192
192
|
parentId: z.ZodOptional<z.ZodString>;
|
|
193
193
|
}, z.core.$strip>]>>;
|
|
@@ -229,16 +229,16 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
|
229
229
|
}>>>;
|
|
230
230
|
}, z.core.$strip>>>;
|
|
231
231
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
232
|
-
primaryYAxis: "primaryYAxis";
|
|
233
|
-
secondaryYAxis: "secondaryYAxis";
|
|
234
232
|
xAxis: "xAxis";
|
|
235
233
|
yAxis: "yAxis";
|
|
236
234
|
angle: "angle";
|
|
237
|
-
radius: "radius";
|
|
238
|
-
size: "size";
|
|
239
235
|
color: "color";
|
|
240
|
-
label: "label";
|
|
241
236
|
tooltip: "tooltip";
|
|
237
|
+
label: "label";
|
|
238
|
+
primaryYAxis: "primaryYAxis";
|
|
239
|
+
secondaryYAxis: "secondaryYAxis";
|
|
240
|
+
radius: "radius";
|
|
241
|
+
size: "size";
|
|
242
242
|
}>>;
|
|
243
243
|
parentId: z.ZodOptional<z.ZodString>;
|
|
244
244
|
}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -276,16 +276,16 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
|
276
276
|
}>>>;
|
|
277
277
|
}, z.core.$strip>>>;
|
|
278
278
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
279
|
-
primaryYAxis: "primaryYAxis";
|
|
280
|
-
secondaryYAxis: "secondaryYAxis";
|
|
281
279
|
xAxis: "xAxis";
|
|
282
280
|
yAxis: "yAxis";
|
|
283
281
|
angle: "angle";
|
|
284
|
-
radius: "radius";
|
|
285
|
-
size: "size";
|
|
286
282
|
color: "color";
|
|
287
|
-
label: "label";
|
|
288
283
|
tooltip: "tooltip";
|
|
284
|
+
label: "label";
|
|
285
|
+
primaryYAxis: "primaryYAxis";
|
|
286
|
+
secondaryYAxis: "secondaryYAxis";
|
|
287
|
+
radius: "radius";
|
|
288
|
+
size: "size";
|
|
289
289
|
}>>;
|
|
290
290
|
parentId: z.ZodOptional<z.ZodString>;
|
|
291
291
|
}, z.core.$strip>]>>;
|
|
@@ -324,16 +324,16 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
|
324
324
|
}>>>;
|
|
325
325
|
}, z.core.$strip>>>;
|
|
326
326
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
327
|
-
primaryYAxis: "primaryYAxis";
|
|
328
|
-
secondaryYAxis: "secondaryYAxis";
|
|
329
327
|
xAxis: "xAxis";
|
|
330
328
|
yAxis: "yAxis";
|
|
331
329
|
angle: "angle";
|
|
332
|
-
radius: "radius";
|
|
333
|
-
size: "size";
|
|
334
330
|
color: "color";
|
|
335
|
-
label: "label";
|
|
336
331
|
tooltip: "tooltip";
|
|
332
|
+
label: "label";
|
|
333
|
+
primaryYAxis: "primaryYAxis";
|
|
334
|
+
secondaryYAxis: "secondaryYAxis";
|
|
335
|
+
radius: "radius";
|
|
336
|
+
size: "size";
|
|
337
337
|
}>>;
|
|
338
338
|
parentId: z.ZodOptional<z.ZodString>;
|
|
339
339
|
}, z.core.$strip>>, z.ZodObject<{
|
|
@@ -371,16 +371,16 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
|
371
371
|
}>>>;
|
|
372
372
|
}, z.core.$strip>>>;
|
|
373
373
|
encoding: z.ZodOptional<z.ZodEnum<{
|
|
374
|
-
primaryYAxis: "primaryYAxis";
|
|
375
|
-
secondaryYAxis: "secondaryYAxis";
|
|
376
374
|
xAxis: "xAxis";
|
|
377
375
|
yAxis: "yAxis";
|
|
378
376
|
angle: "angle";
|
|
379
|
-
radius: "radius";
|
|
380
|
-
size: "size";
|
|
381
377
|
color: "color";
|
|
382
|
-
label: "label";
|
|
383
378
|
tooltip: "tooltip";
|
|
379
|
+
label: "label";
|
|
380
|
+
primaryYAxis: "primaryYAxis";
|
|
381
|
+
secondaryYAxis: "secondaryYAxis";
|
|
382
|
+
radius: "radius";
|
|
383
|
+
size: "size";
|
|
384
384
|
}>>;
|
|
385
385
|
parentId: z.ZodOptional<z.ZodString>;
|
|
386
386
|
}, z.core.$strip>]>>;
|