@visactor/vseed 0.0.20 → 0.0.21

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 (41) hide show
  1. package/dist/builder/builder/builder.d.ts +210 -118
  2. package/dist/index.cjs +383 -38
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +363 -24
  5. package/dist/index.js.map +1 -1
  6. package/dist/pipeline/spec/table/pipes/index.d.ts +1 -0
  7. package/dist/pipeline/spec/table/pipes/theme/bodyStyle.d.ts +2 -0
  8. package/dist/pipeline/spec/table/pipes/theme/cornerHeaderStyle.d.ts +2 -0
  9. package/dist/pipeline/spec/table/pipes/theme/frameStyle.d.ts +2 -0
  10. package/dist/pipeline/spec/table/pipes/theme/headerStyle.d.ts +2 -0
  11. package/dist/pipeline/spec/table/pipes/theme/index.d.ts +6 -0
  12. package/dist/pipeline/spec/table/pipes/theme/rowHeaderStyle.d.ts +2 -0
  13. package/dist/pipeline/spec/table/pipes/theme/scrollStyle.d.ts +2 -0
  14. package/dist/pipeline/spec/table/pipes/theme/selectionStyle.d.ts +2 -0
  15. package/dist/types/advancedVSeed.d.ts +55 -61
  16. package/dist/types/chartType/area/area.d.ts +8 -46
  17. package/dist/types/chartType/areaPercent/areaPercent.d.ts +8 -46
  18. package/dist/types/chartType/bar/bar.d.ts +9 -46
  19. package/dist/types/chartType/barParallel/barParallel.d.ts +8 -46
  20. package/dist/types/chartType/barPercent/barPercent.d.ts +8 -46
  21. package/dist/types/chartType/column/column.d.ts +8 -46
  22. package/dist/types/chartType/columnParallel/columnParallel.d.ts +8 -46
  23. package/dist/types/chartType/columnPercent/columnPercent.d.ts +8 -46
  24. package/dist/types/chartType/donut/donut.d.ts +8 -46
  25. package/dist/types/chartType/dualAxis/dualAxis.d.ts +2 -2
  26. package/dist/types/chartType/funnel/funnel.d.ts +8 -46
  27. package/dist/types/chartType/line/line.d.ts +8 -46
  28. package/dist/types/chartType/pie/pie.d.ts +8 -46
  29. package/dist/types/chartType/pivotTable/pivotTable.d.ts +8 -7
  30. package/dist/types/chartType/rose/rose.d.ts +9 -46
  31. package/dist/types/chartType/roseParallel/roseParallel.d.ts +10 -47
  32. package/dist/types/chartType/scatter/scatter.d.ts +8 -46
  33. package/dist/types/chartType/table/table.d.ts +6 -44
  34. package/dist/types/properties/config/config.d.ts +50 -2
  35. package/dist/types/properties/dimensions/dimensions.d.ts +20 -44
  36. package/dist/types/properties/measures/measures.d.ts +11 -87
  37. package/dist/types/properties/theme/customTheme.d.ts +48 -4
  38. package/dist/types/vseed.d.ts +101 -709
  39. package/dist/umd/index.js +703 -40
  40. package/dist/umd/index.js.map +1 -1
  41. package/package.json +1 -1
@@ -2,3 +2,4 @@ export * from './init';
2
2
  export * from './columns';
3
3
  export * from './rows';
4
4
  export * from './indicators';
5
+ export * from './theme';
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../../types';
2
+ export declare const bodyStyle: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../../types';
2
+ export declare const cornerHeaderStyle: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../../types';
2
+ export declare const frameStyle: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../../types';
2
+ export declare const headerStyle: SpecPipe;
@@ -0,0 +1,6 @@
1
+ export * from './bodyStyle';
2
+ export * from './headerStyle';
3
+ export * from './rowHeaderStyle';
4
+ export * from './cornerHeaderStyle';
5
+ export * from './frameStyle';
6
+ export * from './selectionStyle';
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../../types';
2
+ export declare const rowHeaderStyle: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../../types';
2
+ export declare const frameStyle: SpecPipe;
@@ -0,0 +1,2 @@
1
+ import type { SpecPipe } from '../../../../../types';
2
+ export declare const selectionStyle: SpecPipe;
@@ -36,70 +36,20 @@ export declare const zAdvancedVSeed: z.ZodObject<{
36
36
  groupName: z.ZodString;
37
37
  }, z.core.$strip>;
