@visactor/vseed 0.1.2 → 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.
Files changed (58) hide show
  1. package/dist/builder/builder/builder.d.ts +6 -28
  2. package/dist/dataReshape/dataReshapeByEncoding.d.ts +1 -0
  3. package/dist/dataReshape/foldMeasures.d.ts +6 -5
  4. package/dist/index.cjs +844 -609
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.js +857 -619
  7. package/dist/index.js.map +1 -1
  8. package/dist/pipeline/advanced/chart/pipes/index.d.ts +1 -0
  9. package/dist/pipeline/advanced/chart/pipes/init/index.d.ts +1 -3
  10. package/dist/pipeline/advanced/chart/pipes/init/utils.d.ts +2 -0
  11. package/dist/pipeline/advanced/chart/pipes/{init/autoMeasures.d.ts → measures/buildMeasures.d.ts} +1 -1
  12. package/dist/pipeline/advanced/chart/pipes/measures/buildMeasuresForDualAxis.d.ts +2 -0
  13. package/dist/pipeline/advanced/chart/pipes/measures/buildMeasuresForScatter.d.ts +2 -0
  14. package/dist/pipeline/advanced/chart/pipes/measures/index.d.ts +4 -0
  15. package/dist/pipeline/advanced/chart/pipes/measures/utils.d.ts +28 -0
  16. package/dist/pipeline/spec/chart/pipes/color/colorAdapter.d.ts +2 -1
  17. package/dist/pipeline/spec/chart/pipes/color/index.d.ts +2 -1
  18. package/dist/pipeline/spec/chart/pipes/color/linearColorForDualAxis.d.ts +2 -0
  19. package/dist/pipeline/utils/chatType.d.ts +1 -1
  20. package/dist/types/advancedVSeed.d.ts +24 -14
  21. package/dist/types/chartType/area/zArea.d.ts +24 -0
  22. package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +24 -0
  23. package/dist/types/chartType/bar/zBar.d.ts +24 -0
  24. package/dist/types/chartType/barParallel/zBarParallel.d.ts +24 -0
  25. package/dist/types/chartType/barPercent/zBarPercent.d.ts +24 -0
  26. package/dist/types/chartType/column/zColumn.d.ts +24 -0
  27. package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +24 -0
  28. package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +24 -0
  29. package/dist/types/chartType/donut/zDonut.d.ts +24 -0
  30. package/dist/types/chartType/dualAxis/zDualAxis.d.ts +76 -0
  31. package/dist/types/chartType/funnel/zFunnel.d.ts +24 -0
  32. package/dist/types/chartType/heatmap/zHeatmap.d.ts +24 -0
  33. package/dist/types/chartType/line/line.d.ts +0 -1
  34. package/dist/types/chartType/line/zLine.d.ts +24 -0
  35. package/dist/types/chartType/pie/zPie.d.ts +24 -0
  36. package/dist/types/chartType/pivotTable/zPivotTable.d.ts +24 -0
  37. package/dist/types/chartType/radar/zRadar.d.ts +24 -0
  38. package/dist/types/chartType/rose/zRose.d.ts +24 -0
  39. package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +24 -0
  40. package/dist/types/chartType/scatter/zScatter.d.ts +76 -0
  41. package/dist/types/chartType/table/zTable.d.ts +24 -0
  42. package/dist/types/properties/dimensions/dimensions.d.ts +16 -0
  43. package/dist/types/properties/dimensions/zDimensions.d.ts +33 -0
  44. package/dist/types/properties/encoding/encoding.d.ts +0 -1
  45. package/dist/types/properties/encoding/index.d.ts +2 -2
  46. package/dist/types/properties/encoding/zEncoding.d.ts +0 -14
  47. package/dist/types/properties/measures/dualMeasures.d.ts +1 -0
  48. package/dist/types/properties/measures/measures.d.ts +19 -0
  49. package/dist/types/properties/measures/scatterMeasures.d.ts +1 -0
  50. package/dist/types/properties/measures/zDualMeasures.d.ts +104 -0
  51. package/dist/types/properties/measures/zMeasures.d.ts +39 -0
  52. package/dist/types/properties/measures/zScatterMeasures.d.ts +104 -0
  53. package/dist/types/zVseed.d.ts +584 -0
  54. package/dist/umd/index.js +858 -607
  55. package/dist/umd/index.js.map +1 -1
  56. package/package.json +1 -1
  57. package/dist/pipeline/advanced/chart/pipes/init/autoDualMeasures.d.ts +0 -2
  58. package/dist/pipeline/advanced/chart/pipes/init/autoScatterMeasures.d.ts +0 -2
