@visactor/vseed 0.1.5 → 0.1.6
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 +2 -2
- package/dist/index.cjs +347 -285
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +347 -285
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipes/{init/autoDimensions.d.ts → default/defaultDimensions.d.ts} +1 -1
- package/dist/pipeline/advanced/chart/pipes/default/defaultMeasureName.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/default/defaultMeasures.d.ts +5 -0
- package/dist/pipeline/advanced/chart/pipes/default/index.d.ts +3 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/column.d.ts +19 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/line.d.ts +17 -0
- package/dist/pipeline/advanced/chart/pipes/index.d.ts +1 -0
- package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +0 -2
- package/dist/pipeline/advanced/chart/pipes/measures/utils.d.ts +3 -18
- package/dist/pipeline/advanced/table/pipes/reshape/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipes/reshape/reshapePivotTable.d.ts +2 -0
- package/dist/types/advancedVSeed.d.ts +2 -0
- package/dist/types/chartType/area/area.d.ts +20 -3
- package/dist/types/chartType/area/zArea.d.ts +2 -0
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +16 -0
- package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +2 -0
- package/dist/types/chartType/bar/zBar.d.ts +2 -0
- package/dist/types/chartType/barParallel/zBarParallel.d.ts +2 -0
- package/dist/types/chartType/barPercent/zBarPercent.d.ts +2 -0
- package/dist/types/chartType/column/column.d.ts +17 -1
- package/dist/types/chartType/column/zColumn.d.ts +2 -0
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +17 -0
- package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +2 -0
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +17 -1
- package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +2 -0
- package/dist/types/chartType/donut/zDonut.d.ts +2 -0
- package/dist/types/chartType/dualAxis/zDualAxis.d.ts +10 -0
- package/dist/types/chartType/funnel/zFunnel.d.ts +2 -0
- package/dist/types/chartType/heatmap/zHeatmap.d.ts +2 -0
- package/dist/types/chartType/line/line.d.ts +16 -0
- package/dist/types/chartType/line/zLine.d.ts +2 -0
- package/dist/types/chartType/pie/zPie.d.ts +2 -0
- package/dist/types/chartType/pivotTable/zPivotTable.d.ts +2 -0
- package/dist/types/chartType/radar/zRadar.d.ts +2 -0
- package/dist/types/chartType/rose/zRose.d.ts +2 -0
- package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +2 -0
- package/dist/types/chartType/scatter/zScatter.d.ts +10 -0
- package/dist/types/chartType/table/zTable.d.ts +2 -0
- package/dist/types/properties/measures/measures.d.ts +3 -1
- package/dist/types/properties/measures/zDualMeasures.d.ts +16 -0
- package/dist/types/properties/measures/zMeasures.d.ts +6 -0
- package/dist/types/properties/measures/zScatterMeasures.d.ts +16 -0
- package/dist/types/zVseed.d.ts +56 -0
- package/dist/umd/index.js +368 -306
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/pipeline/advanced/chart/pipes/init/utils.d.ts +0 -2
@@ -71,10 +71,12 @@ export declare const zScatter: z.ZodObject<{
|
|
71
71
|
}>>>;
|
72
72
|
}, z.core.$strip>>>;
|
73
73
|
encoding: z.ZodOptional<z.ZodEnum<{
|
74
|
+
column: "column";
|
74
75
|
xAxis: "xAxis";
|
75
76
|
yAxis: "yAxis";
|
76
77
|
angle: "angle";
|
77
78
|
color: "color";
|
79
|
+
detail: "detail";
|
78
80
|
tooltip: "tooltip";
|
79
81
|
label: "label";
|
80
82
|
primaryYAxis: "primaryYAxis";
|
@@ -121,10 +123,12 @@ export declare const zScatter: z.ZodObject<{
|
|
121
123
|
}>>>;
|
122
124
|
}, z.core.$strip>>>;
|
123
125
|
encoding: z.ZodOptional<z.ZodEnum<{
|
126
|
+
column: "column";
|
124
127
|
xAxis: "xAxis";
|
125
128
|
yAxis: "yAxis";
|
126
129
|
angle: "angle";
|
127
130
|
color: "color";
|
131
|
+
detail: "detail";
|
128
132
|
tooltip: "tooltip";
|
129
133
|
label: "label";
|
130
134
|
primaryYAxis: "primaryYAxis";
|
@@ -168,10 +172,12 @@ export declare const zScatter: z.ZodObject<{
|
|
168
172
|
}>>>;
|
169
173
|
}, z.core.$strip>>>;
|
170
174
|
encoding: z.ZodOptional<z.ZodEnum<{
|
175
|
+
column: "column";
|
171
176
|
xAxis: "xAxis";
|
172
177
|
yAxis: "yAxis";
|
173
178
|
angle: "angle";
|
174
179
|
color: "color";
|
180
|
+
detail: "detail";
|
175
181
|
tooltip: "tooltip";
|
176
182
|
label: "label";
|
177
183
|
primaryYAxis: "primaryYAxis";
|
@@ -216,10 +222,12 @@ export declare const zScatter: z.ZodObject<{
|
|
216
222
|
}>>>;
|
217
223
|
}, z.core.$strip>>>;
|
218
224
|
encoding: z.ZodOptional<z.ZodEnum<{
|
225
|
+
column: "column";
|
219
226
|
xAxis: "xAxis";
|
220
227
|
yAxis: "yAxis";
|
221
228
|
angle: "angle";
|
222
229
|
color: "color";
|
230
|
+
detail: "detail";
|
223
231
|
tooltip: "tooltip";
|
224
232
|
label: "label";
|
225
233
|
primaryYAxis: "primaryYAxis";
|
@@ -263,10 +271,12 @@ export declare const zScatter: z.ZodObject<{
|
|
263
271
|
}>>>;
|
264
272
|
}, z.core.$strip>>>;
|
265
273
|
encoding: z.ZodOptional<z.ZodEnum<{
|
274
|
+
column: "column";
|
266
275
|
xAxis: "xAxis";
|
267
276
|
yAxis: "yAxis";
|
268
277
|
angle: "angle";
|
269
278
|
color: "color";
|
279
|
+
detail: "detail";
|
270
280
|
tooltip: "tooltip";
|
271
281
|
label: "label";
|
272
282
|
primaryYAxis: "primaryYAxis";
|
@@ -57,10 +57,12 @@ export declare const zTable: z.ZodObject<{
|
|
57
57
|
}>>>;
|
58
58
|
}, z.core.$strip>>>;
|
59
59
|
encoding: z.ZodOptional<z.ZodEnum<{
|
60
|
+
column: "column";
|
60
61
|
xAxis: "xAxis";
|
61
62
|
yAxis: "yAxis";
|
62
63
|
angle: "angle";
|
63
64
|
color: "color";
|
65
|
+
detail: "detail";
|
64
66
|
tooltip: "tooltip";
|
65
67
|
label: "label";
|
66
68
|
primaryYAxis: "primaryYAxis";
|
@@ -35,11 +35,13 @@ export type Measure = {
|
|
35
35
|
* - angle: 指标映射的角度, 适用于饼图、环形图、雷达图
|
36
36
|
* - radius: 指标映射的半径, 适用于玫瑰图
|
37
37
|
* - size: 指标映射的大小, 适用于漏斗图、散点图
|
38
|
+
* - detail: 指标映射的详情, 适用于透视表、热力图
|
39
|
+
* - column: 指标映射的列, 仅适用于表格
|
38
40
|
* - color: 指标映射的颜色, 适用于所有图表
|
39
41
|
* - label: 指标映射的标签, 适用于所有图表
|
40
42
|
* - tooltip: 指标映射的提示, 适用于所有图表
|
41
43
|
*/
|
42
|
-
encoding?: 'primaryYAxis' | 'secondaryYAxis' | 'xAxis' | 'yAxis' | 'angle' | 'radius' | 'size' | 'color' | 'label' | 'tooltip';
|
44
|
+
encoding?: 'primaryYAxis' | 'secondaryYAxis' | 'xAxis' | 'yAxis' | 'angle' | 'radius' | 'size' | 'color' | 'detail' | 'column' | 'label' | 'tooltip';
|
43
45
|
/**
|
44
46
|
* @description 以扁平的指标配置形式, 构建树形指标组, parentId指向父级指标组的id, 用于构建指标树
|
45
47
|
* @tip 指标树的配置存在两种形式, 方式一是直接配置带children的指标树, 方式二是配置parentId的扁平指标列表, 两种方式不能同时配置
|
@@ -36,10 +36,12 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
36
36
|
}>>>;
|
37
37
|
}, z.core.$strip>>>;
|
38
38
|
encoding: z.ZodOptional<z.ZodEnum<{
|
39
|
+
column: "column";
|
39
40
|
xAxis: "xAxis";
|
40
41
|
yAxis: "yAxis";
|
41
42
|
angle: "angle";
|
42
43
|
color: "color";
|
44
|
+
detail: "detail";
|
43
45
|
tooltip: "tooltip";
|
44
46
|
label: "label";
|
45
47
|
primaryYAxis: "primaryYAxis";
|
@@ -83,10 +85,12 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
83
85
|
}>>>;
|
84
86
|
}, z.core.$strip>>>;
|
85
87
|
encoding: z.ZodOptional<z.ZodEnum<{
|
88
|
+
column: "column";
|
86
89
|
xAxis: "xAxis";
|
87
90
|
yAxis: "yAxis";
|
88
91
|
angle: "angle";
|
89
92
|
color: "color";
|
93
|
+
detail: "detail";
|
90
94
|
tooltip: "tooltip";
|
91
95
|
label: "label";
|
92
96
|
primaryYAxis: "primaryYAxis";
|
@@ -131,10 +135,12 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
131
135
|
}>>>;
|
132
136
|
}, z.core.$strip>>>;
|
133
137
|
encoding: z.ZodOptional<z.ZodEnum<{
|
138
|
+
column: "column";
|
134
139
|
xAxis: "xAxis";
|
135
140
|
yAxis: "yAxis";
|
136
141
|
angle: "angle";
|
137
142
|
color: "color";
|
143
|
+
detail: "detail";
|
138
144
|
tooltip: "tooltip";
|
139
145
|
label: "label";
|
140
146
|
primaryYAxis: "primaryYAxis";
|
@@ -178,10 +184,12 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
178
184
|
}>>>;
|
179
185
|
}, z.core.$strip>>>;
|
180
186
|
encoding: z.ZodOptional<z.ZodEnum<{
|
187
|
+
column: "column";
|
181
188
|
xAxis: "xAxis";
|
182
189
|
yAxis: "yAxis";
|
183
190
|
angle: "angle";
|
184
191
|
color: "color";
|
192
|
+
detail: "detail";
|
185
193
|
tooltip: "tooltip";
|
186
194
|
label: "label";
|
187
195
|
primaryYAxis: "primaryYAxis";
|
@@ -229,10 +237,12 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
229
237
|
}>>>;
|
230
238
|
}, z.core.$strip>>>;
|
231
239
|
encoding: z.ZodOptional<z.ZodEnum<{
|
240
|
+
column: "column";
|
232
241
|
xAxis: "xAxis";
|
233
242
|
yAxis: "yAxis";
|
234
243
|
angle: "angle";
|
235
244
|
color: "color";
|
245
|
+
detail: "detail";
|
236
246
|
tooltip: "tooltip";
|
237
247
|
label: "label";
|
238
248
|
primaryYAxis: "primaryYAxis";
|
@@ -276,10 +286,12 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
276
286
|
}>>>;
|
277
287
|
}, z.core.$strip>>>;
|
278
288
|
encoding: z.ZodOptional<z.ZodEnum<{
|
289
|
+
column: "column";
|
279
290
|
xAxis: "xAxis";
|
280
291
|
yAxis: "yAxis";
|
281
292
|
angle: "angle";
|
282
293
|
color: "color";
|
294
|
+
detail: "detail";
|
283
295
|
tooltip: "tooltip";
|
284
296
|
label: "label";
|
285
297
|
primaryYAxis: "primaryYAxis";
|
@@ -324,10 +336,12 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
324
336
|
}>>>;
|
325
337
|
}, z.core.$strip>>>;
|
326
338
|
encoding: z.ZodOptional<z.ZodEnum<{
|
339
|
+
column: "column";
|
327
340
|
xAxis: "xAxis";
|
328
341
|
yAxis: "yAxis";
|
329
342
|
angle: "angle";
|
330
343
|
color: "color";
|
344
|
+
detail: "detail";
|
331
345
|
tooltip: "tooltip";
|
332
346
|
label: "label";
|
333
347
|
primaryYAxis: "primaryYAxis";
|
@@ -371,10 +385,12 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
371
385
|
}>>>;
|
372
386
|
}, z.core.$strip>>>;
|
373
387
|
encoding: z.ZodOptional<z.ZodEnum<{
|
388
|
+
column: "column";
|
374
389
|
xAxis: "xAxis";
|
375
390
|
yAxis: "yAxis";
|
376
391
|
angle: "angle";
|
377
392
|
color: "color";
|
393
|
+
detail: "detail";
|
378
394
|
tooltip: "tooltip";
|
379
395
|
label: "label";
|
380
396
|
primaryYAxis: "primaryYAxis";
|
@@ -35,10 +35,12 @@ export declare const zMeasure: z.ZodObject<{
|
|
35
35
|
}>>>;
|
36
36
|
}, z.core.$strip>>>;
|
37
37
|
encoding: z.ZodOptional<z.ZodEnum<{
|
38
|
+
column: "column";
|
38
39
|
xAxis: "xAxis";
|
39
40
|
yAxis: "yAxis";
|
40
41
|
angle: "angle";
|
41
42
|
color: "color";
|
43
|
+
detail: "detail";
|
42
44
|
tooltip: "tooltip";
|
43
45
|
label: "label";
|
44
46
|
primaryYAxis: "primaryYAxis";
|
@@ -84,10 +86,12 @@ export declare const zMeasures: z.ZodArray<z.ZodObject<{
|
|
84
86
|
}>>>;
|
85
87
|
}, z.core.$strip>>>;
|
86
88
|
encoding: z.ZodOptional<z.ZodEnum<{
|
89
|
+
column: "column";
|
87
90
|
xAxis: "xAxis";
|
88
91
|
yAxis: "yAxis";
|
89
92
|
angle: "angle";
|
90
93
|
color: "color";
|
94
|
+
detail: "detail";
|
91
95
|
tooltip: "tooltip";
|
92
96
|
label: "label";
|
93
97
|
primaryYAxis: "primaryYAxis";
|
@@ -132,10 +136,12 @@ export declare const zMeasureTree: z.ZodArray<z.ZodUnion<[z.ZodType<MeasureGroup
|
|
132
136
|
}>>>;
|
133
137
|
}, z.core.$strip>>>;
|
134
138
|
encoding: z.ZodOptional<z.ZodEnum<{
|
139
|
+
column: "column";
|
135
140
|
xAxis: "xAxis";
|
136
141
|
yAxis: "yAxis";
|
137
142
|
angle: "angle";
|
138
143
|
color: "color";
|
144
|
+
detail: "detail";
|
139
145
|
tooltip: "tooltip";
|
140
146
|
label: "label";
|
141
147
|
primaryYAxis: "primaryYAxis";
|
@@ -36,10 +36,12 @@ export declare const zScatterMeasure: z.ZodObject<{
|
|
36
36
|
}>>>;
|
37
37
|
}, z.core.$strip>>>;
|
38
38
|
encoding: z.ZodOptional<z.ZodEnum<{
|
39
|
+
column: "column";
|
39
40
|
xAxis: "xAxis";
|
40
41
|
yAxis: "yAxis";
|
41
42
|
angle: "angle";
|
42
43
|
color: "color";
|
44
|
+
detail: "detail";
|
43
45
|
tooltip: "tooltip";
|
44
46
|
label: "label";
|
45
47
|
primaryYAxis: "primaryYAxis";
|
@@ -83,10 +85,12 @@ export declare const zScatterMeasure: z.ZodObject<{
|
|
83
85
|
}>>>;
|
84
86
|
}, z.core.$strip>>>;
|
85
87
|
encoding: z.ZodOptional<z.ZodEnum<{
|
88
|
+
column: "column";
|
86
89
|
xAxis: "xAxis";
|
87
90
|
yAxis: "yAxis";
|
88
91
|
angle: "angle";
|
89
92
|
color: "color";
|
93
|
+
detail: "detail";
|
90
94
|
tooltip: "tooltip";
|
91
95
|
label: "label";
|
92
96
|
primaryYAxis: "primaryYAxis";
|
@@ -131,10 +135,12 @@ export declare const zScatterMeasure: z.ZodObject<{
|
|
131
135
|
}>>>;
|
132
136
|
}, z.core.$strip>>>;
|
133
137
|
encoding: z.ZodOptional<z.ZodEnum<{
|
138
|
+
column: "column";
|
134
139
|
xAxis: "xAxis";
|
135
140
|
yAxis: "yAxis";
|
136
141
|
angle: "angle";
|
137
142
|
color: "color";
|
143
|
+
detail: "detail";
|
138
144
|
tooltip: "tooltip";
|
139
145
|
label: "label";
|
140
146
|
primaryYAxis: "primaryYAxis";
|
@@ -178,10 +184,12 @@ export declare const zScatterMeasure: z.ZodObject<{
|
|
178
184
|
}>>>;
|
179
185
|
}, z.core.$strip>>>;
|
180
186
|
encoding: z.ZodOptional<z.ZodEnum<{
|
187
|
+
column: "column";
|
181
188
|
xAxis: "xAxis";
|
182
189
|
yAxis: "yAxis";
|
183
190
|
angle: "angle";
|
184
191
|
color: "color";
|
192
|
+
detail: "detail";
|
185
193
|
tooltip: "tooltip";
|
186
194
|
label: "label";
|
187
195
|
primaryYAxis: "primaryYAxis";
|
@@ -229,10 +237,12 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
|
|
229
237
|
}>>>;
|
230
238
|
}, z.core.$strip>>>;
|
231
239
|
encoding: z.ZodOptional<z.ZodEnum<{
|
240
|
+
column: "column";
|
232
241
|
xAxis: "xAxis";
|
233
242
|
yAxis: "yAxis";
|
234
243
|
angle: "angle";
|
235
244
|
color: "color";
|
245
|
+
detail: "detail";
|
236
246
|
tooltip: "tooltip";
|
237
247
|
label: "label";
|
238
248
|
primaryYAxis: "primaryYAxis";
|
@@ -276,10 +286,12 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
|
|
276
286
|
}>>>;
|
277
287
|
}, z.core.$strip>>>;
|
278
288
|
encoding: z.ZodOptional<z.ZodEnum<{
|
289
|
+
column: "column";
|
279
290
|
xAxis: "xAxis";
|
280
291
|
yAxis: "yAxis";
|
281
292
|
angle: "angle";
|
282
293
|
color: "color";
|
294
|
+
detail: "detail";
|
283
295
|
tooltip: "tooltip";
|
284
296
|
label: "label";
|
285
297
|
primaryYAxis: "primaryYAxis";
|
@@ -324,10 +336,12 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
|
|
324
336
|
}>>>;
|
325
337
|
}, z.core.$strip>>>;
|
326
338
|
encoding: z.ZodOptional<z.ZodEnum<{
|
339
|
+
column: "column";
|
327
340
|
xAxis: "xAxis";
|
328
341
|
yAxis: "yAxis";
|
329
342
|
angle: "angle";
|
330
343
|
color: "color";
|
344
|
+
detail: "detail";
|
331
345
|
tooltip: "tooltip";
|
332
346
|
label: "label";
|
333
347
|
primaryYAxis: "primaryYAxis";
|
@@ -371,10 +385,12 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
|
|
371
385
|
}>>>;
|
372
386
|
}, z.core.$strip>>>;
|
373
387
|
encoding: z.ZodOptional<z.ZodEnum<{
|
388
|
+
column: "column";
|
374
389
|
xAxis: "xAxis";
|
375
390
|
yAxis: "yAxis";
|
376
391
|
angle: "angle";
|
377
392
|
color: "color";
|
393
|
+
detail: "detail";
|
378
394
|
tooltip: "tooltip";
|
379
395
|
label: "label";
|
380
396
|
primaryYAxis: "primaryYAxis";
|