38
38
  }, z.core.$strip>>;
39
- dimensions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
39
+ dimensions: z.ZodArray<z.ZodUnion<[z.ZodType<import("./properties").DimensionGroup, unknown, z.core.$ZodTypeInternals<import("./properties").DimensionGroup, unknown>>, z.ZodObject<{
40
40
  id: z.ZodString;
41
41
  alias: z.ZodOptional<z.ZodString>;
42
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
43
- id: z.ZodString;
44
- alias: z.ZodOptional<z.ZodString>;
45
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
46
- dimension: "dimension";
47
- rowDimension: "rowDimension";
48
- columnDimension: "columnDimension";
49
- }>>>;
50
- }, z.core.$strip>]>>>;
51
- }, z.core.$strip>, z.ZodObject<{
52
- id: z.ZodString;
53
- alias: z.ZodOptional<z.ZodString>;
54
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
42
+ location: z.ZodDefault<z.ZodEnum<{
55
43
  dimension: "dimension";
56
44
  rowDimension: "rowDimension";
57
45
  columnDimension: "columnDimension";
58
- }>>>;
46
+ }>>;
59
47
  }, z.core.$strip>]>>;
60
- measures: z.ZodArray<z.ZodUnion<[z.ZodObject<{
61
- id: z.ZodString;
62
- alias: z.ZodOptional<z.ZodString>;
63
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
64
- id: z.ZodString;
65
- alias: z.ZodOptional<z.ZodString>;
66
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
67
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
68
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
69
- number: "number";
70
- percent: "percent";
71
- permille: "permille";
72
- scientific: "scientific";
73
- }>>>;
74
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
75
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
76
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
77
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
78
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
79
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
80
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
81
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
82
- morePrecision: "morePrecision";
83
- lessPrecision: "lessPrecision";
84
- }>>>;
85
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
86
- floor: "floor";
87
- ceil: "ceil";
88
- expand: "expand";
89
- trunc: "trunc";
90
- halfCeil: "halfCeil";
91
- halfFloor: "halfFloor";
92
- halfExpand: "halfExpand";
93
- halfTrunc: "halfTrunc";
94
- halfEven: "halfEven";
95
- }>>>;
96
- }, z.core.$strip>>>>;
97
- }, z.core.$strip>]>>>;
98
- }, z.core.$strip>, z.ZodObject<{
48
+ measures: z.ZodArray<z.ZodUnion<[z.ZodType<import("./properties").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("./properties").MeasureGroup, unknown>>, z.ZodObject<{
99
49
  id: z.ZodString;
100
50
  alias: z.ZodOptional<z.ZodString>;
101
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
102
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
51
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
52
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
103
53
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
104
54
  number: "number";
105
55
  percent: "percent";
@@ -128,7 +78,7 @@ export declare const zAdvancedVSeed: z.ZodObject<{
128
78
  halfTrunc: "halfTrunc";
129
79
  halfEven: "halfEven";
130
80
  }>>>;
131
- }, z.core.$strip>>>>;
81
+ }, z.core.$strip>>>;
132
82
  }, z.core.$strip>]>>;