@@ -35,6 +35,19 @@ export declare const zDualMeasure: z.ZodObject<{
35
35
  halfEven: "halfEven";
36
36
  }>>>;
37
37
  }, z.core.$strip>>>;
38
+ encoding: z.ZodOptional<z.ZodEnum<{
39
+ xAxis: "xAxis";
40
+ yAxis: "yAxis";
41
+ angle: "angle";
42
+ color: "color";
43
+ tooltip: "tooltip";
44
+ label: "label";
45
+ primaryYAxis: "primaryYAxis";
46
+ secondaryYAxis: "secondaryYAxis";
47
+ radius: "radius";
48
+ size: "size";
49
+ }>>;
50
+ parentId: z.ZodOptional<z.ZodString>;
38
51
  }, z.core.$strip>>, z.ZodObject<{
39
52
  id: z.ZodString;
40
53
  alias: z.ZodOptional<z.ZodString>;
@@ -69,6 +82,19 @@ export declare const zDualMeasure: z.ZodObject<{
69
82
  halfEven: "halfEven";
70
83
  }>>>;
71
84
  }, z.core.$strip>>>;
85
+ encoding: z.ZodOptional<z.ZodEnum<{
86
+ xAxis: "xAxis";
87
+ yAxis: "yAxis";
88
+ angle: "angle";
89
+ color: "color";
90
+ tooltip: "tooltip";
91
+ label: "label";
92
+ primaryYAxis: "primaryYAxis";
93
+ secondaryYAxis: "secondaryYAxis";
94
+ radius: "radius";
95
+ size: "size";
96
+ }>>;
97
+ parentId: z.ZodOptional<z.ZodString>;
72
98
  }, z.core.$strip>]>>;
73
99
  secondaryMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
74
100
  id: z.ZodString;
@@ -104,6 +130,19 @@ export declare const zDualMeasure: z.ZodObject<{
104
130
  halfEven: "halfEven";
105
131
  }>>>;
106
132
  }, z.core.$strip>>>;
133
+ encoding: z.ZodOptional<z.ZodEnum<{
134
+ xAxis: "xAxis";
135
+ yAxis: "yAxis";
136
+ angle: "angle";
137
+ color: "color";
138
+ tooltip: "tooltip";
139
+ label: "label";
140
+ primaryYAxis: "primaryYAxis";
141
+ secondaryYAxis: "secondaryYAxis";
142
+ radius: "radius";
143
+ size: "size";
144
+ }>>;
145
+ parentId: z.ZodOptional<z.ZodString>;
107
146
  }, z.core.$strip>>, z.ZodObject<{
108
147
  id: z.ZodString;
109
148
  alias: z.ZodOptional<z.ZodString>;
@@ -138,6 +177,19 @@ export declare const zDualMeasure: z.ZodObject<{
138
177
  halfEven: "halfEven";
139
178
  }>>>;
140
179
  }, z.core.$strip>>>;
180
+ encoding: z.ZodOptional<z.ZodEnum<{
181
+ xAxis: "xAxis";
182
+ yAxis: "yAxis";
183
+ angle: "angle";
184
+ color: "color";
185
+ tooltip: "tooltip";
186
+ label: "label";
187
+ primaryYAxis: "primaryYAxis";
188
+ secondaryYAxis: "secondaryYAxis";
189
+ radius: "radius";
190
+ size: "size";
191
+ }>>;
192
+ parentId: z.ZodOptional<z.ZodString>;
141
193
  }, z.core.$strip>]>>;
142
194
  }, z.core.$strip>;
143
195
  export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
@@ -176,6 +228,19 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
176
228
  halfEven: "halfEven";
177
229
  }>>>;
178
230
  }, z.core.$strip>>>;
231
+ encoding: z.ZodOptional<z.ZodEnum<{
232
+ xAxis: "xAxis";
233
+ yAxis: "yAxis";
234
+ angle: "angle";
235
+ color: "color";
236
+ tooltip: "tooltip";
237
+ label: "label";
238
+ primaryYAxis: "primaryYAxis";
239
+ secondaryYAxis: "secondaryYAxis";
240
+ radius: "radius";
241
+ size: "size";
242
+ }>>;
243
+ parentId: z.ZodOptional<z.ZodString>;
179
244
  }, z.core.$strip>>, z.ZodObject<{
180
245
  id: z.ZodString;
181
246
  alias: z.ZodOptional<z.ZodString>;
@@ -210,6 +275,19 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
210
275
  halfEven: "halfEven";
211
276
  }>>>;
212
277
  }, z.core.$strip>>>;
278
+ encoding: z.ZodOptional<z.ZodEnum<{
279
+ xAxis: "xAxis";
280
+ yAxis: "yAxis";
281
+ angle: "angle";
282
+ color: "color";
283
+ tooltip: "tooltip";
284
+ label: "label";
285
+ primaryYAxis: "primaryYAxis";
286
+ secondaryYAxis: "secondaryYAxis";
287
+ radius: "radius";
288
+ size: "size";
289
+ }>>;
290
+ parentId: z.ZodOptional<z.ZodString>;
213
291
  }, z.core.$strip>]>>;
214
292
  secondaryMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
215
293
  id: z.ZodString;
@@ -245,6 +323,19 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
245
323
  halfEven: "halfEven";
246
324
  }>>>;
247
325
  }, z.core.$strip>>>;
326
+ encoding: z.ZodOptional<z.ZodEnum<{
327
+ xAxis: "xAxis";
328
+ yAxis: "yAxis";
329
+ angle: "angle";
330
+ color: "color";
331
+ tooltip: "tooltip";
332
+ label: "label";
333
+ primaryYAxis: "primaryYAxis";
334
+ secondaryYAxis: "secondaryYAxis";
335
+ radius: "radius";
336
+ size: "size";
337
+ }>>;
338
+ parentId: z.ZodOptional<z.ZodString>;
248
339
  }, z.core.$strip>>, z.ZodObject<{
249
340
  id: z.ZodString;
250
341
  alias: z.ZodOptional<z.ZodString>;
@@ -279,5 +370,18 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
279
370
  halfEven: "halfEven";
280
371
  }>>>;
281
372
  }, z.core.$strip>>>;
373
+ encoding: z.ZodOptional<z.ZodEnum<{
374
+ xAxis: "xAxis";
375
+ yAxis: "yAxis";
376
+ angle: "angle";
377
+ color: "color";
378
+ tooltip: "tooltip";
379
+ label: "label";
380
+ primaryYAxis: "primaryYAxis";
381
+ secondaryYAxis: "secondaryYAxis";
382
+ radius: "radius";
383
+ size: "size";
384
+ }>>;
385
+ parentId: z.ZodOptional<z.ZodString>;
282
386
  }, z.core.$strip>]>>;
283
387
  }, z.core.$strip>>;
@@ -34,6 +34,19 @@ export declare const zMeasure: z.ZodObject<{
34
34
  halfEven: "halfEven";
35
35
  }>>>;
36
36
  }, z.core.$strip>>>;
37
+ encoding: z.ZodOptional<z.ZodEnum<{
38
+ xAxis: "xAxis";
39
+ yAxis: "yAxis";
40
+ angle: "angle";
41
+ color: "color";
42
+ tooltip: "tooltip";
43
+ label: "label";
44
+ primaryYAxis: "primaryYAxis";
45
+ secondaryYAxis: "secondaryYAxis";
46
+ radius: "radius";
47
+ size: "size";
48
+ }>>;
49
+ parentId: z.ZodOptional<z.ZodString>;
37
50
  }, z.core.$strip>;
38
51
  export declare const zMeasureGroup: z.ZodType<MeasureGroup>;
39
52
  export declare const zMeasures: z.ZodArray<z.ZodObject<{
@@ -70,6 +83,19 @@ export declare const zMeasures: z.ZodArray<z.ZodObject<{
70
83
  halfEven: "halfEven";
71
84
  }>>>;
72
85
  }, z.core.$strip>>>;