133
83
  encoding: z.ZodArray<z.ZodObject<{
134
84
  x: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -141,8 +91,30 @@ export declare const zAdvancedVSeed: z.ZodObject<{
141
91
  size: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
92
  }, z.core.$strip>>;
143
93
  config: z.ZodObject<{
144
- table: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
145
- pivotTable: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
94
+ table: z.ZodOptional<z.ZodObject<{
95
+ borderColor: z.ZodOptional<z.ZodString>;
96
+ bodyFontSize: z.ZodOptional<z.ZodNumber>;
97
+ bodyFontColor: z.ZodOptional<z.ZodString>;
98
+ bodyBackgroundColor: z.ZodOptional<z.ZodString>;
99
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
100
+ headerFontSize: z.ZodOptional<z.ZodNumber>;
101
+ headerFontColor: z.ZodOptional<z.ZodString>;
102
+ headerBackgroundColor: z.ZodOptional<z.ZodString>;
103
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
104
+ selectedBorderColor: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>>;
106
+ pivotTable: z.ZodOptional<z.ZodObject<{
107
+ borderColor: z.ZodOptional<z.ZodString>;
108
+ bodyFontSize: z.ZodOptional<z.ZodNumber>;
109
+ bodyFontColor: z.ZodOptional<z.ZodString>;
110
+ bodyBackgroundColor: z.ZodOptional<z.ZodString>;
111
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
112
+ headerFontSize: z.ZodOptional<z.ZodNumber>;
113
+ headerFontColor: z.ZodOptional<z.ZodString>;
114
+ headerBackgroundColor: z.ZodOptional<z.ZodString>;
115
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
116
+ selectedBorderColor: z.ZodOptional<z.ZodString>;
117
+ }, z.core.$strip>>;
146
118
  line: z.ZodOptional<z.ZodObject<{
147
119
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
148
120
  label: z.ZodOptional<z.ZodObject<{
@@ -2706,8 +2678,30 @@ export declare const zAdvancedVSeed: z.ZodObject<{
2706
2678
  }, z.core.$strip>;
2707
2679
  customTheme: z.ZodObject<{
2708
2680
  config: z.ZodOptional<z.ZodObject<{
2709
- table: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
2710
- pivotTable: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
2681
+ table: z.ZodOptional<z.ZodObject<{
2682
+ borderColor: z.ZodOptional<z.ZodString>;
2683
+ bodyFontSize: z.ZodOptional<z.ZodNumber>;
2684
+ bodyFontColor: z.ZodOptional<z.ZodString>;
2685
+ bodyBackgroundColor: z.ZodOptional<z.ZodString>;
2686
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
2687
+ headerFontSize: z.ZodOptional<z.ZodNumber>;
2688
+ headerFontColor: z.ZodOptional<z.ZodString>;
2689
+ headerBackgroundColor: z.ZodOptional<z.ZodString>;
2690
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
2691
+ selectedBorderColor: z.ZodOptional<z.ZodString>;
2692
+ }, z.core.$strip>>;
2693
+ pivotTable: z.ZodOptional<z.ZodObject<{
2694
+ borderColor: z.ZodOptional<z.ZodString>;
2695
+ bodyFontSize: z.ZodOptional<z.ZodNumber>;
2696
+ bodyFontColor: z.ZodOptional<z.ZodString>;
2697
+ bodyBackgroundColor: z.ZodOptional<z.ZodString>;
2698
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
2699
+ headerFontSize: z.ZodOptional<z.ZodNumber>;
2700
+ headerFontColor: z.ZodOptional<z.ZodString>;
2701
+ headerBackgroundColor: z.ZodOptional<z.ZodString>;
2702
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
2703
+ selectedBorderColor: z.ZodOptional<z.ZodString>;
2704
+ }, z.core.$strip>>;
2711
2705
  line: z.ZodOptional<z.ZodObject<{
2712
2706
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
2713
2707
  label: z.ZodOptional<z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, DimensionTree } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, MeasureTree } from '../../properties';
3
3
  import { z } from 'zod';
4
4
  /**
5
5
  * 面积图类型定义
@@ -44,7 +44,7 @@ export interface Area {
44
44
  * @type {DimensionTree}
45
45
  * @example [{id: 'value', alias: '数值'}]
46
46
  */
47
- measures?: DimensionTree;
47
+ measures?: MeasureTree;
48
48
  /**
49
49
  * 图表的背景颜色
50
50
  * @default transparent 默认为透明背景
@@ -155,55 +155,17 @@ export declare const zArea: z.ZodObject<{
155
155
  dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
156
156
  id: z.ZodString;
157
157
  alias: z.ZodOptional<z.ZodString>;
158
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
158
+ location: z.ZodDefault<z.ZodEnum<{
159
159
  dimension: "dimension";
160
160
  rowDimension: "rowDimension";
161
161
  columnDimension: "columnDimension";
162
- }>>>;
162
+ }>>;
163
163
  }, z.core.$strip>>>;
164
- measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
165
- id: z.ZodString;
166
- alias: z.ZodOptional<z.ZodString>;
167
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
168
- id: z.ZodString;
169
- alias: z.ZodOptional<z.ZodString>;
170
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
171
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
172
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
173
- number: "number";
174
- percent: "percent";
175
- permille: "permille";
176
- scientific: "scientific";
177
- }>>>;
178
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
179
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
180
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
181
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
182
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
183
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
184
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
185
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
186
- morePrecision: "morePrecision";
187
- lessPrecision: "lessPrecision";
188
- }>>>;
189
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
190
- floor: "floor";
191
- ceil: "ceil";
192
- expand: "expand";
193
- trunc: "trunc";
194
- halfCeil: "halfCeil";
195
- halfFloor: "halfFloor";
196
- halfExpand: "halfExpand";
197
- halfTrunc: "halfTrunc";
198
- halfEven: "halfEven";
199
- }>>>;
200
- }, z.core.$strip>>>>;
201
- }, z.core.$strip>]>>>;
202
- }, z.core.$strip>, z.ZodObject<{
164
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
203
165
  id: z.ZodString;
204
166
  alias: z.ZodOptional<z.ZodString>;
205
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
206
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
167
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
168
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
207
169
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
208
170
  number: "number";
209
171
  percent: "percent";
@@ -232,7 +194,7 @@ export declare const zArea: z.ZodObject<{
232
194
  halfTrunc: "halfTrunc";
233
195
  halfEven: "halfEven";
234
196
  }>>>;
235
- }, z.core.$strip>>>>;
197
+ }, z.core.$strip>>>;
236
198
  }, z.core.$strip>]>>>;
237
199
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
238
200
  color: z.ZodOptional<z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, DimensionTree, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine, MeasureTree } from '../../properties';
3
3
  import { z } from 'zod';
4
4
  /**
5
5
  * 百分比面积图类型定义
@@ -43,7 +43,7 @@ export interface AreaPercent {
43
43
  * @type {DimensionTree}
44
44
  * @example [{id: 'value', alias: '数值占比', format: 'percent'}]
45
45
  */
46
- measures?: DimensionTree;
46
+ measures?: MeasureTree;
47
47
  /**
48
48
  * 图表的背景颜色
49
49
  * @default transparent 默认为透明背景
@@ -154,55 +154,17 @@ export declare const zAreaPercent: z.ZodObject<{
154
154
  dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
155
  id: z.ZodString;
156
156
  alias: z.ZodOptional<z.ZodString>;
157
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
157
+ location: z.ZodDefault<z.ZodEnum<{
158
158
  dimension: "dimension";
159
159
  rowDimension: "rowDimension";
160
160
  columnDimension: "columnDimension";
161
- }>>>;
161
+ }>>;
162
162
  }, z.core.$strip>>>;
163
- measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
164
- id: z.ZodString;
165
- alias: z.ZodOptional<z.ZodString>;
166
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
167
- id: z.ZodString;
168
- alias: z.ZodOptional<z.ZodString>;
169
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
170
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
171
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
172
- number: "number";
173
- percent: "percent";
174
- permille: "permille";
175
- scientific: "scientific";
176
- }>>>;
177
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
178
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
179
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
180
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
181
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
182
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
183
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
184
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
185
- morePrecision: "morePrecision";
186
- lessPrecision: "lessPrecision";
187
- }>>>;
188
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
189
- floor: "floor";
190
- ceil: "ceil";
191
- expand: "expand";
192
- trunc: "trunc";
193
- halfCeil: "halfCeil";
194
- halfFloor: "halfFloor";
195
- halfExpand: "halfExpand";
196
- halfTrunc: "halfTrunc";
197
- halfEven: "halfEven";
198
- }>>>;
199
- }, z.core.$strip>>>>;
200
- }, z.core.$strip>]>>>;
201
- }, z.core.$strip>, z.ZodObject<{
163
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
202
164
  id: z.ZodString;
203
165
  alias: z.ZodOptional<z.ZodString>;
204
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
205
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
166
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
167
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
206
168
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
207
169
  number: "number";
208
170
  percent: "percent";
@@ -231,7 +193,7 @@ export declare const zAreaPercent: z.ZodObject<{
231
193
  halfTrunc: "halfTrunc";
232
194
  halfEven: "halfEven";
233
195
  }>>>;
234
- }, z.core.$strip>>>>;
196
+ }, z.core.$strip>>>;
235
197
  }, z.core.$strip>]>>>;
236
198
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
237
199
  color: z.ZodOptional<z.ZodObject<{
@@ -1,5 +1,6 @@
1
1
  import { type Locale } from '../../i18n';
2
- import { type AnnotationArea, type AnnotationHorizontalLine, type AnnotationPoint, type AnnotationVerticalLine, type BackgroundColor, type BarStyle, type Color, type CrosshairRect, type Dataset, type Dimensions, type Label, type Legend, type DimensionTree, type StackCornerRadius, type Theme, type Tooltip, type XLinearAxis, type YBandAxis } from '../../properties';
2
+ import type { MeasureTree } from '../../properties';
3
+ import { type AnnotationArea, type AnnotationHorizontalLine, type AnnotationPoint, type AnnotationVerticalLine, type BackgroundColor, type BarStyle, type Color, type CrosshairRect, type Dataset, type Dimensions, type Label, type Legend, type StackCornerRadius, type Theme, type Tooltip, type XLinearAxis, type YBandAxis } from '../../properties';
3
4
  import { z } from 'zod';
4
5
  /**
5
6
  * 条形图类型定义
@@ -43,7 +44,7 @@ export interface Bar {
43
44
  * @type {DimensionTree}
44
45
  * @example [{id: "value", alias: "数值"}]
45
46
  */
46
- measures?: DimensionTree;
47
+ measures?: MeasureTree;
47
48
  /**
48
49
  * 图表的背景颜色
49
50
  * @default transparent 默认为透明背景
@@ -142,55 +143,17 @@ export declare const zBar: z.ZodObject<{
142
143
  dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
143
144
  id: z.ZodString;
144
145
  alias: z.ZodOptional<z.ZodString>;
145
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
146
+ location: z.ZodDefault<z.ZodEnum<{
146
147
  dimension: "dimension";
147
148
  rowDimension: "rowDimension";
148
149
  columnDimension: "columnDimension";
149
- }>>>;
150
+ }>>;
150
151
  }, z.core.$strip>>>;
151
- measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
152
- id: z.ZodString;
153
- alias: z.ZodOptional<z.ZodString>;
154
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
155
- id: z.ZodString;
156
- alias: z.ZodOptional<z.ZodString>;
157
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
158
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
159
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
160
- number: "number";
161
- percent: "percent";
162
- permille: "permille";
163
- scientific: "scientific";
164
- }>>>;
165
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
166
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
167
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
168
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
169
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
170
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
171
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
172
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
173
- morePrecision: "morePrecision";
174
- lessPrecision: "lessPrecision";
175
- }>>>;
176
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
177
- floor: "floor";
178
- ceil: "ceil";
179
- expand: "expand";
180
- trunc: "trunc";
181
- halfCeil: "halfCeil";
182
- halfFloor: "halfFloor";
183
- halfExpand: "halfExpand";
184
- halfTrunc: "halfTrunc";
185
- halfEven: "halfEven";
186
- }>>>;
187
- }, z.core.$strip>>>>;
188
- }, z.core.$strip>]>>>;
189
- }, z.core.$strip>, z.ZodObject<{
152
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
190
153
  id: z.ZodString;
191
154
  alias: z.ZodOptional<z.ZodString>;
192
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
193
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
155
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
156
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
194
157
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
195
158
  number: "number";
196
159
  percent: "percent";
@@ -219,7 +182,7 @@ export declare const zBar: z.ZodObject<{
219
182
  halfTrunc: "halfTrunc";
220
183
  halfEven: "halfEven";
221
184
  }>>>;
222
- }, z.core.$strip>>>>;
185
+ }, z.core.$strip>>>;
223
186
  }, z.core.$strip>]>>>;
224
187
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
225
188
  color: z.ZodOptional<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { Locale } from '../../i18n';
3
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, DimensionTree, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
3
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis, MeasureTree } from '../../properties';
4
4
  /**
5
5
  * 并列条形图类型定义
6
6
  * @description 并列条形图,适用于多指标横向并行对比场景,多个条形平行排列展示不同指标值
@@ -43,7 +43,7 @@ export interface BarParallel {
43
43
  * @type {DimensionTree}
44
44
  * @example [{id: 'value1', alias: '指标1'}, {id: 'value2', alias: '指标2'}]
45
45
  */
46
- measures?: DimensionTree;
46
+ measures?: MeasureTree;
47
47
  /**
48
48
  * 图表的背景颜色
49
49
  * @default transparent 默认为透明背景
@@ -142,55 +142,17 @@ export declare const zBarParallel: z.ZodObject<{
142
142
  dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
143
143
  id: z.ZodString;
144
144
  alias: z.ZodOptional<z.ZodString>;
145
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
145
+ location: z.ZodDefault<z.ZodEnum<{
146
146
  dimension: "dimension";
147
147
  rowDimension: "rowDimension";
148
148
  columnDimension: "columnDimension";
149
- }>>>;
149
+ }>>;
150
150
  }, z.core.$strip>>>;
151
- measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
152
- id: z.ZodString;
153
- alias: z.ZodOptional<z.ZodString>;
154
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
155
- id: z.ZodString;
156
- alias: z.ZodOptional<z.ZodString>;
157
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
158
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
159
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
160
- number: "number";
161
- percent: "percent";
162
- permille: "permille";
163
- scientific: "scientific";
164
- }>>>;
165
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
166
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
167
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
168
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
169
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
170
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
171
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
172
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
173
- morePrecision: "morePrecision";
174
- lessPrecision: "lessPrecision";
175
- }>>>;
176
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
177
- floor: "floor";
178
- ceil: "ceil";
179
- expand: "expand";
180
- trunc: "trunc";
181
- halfCeil: "halfCeil";
182
- halfFloor: "halfFloor";
183
- halfExpand: "halfExpand";
184
- halfTrunc: "halfTrunc";
185
- halfEven: "halfEven";
186
- }>>>;
187
- }, z.core.$strip>>>>;
188
- }, z.core.$strip>]>>>;
189
- }, z.core.$strip>, z.ZodObject<{
151
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
190
152
  id: z.ZodString;
191
153
  alias: z.ZodOptional<z.ZodString>;
192
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
193
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
154
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
155
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
194
156
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
195
157
  number: "number";
196
158
  percent: "percent";
@@ -219,7 +181,7 @@ export declare const zBarParallel: z.ZodObject<{
219
181
  halfTrunc: "halfTrunc";
220
182
  halfEven: "halfEven";
221
183
  }>>>;
222
- }, z.core.$strip>>>>;
184
+ }, z.core.$strip>>>;
223
185
  }, z.core.$strip>]>>>;
224
186
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
225
187
  color: z.ZodOptional<z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { Locale } from '../../i18n';
3
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, DimensionTree, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
3
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis, MeasureTree } from '../../properties';
4
4
  /**
5
5
  * 百分比条形图类型定义
6
6
  * @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
@@ -43,7 +43,7 @@ export interface BarPercent {
43
43
  * @type {DimensionTree}
44
44
  * @example [{id: 'value', alias: '数值占比', format: 'percent'}]
45
45
  */
46
- measures?: DimensionTree;
46
+ measures?: MeasureTree;
47
47
  /**
48
48
  * 图表的背景颜色
49
49
  * @default transparent 默认为透明背景
@@ -142,55 +142,17 @@ export declare const zBarPercent: z.ZodObject<{
142
142
  dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
143
143
  id: z.ZodString;
144
144
  alias: z.ZodOptional<z.ZodString>;
145
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
145
+ location: z.ZodDefault<z.ZodEnum<{
146
146
  dimension: "dimension";
147
147
  rowDimension: "rowDimension";
148
148
  columnDimension: "columnDimension";
149
- }>>>;
149
+ }>>;
150
150
  }, z.core.$strip>>>;
151
- measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
152
- id: z.ZodString;
153
- alias: z.ZodOptional<z.ZodString>;
154
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
155
- id: z.ZodString;
156
- alias: z.ZodOptional<z.ZodString>;
157
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
158
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
159
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
160
- number: "number";
161
- percent: "percent";
162
- permille: "permille";
163
- scientific: "scientific";
164
- }>>>;
165
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
166
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
167
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
168
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
169
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
170
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
171
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
172
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
173
- morePrecision: "morePrecision";
174
- lessPrecision: "lessPrecision";
175
- }>>>;
176
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
177
- floor: "floor";
178
- ceil: "ceil";
179
- expand: "expand";
180
- trunc: "trunc";
181
- halfCeil: "halfCeil";
182
- halfFloor: "halfFloor";
183
- halfExpand: "halfExpand";
184
- halfTrunc: "halfTrunc";
185
- halfEven: "halfEven";
186
- }>>>;
187
- }, z.core.$strip>>>>;
188
- }, z.core.$strip>]>>>;
189
- }, z.core.$strip>, z.ZodObject<{
151
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
190
152
  id: z.ZodString;
191
153
  alias: z.ZodOptional<z.ZodString>;
192
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
193
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
154
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
155
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
194
156
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
195
157
  number: "number";
196
158
  percent: "percent";
@@ -219,7 +181,7 @@ export declare const zBarPercent: z.ZodObject<{
219
181
  halfTrunc: "halfTrunc";
220
182
  halfEven: "halfEven";
221
183
  }>>>;
222
- }, z.core.$strip>>>>;
184
+ }, z.core.$strip>>>;
223
185
  }, z.core.$strip>]>>>;
224
186
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
225
187
  color: z.ZodOptional<z.ZodObject<{