86
+ encoding: z.ZodOptional<z.ZodEnum<{
87
+ xAxis: "xAxis";
88
+ yAxis: "yAxis";
89
+ angle: "angle";
90
+ color: "color";
91
+ tooltip: "tooltip";
92
+ label: "label";
93
+ primaryYAxis: "primaryYAxis";
94
+ secondaryYAxis: "secondaryYAxis";
95
+ radius: "radius";
96
+ size: "size";
97
+ }>>;
98
+ parentId: z.ZodOptional<z.ZodString>;
73
99
  }, z.core.$strip>>;
74
100
  export declare const zMeasureTree: z.ZodArray<z.ZodUnion<[z.ZodType<MeasureGroup, unknown, z.core.$ZodTypeInternals<MeasureGroup, unknown>>, z.ZodObject<{
75
101
  id: z.ZodString;
@@ -105,4 +131,17 @@ export declare const zMeasureTree: z.ZodArray<z.ZodUnion<[z.ZodType<MeasureGroup
105
131
  halfEven: "halfEven";
106
132
  }>>>;
107
133
  }, z.core.$strip>>>;
134
+ encoding: z.ZodOptional<z.ZodEnum<{
135
+ xAxis: "xAxis";
136
+ yAxis: "yAxis";
137
+ angle: "angle";
138
+ color: "color";
139
+ tooltip: "tooltip";
140
+ label: "label";
141
+ primaryYAxis: "primaryYAxis";
142
+ secondaryYAxis: "secondaryYAxis";
143
+ radius: "radius";
144
+ size: "size";
145
+ }>>;
146
+ parentId: z.ZodOptional<z.ZodString>;
108
147
  }, z.core.$strip>]>>;
@@ -35,6 +35,19 @@ export declare const zScatterMeasure: z.ZodObject<{
35
35
  halfEven: "halfEven";
36
36
  }>>>;
37
37
  }, z.core.$strip>>>;
38
+ encoding: z.ZodOptional<z.ZodEnum<{
39
+ xAxis: "xAxis";
40
+ yAxis: "yAxis";
41
+ angle: "angle";
42
+ color: "color";
43
+ tooltip: "tooltip";
44
+ label: "label";
45
+ primaryYAxis: "primaryYAxis";
46
+ secondaryYAxis: "secondaryYAxis";
47
+ radius: "radius";
48
+ size: "size";
49
+ }>>;
50
+ parentId: z.ZodOptional<z.ZodString>;
38
51
  }, z.core.$strip>>, z.ZodObject<{
39
52
  id: z.ZodString;
40
53
  alias: z.ZodOptional<z.ZodString>;
@@ -69,6 +82,19 @@ export declare const zScatterMeasure: z.ZodObject<{
69
82
  halfEven: "halfEven";
70
83
  }>>>;
71
84
  }, z.core.$strip>>>;
85
+ encoding: z.ZodOptional<z.ZodEnum<{
86
+ xAxis: "xAxis";
87
+ yAxis: "yAxis";
88
+ angle: "angle";
89
+ color: "color";
90
+ tooltip: "tooltip";
91
+ label: "label";
92
+ primaryYAxis: "primaryYAxis";
93
+ secondaryYAxis: "secondaryYAxis";
94
+ radius: "radius";
95
+ size: "size";
96
+ }>>;
97
+ parentId: z.ZodOptional<z.ZodString>;
72
98
  }, z.core.$strip>]>>;
73
99
  yMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
74
100
  id: z.ZodString;
@@ -104,6 +130,19 @@ export declare const zScatterMeasure: z.ZodObject<{
104
130
  halfEven: "halfEven";
105
131
  }>>>;
106
132
  }, z.core.$strip>>>;
133
+ encoding: z.ZodOptional<z.ZodEnum<{
134
+ xAxis: "xAxis";
135
+ yAxis: "yAxis";
136
+ angle: "angle";
137
+ color: "color";
138
+ tooltip: "tooltip";
139
+ label: "label";
140
+ primaryYAxis: "primaryYAxis";
141
+ secondaryYAxis: "secondaryYAxis";
142
+ radius: "radius";
143
+ size: "size";
144
+ }>>;
145
+ parentId: z.ZodOptional<z.ZodString>;
107
146
  }, z.core.$strip>>, z.ZodObject<{
108
147
  id: z.ZodString;
109
148
  alias: z.ZodOptional<z.ZodString>;
@@ -138,6 +177,19 @@ export declare const zScatterMeasure: z.ZodObject<{
138
177
  halfEven: "halfEven";
139
178
  }>>>;
140
179
  }, z.core.$strip>>>;
180
+ encoding: z.ZodOptional<z.ZodEnum<{
181
+ xAxis: "xAxis";
182
+ yAxis: "yAxis";
183
+ angle: "angle";
184
+ color: "color";
185
+ tooltip: "tooltip";
186
+ label: "label";
187
+ primaryYAxis: "primaryYAxis";
188
+ secondaryYAxis: "secondaryYAxis";
189
+ radius: "radius";
190
+ size: "size";
191
+ }>>;
192
+ parentId: z.ZodOptional<z.ZodString>;
141
193
  }, z.core.$strip>]>>;
142
194
  }, z.core.$strip>;
143
195
  export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
@@ -176,6 +228,19 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
176
228
  halfEven: "halfEven";
177
229
  }>>>;
178
230
  }, z.core.$strip>>>;
231
+ encoding: z.ZodOptional<z.ZodEnum<{
232
+ xAxis: "xAxis";
233
+ yAxis: "yAxis";
234
+ angle: "angle";
235
+ color: "color";
236
+ tooltip: "tooltip";
237
+ label: "label";
238
+ primaryYAxis: "primaryYAxis";
239
+ secondaryYAxis: "secondaryYAxis";
240
+ radius: "radius";
241
+ size: "size";
242
+ }>>;
243
+ parentId: z.ZodOptional<z.ZodString>;
179
244
  }, z.core.$strip>>, z.ZodObject<{
180
245
  id: z.ZodString;
181
246
  alias: z.ZodOptional<z.ZodString>;
@@ -210,6 +275,19 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
210
275
  halfEven: "halfEven";
211
276
  }>>>;
212
277
  }, z.core.$strip>>>;
278
+ encoding: z.ZodOptional<z.ZodEnum<{
279
+ xAxis: "xAxis";
280
+ yAxis: "yAxis";
281
+ angle: "angle";
282
+ color: "color";
283
+ tooltip: "tooltip";
284
+ label: "label";
285
+ primaryYAxis: "primaryYAxis";
286
+ secondaryYAxis: "secondaryYAxis";
287
+ radius: "radius";
288
+ size: "size";
289
+ }>>;
290
+ parentId: z.ZodOptional<z.ZodString>;
213
291
  }, z.core.$strip>]>>;
214
292
  yMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
215
293
  id: z.ZodString;
@@ -245,6 +323,19 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
245
323
  halfEven: "halfEven";
246
324
  }>>>;
247
325
  }, z.core.$strip>>>;
326
+ encoding: z.ZodOptional<z.ZodEnum<{
327
+ xAxis: "xAxis";
328
+ yAxis: "yAxis";
329
+ angle: "angle";
330
+ color: "color";
331
+ tooltip: "tooltip";
332
+ label: "label";
333
+ primaryYAxis: "primaryYAxis";
334
+ secondaryYAxis: "secondaryYAxis";
335
+ radius: "radius";
336
+ size: "size";
337
+ }>>;
338
+ parentId: z.ZodOptional<z.ZodString>;
248
339
  }, z.core.$strip>>, z.ZodObject<{
249
340
  id: z.ZodString;
250
341
  alias: z.ZodOptional<z.ZodString>;
@@ -279,5 +370,18 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
279
370
  halfEven: "halfEven";
280
371
  }>>>;
281
372
  }, z.core.$strip>>>;
373
+ encoding: z.ZodOptional<z.ZodEnum<{
374
+ xAxis: "xAxis";
375
+ yAxis: "yAxis";
376
+ angle: "angle";
377
+ color: "color";
378
+ tooltip: "tooltip";
379
+ label: "label";
380
+ primaryYAxis: "primaryYAxis";
381
+ secondaryYAxis: "secondaryYAxis";
382
+ radius: "radius";
383
+ size: "size";
384
+ }>>;
385
+ parentId: z.ZodOptional<z.ZodString>;
282
386
  }, z.core.$strip>]>>;
283
387
  }, z.core.$strip>>;