@visactor/vseed 0.1.16 → 0.1.18
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/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/area.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/bar.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/line.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/radar.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/rose.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js +5 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +6 -2
- package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/config.d.ts +0 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/config.js +1 -2
- package/dist/esm/pipeline/advanced/chart/pipes/config/config.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/config/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/index.js +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js +32 -0
- package/dist/esm/pipeline/advanced/chart/pipes/config/scatter.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteEncodingForMeasure.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteEncodingForMeasure.js +12 -0
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteEncodingForMeasure.js.map +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/measures/index.d.ts +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/measures/index.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js +1 -3
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +1 -3
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/index.d.ts +0 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/index.js +1 -2
- package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js +2 -17
- package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/index.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/init/barParallel.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/init/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/columnParallel.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/init/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/init/roseParallel.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/init/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/size/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/size/index.js +2 -0
- package/dist/esm/pipeline/spec/chart/pipes/{axes/angle.d.ts → size/scatterSize.d.ts} +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js +22 -0
- package/dist/esm/pipeline/spec/chart/pipes/size/scatterSize.js.map +1 -0
- package/dist/esm/pipeline/utils/format/createNumFormatter.js +4 -1
- package/dist/esm/pipeline/utils/format/createNumFormatter.js.map +1 -1
- package/dist/esm/types/chartType/area/area.d.ts +1 -1
- package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +1 -1
- package/dist/esm/types/chartType/bar/bar.d.ts +1 -1
- package/dist/esm/types/chartType/barParallel/barParallel.d.ts +1 -1
- package/dist/esm/types/chartType/barPercent/barPercent.d.ts +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +1 -1
- package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +1 -1
- package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +1 -1
- package/dist/esm/types/chartType/donut/donut.d.ts +1 -1
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +10 -40
- package/dist/esm/types/chartType/funnel/funnel.d.ts +1 -1
- package/dist/esm/types/chartType/pie/pie.d.ts +1 -1
- package/dist/esm/types/chartType/rose/rose.d.ts +1 -1
- package/dist/esm/types/chartType/scatter/scatter.d.ts +14 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +12 -40
- package/dist/esm/types/chartType/scatter/zScatter.js +2 -0
- package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
- package/dist/esm/types/chartType/table/table.d.ts +1 -1
- package/dist/esm/types/properties/format/numFormat.d.ts +1 -5
- package/dist/esm/types/properties/format/numFormat.js.map +1 -1
- package/dist/esm/types/properties/measures/dualMeasures.d.ts +2 -2
- package/dist/esm/types/properties/measures/scatterMeasures.d.ts +2 -2
- package/dist/esm/types/properties/measures/zDualMeasures.d.ts +20 -80
- package/dist/esm/types/properties/measures/zDualMeasures.js +7 -1
- package/dist/esm/types/properties/measures/zDualMeasures.js.map +1 -1
- package/dist/esm/types/properties/measures/zScatterMeasures.d.ts +20 -80
- package/dist/esm/types/properties/measures/zScatterMeasures.js +8 -2
- package/dist/esm/types/properties/measures/zScatterMeasures.js.map +1 -1
- package/dist/esm/types/zVseed.d.ts +22 -80
- package/dist/umd/index.js +198 -100
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteTooltipAndLabelMeasure.d.ts +0 -2
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteTooltipAndLabelMeasure.js +0 -12
- package/dist/esm/pipeline/advanced/chart/pipes/measures/deleteTooltipAndLabelMeasure.js.map +0 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/angle.js +0 -46
- package/dist/esm/pipeline/spec/chart/pipes/axes/angle.js.map +0 -1
@@ -46,7 +46,7 @@ export interface BarParallel {
|
|
46
46
|
dimensions?: Dimensions;
|
47
47
|
/**
|
48
48
|
* @description 指标, 并列条形图指标会自动合并为一个指标, 映射到X轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
49
|
-
* @type {
|
49
|
+
* @type {MeasureTree}
|
50
50
|
* @example [{id: 'value1', alias: '指标1'}, {id: 'value2', alias: '指标2'}]
|
51
51
|
*/
|
52
52
|
measures?: MeasureTree;
|
@@ -46,7 +46,7 @@ export interface BarPercent {
|
|
46
46
|
dimensions?: Dimensions;
|
47
47
|
/**
|
48
48
|
* @description 指标, 指标会自动合并为一个指标, 映射到X轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
49
|
-
* @type {
|
49
|
+
* @type {MeasureTree}
|
50
50
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
51
51
|
*/
|
52
52
|
measures?: MeasureTree;
|
@@ -46,7 +46,7 @@ export interface Column {
|
|
46
46
|
dimensions?: Dimensions;
|
47
47
|
/**
|
48
48
|
* @description 柱状图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
49
|
-
* @type {
|
49
|
+
* @type {MeasureTree}
|
50
50
|
* @example [{id: "value", alias: "数值"}]
|
51
51
|
*/
|
52
52
|
measures?: MeasureTree;
|
@@ -44,7 +44,7 @@ export interface ColumnParallel {
|
|
44
44
|
dimensions?: Dimensions;
|
45
45
|
/**
|
46
46
|
* @description 指标, 并列柱状图的所有指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
47
|
-
* @type {
|
47
|
+
* @type {MeasureTree}
|
48
48
|
Axis * @example [{id: 'value1', alias: '指标1'}, {id: 'value2', alias: '指标2'}]
|
49
49
|
*/
|
50
50
|
measures?: MeasureTree;
|
@@ -50,7 +50,7 @@ export interface ColumnPercent {
|
|
50
50
|
/**
|
51
51
|
* 指标
|
52
52
|
* @description 百分比柱状图指标会自动合并为一个指标, 映射到Y轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
53
|
-
* @type {
|
53
|
+
* @type {MeasureTree}
|
54
54
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
55
55
|
*/
|
56
56
|
measures?: MeasureTree;
|
@@ -49,7 +49,7 @@ export interface Donut {
|
|
49
49
|
/**
|
50
50
|
* 指标
|
51
51
|
* @description 环形图的所有指标会自动合并为一个指标, 映射到饼图的半径, 存在多个指标时, 指标名称会与其余维度合并, 并作为图例项展示.
|
52
|
-
* @type {
|
52
|
+
* @type {MeasureTree}
|
53
53
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
54
54
|
*/
|
55
55
|
measures?: MeasureTree;
|
@@ -100,10 +100,7 @@ export declare const zDualAxis: z.ZodObject<{
|
|
100
100
|
dualMeasures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
101
101
|
id: z.ZodString;
|
102
102
|
primaryMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
103
|
-
|
104
|
-
alias: z.ZodOptional<z.ZodString>;
|
105
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
106
|
-
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
103
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
107
104
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
108
105
|
number: "number";
|
109
106
|
percent: "percent";
|
@@ -133,7 +130,10 @@ export declare const zDualAxis: z.ZodObject<{
|
|
133
130
|
halfEven: "halfEven";
|
134
131
|
}>>>;
|
135
132
|
}, z.core.$strip>>>;
|
136
|
-
|
133
|
+
id: z.ZodString;
|
134
|
+
alias: z.ZodOptional<z.ZodString>;
|
135
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
136
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
137
137
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
138
138
|
number: "number";
|
139
139
|
percent: "percent";
|
@@ -163,26 +163,8 @@ export declare const zDualAxis: z.ZodObject<{
|
|
163
163
|
halfEven: "halfEven";
|
164
164
|
}>>>;
|
165
165
|
}, z.core.$strip>>>;
|
166
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
167
|
-
column: "column";
|
168
|
-
xAxis: "xAxis";
|
169
|
-
yAxis: "yAxis";
|
170
|
-
angle: "angle";
|
171
|
-
color: "color";
|
172
|
-
detail: "detail";
|
173
|
-
tooltip: "tooltip";
|
174
|
-
label: "label";
|
175
|
-
primaryYAxis: "primaryYAxis";
|
176
|
-
secondaryYAxis: "secondaryYAxis";
|
177
|
-
radius: "radius";
|
178
|
-
size: "size";
|
179
|
-
}>>;
|
180
|
-
parentId: z.ZodOptional<z.ZodString>;
|
181
166
|
}, z.core.$strip>>, z.ZodObject<{
|
182
|
-
|
183
|
-
alias: z.ZodOptional<z.ZodString>;
|
184
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
185
|
-
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
167
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
186
168
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
187
169
|
number: "number";
|
188
170
|
percent: "percent";
|
@@ -212,7 +194,10 @@ export declare const zDualAxis: z.ZodObject<{
|
|
212
194
|
halfEven: "halfEven";
|
213
195
|
}>>>;
|
214
196
|
}, z.core.$strip>>>;
|
215
|
-
|
197
|
+
id: z.ZodString;
|
198
|
+
alias: z.ZodOptional<z.ZodString>;
|
199
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
200
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
216
201
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
217
202
|
number: "number";
|
218
203
|
percent: "percent";
|
@@ -242,21 +227,6 @@ export declare const zDualAxis: z.ZodObject<{
|
|
242
227
|
halfEven: "halfEven";
|
243
228
|
}>>>;
|
244
229
|
}, z.core.$strip>>>;
|
245
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
246
|
-
column: "column";
|
247
|
-
xAxis: "xAxis";
|
248
|
-
yAxis: "yAxis";
|
249
|
-
angle: "angle";
|
250
|
-
color: "color";
|
251
|
-
detail: "detail";
|
252
|
-
tooltip: "tooltip";
|
253
|
-
label: "label";
|
254
|
-
primaryYAxis: "primaryYAxis";
|
255
|
-
secondaryYAxis: "secondaryYAxis";
|
256
|
-
radius: "radius";
|
257
|
-
size: "size";
|
258
|
-
}>>;
|
259
|
-
parentId: z.ZodOptional<z.ZodString>;
|
260
230
|
}, z.core.$strip>]>>;
|
261
231
|
secondaryMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
262
232
|
id: z.ZodString;
|
@@ -49,7 +49,7 @@ export interface Pie {
|
|
49
49
|
/**
|
50
50
|
* 指标
|
51
51
|
* @description 饼图的所有指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
52
|
-
* @type {
|
52
|
+
* @type {MeasureTree}
|
53
53
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
54
54
|
*/
|
55
55
|
measures?: MeasureTree;
|
@@ -126,6 +126,20 @@ export interface Scatter {
|
|
126
126
|
* ]
|
127
127
|
*/
|
128
128
|
scatterMeasures?: ScatterMeasures;
|
129
|
+
/**
|
130
|
+
* @description 散点图指标的大小, 用于定义散点图中数据点的大小 或 大小范围
|
131
|
+
* - 若大小范围是一个数字, 例如10, 表示数据点的大小范围固定为10
|
132
|
+
* - 若大小范围是一个长度为2的数组, 例如[10, 40], 表示数据点的大小范围在10到40之间
|
133
|
+
* - 与sizeRange互斥, 优先级低于 size
|
134
|
+
*/
|
135
|
+
size?: number | number[];
|
136
|
+
/**
|
137
|
+
* @description 散点图指标的大小范围, 用于定义散点图中数据点的大小范围,
|
138
|
+
* - 若大小范围是一个长度为2的数组, 例如[10, 40], 表示数据点的大小范围在10到40之间
|
139
|
+
* - 若大小范围是一个数字, 例如10, 表示数据点的大小范围固定为10
|
140
|
+
* - 与sizeRange互斥, 优先级高于 size
|
141
|
+
*/
|
142
|
+
sizeRange?: number | number[];
|
129
143
|
/**
|
130
144
|
* 图表的背景颜色
|
131
145
|
* @default transparent 默认为透明背景
|
@@ -114,10 +114,7 @@ export declare const zScatter: z.ZodObject<{
|
|
114
114
|
scatterMeasures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
115
115
|
id: z.ZodString;
|
116
116
|
xMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
117
|
-
|
118
|
-
alias: z.ZodOptional<z.ZodString>;
|
119
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
120
|
-
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
117
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
121
118
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
122
119
|
number: "number";
|
123
120
|
percent: "percent";
|
@@ -147,7 +144,10 @@ export declare const zScatter: z.ZodObject<{
|
|
147
144
|
halfEven: "halfEven";
|
148
145
|
}>>>;
|
149
146
|
}, z.core.$strip>>>;
|
150
|
-
|
147
|
+
id: z.ZodString;
|
148
|
+
alias: z.ZodOptional<z.ZodString>;
|
149
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
150
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
151
151
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
152
152
|
number: "number";
|
153
153
|
percent: "percent";
|
@@ -177,21 +177,6 @@ export declare const zScatter: z.ZodObject<{
|
|
177
177
|
halfEven: "halfEven";
|
178
178
|
}>>>;
|
179
179
|
}, z.core.$strip>>>;
|
180
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
181
|
-
column: "column";
|
182
|
-
xAxis: "xAxis";
|
183
|
-
yAxis: "yAxis";
|
184
|
-
angle: "angle";
|
185
|
-
color: "color";
|
186
|
-
detail: "detail";
|
187
|
-
tooltip: "tooltip";
|
188
|
-
label: "label";
|
189
|
-
primaryYAxis: "primaryYAxis";
|
190
|
-
secondaryYAxis: "secondaryYAxis";
|
191
|
-
radius: "radius";
|
192
|
-
size: "size";
|
193
|
-
}>>;
|
194
|
-
parentId: z.ZodOptional<z.ZodString>;
|
195
180
|
}, z.core.$strip>>, z.ZodObject<{
|
196
181
|
id: z.ZodString;
|
197
182
|
alias: z.ZodOptional<z.ZodString>;
|
@@ -273,10 +258,7 @@ export declare const zScatter: z.ZodObject<{
|
|
273
258
|
parentId: z.ZodOptional<z.ZodString>;
|
274
259
|
}, z.core.$strip>]>>;
|
275
260
|
yMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
276
|
-
|
277
|
-
alias: z.ZodOptional<z.ZodString>;
|
278
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
279
|
-
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
261
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
280
262
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
281
263
|
number: "number";
|
282
264
|
percent: "percent";
|
@@ -306,7 +288,10 @@ export declare const zScatter: z.ZodObject<{
|
|
306
288
|
halfEven: "halfEven";
|
307
289
|
}>>>;
|
308
290
|
}, z.core.$strip>>>;
|
309
|
-
|
291
|
+
id: z.ZodString;
|
292
|
+
alias: z.ZodOptional<z.ZodString>;
|
293
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
294
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
310
295
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
311
296
|
number: "number";
|
312
297
|
percent: "percent";
|
@@ -336,21 +321,6 @@ export declare const zScatter: z.ZodObject<{
|
|
336
321
|
halfEven: "halfEven";
|
337
322
|
}>>>;
|
338
323
|
}, z.core.$strip>>>;
|
339
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
340
|
-
column: "column";
|
341
|
-
xAxis: "xAxis";
|
342
|
-
yAxis: "yAxis";
|
343
|
-
angle: "angle";
|
344
|
-
color: "color";
|
345
|
-
detail: "detail";
|
346
|
-
tooltip: "tooltip";
|
347
|
-
label: "label";
|
348
|
-
primaryYAxis: "primaryYAxis";
|
349
|
-
secondaryYAxis: "secondaryYAxis";
|
350
|
-
radius: "radius";
|
351
|
-
size: "size";
|
352
|
-
}>>;
|
353
|
-
parentId: z.ZodOptional<z.ZodString>;
|
354
324
|
}, z.core.$strip>>, z.ZodObject<{
|
355
325
|
id: z.ZodString;
|
356
326
|
alias: z.ZodOptional<z.ZodString>;
|
@@ -433,6 +403,8 @@ export declare const zScatter: z.ZodObject<{
|
|
433
403
|
}, z.core.$strip>]>>;
|
434
404
|
}, z.core.$strip>>>>;
|
435
405
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
406
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
407
|
+
sizeRange: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
436
408
|
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
437
409
|
colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
438
410
|
linearColorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
@@ -9,6 +9,8 @@ const zScatter = z.object({
|
|
9
9
|
measures: zMeasureTree.nullish(),
|
10
10
|
scatterMeasures: zScatterMeasures.nullish(),
|
11
11
|
backgroundColor: zBackgroundColor.nullish(),
|
12
|
+
size: z.number().or(z.array(z.number())).nullish(),
|
13
|
+
sizeRange: z.number().or(z.array(z.number())).nullish(),
|
12
14
|
color: zColor.nullish(),
|
13
15
|
label: zLabel.nullish(),
|
14
16
|
legend: zLegend.nullish(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["webpack://@visactor/vseed/./src/types/chartType/scatter/zScatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zPointStyle,\n zScatterMeasures,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zScatter = z.object({\n chartType: z.literal('scatter'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n scatterMeasures: zScatterMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasureTree","zScatterMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,iBAAiBC,iBAAiB,OAAO;IACzC,
|
1
|
+
{"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["webpack://@visactor/vseed/./src/types/chartType/scatter/zScatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasureTree,\n zPointStyle,\n zScatterMeasures,\n zTheme,\n zTooltip,\n zXLinearAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zScatter = z.object({\n chartType: z.literal('scatter'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n scatterMeasures: zScatterMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasureTree","zScatterMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLocale"],"mappings":";;;AAwBO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,iBAAiBC,iBAAiB,OAAO;IACzC,iBAAiBC,iBAAiB,OAAO;IACzC,MAAMN,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IACrD,OAAOO,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYd,EAAE,KAAK,CAACe,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,iBAAiBf,EAAE,KAAK,CAACgB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBhB,EAAE,KAAK,CAACiB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BjB,EAAE,KAAK,CAACkB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBlB,EAAE,KAAK,CAACmB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,QAAQC,QAAQ,OAAO;AACzB"}
|
@@ -6,13 +6,11 @@ export interface NumFormat {
|
|
6
6
|
*/
|
7
7
|
type?: 'number' | 'percent' | 'permille' | 'scientific';
|
8
8
|
/**
|
9
|
-
* @description 数值格式化比例,
|
9
|
+
* @description 数值格式化比例, 不能为0
|
10
10
|
* @default 1
|
11
11
|
* @example
|
12
12
|
* - 100000 转换为 10万, ratio:10000, symbol:"万"
|
13
13
|
* - 100000 转换为 10K, ratio:1000, symbol:"K"
|
14
|
-
* - 100000 转换为 100%, ratio:100, symbol:"%"
|
15
|
-
* - 100000 转换为 100‰, ratio:1000, symbol:"‰"
|
16
14
|
*/
|
17
15
|
ratio?: number;
|
18
16
|
/**
|
@@ -21,8 +19,6 @@ export interface NumFormat {
|
|
21
19
|
* @example
|
22
20
|
* - 100000 转换为 10万, ratio:10000, symbol:"万"
|
23
21
|
* - 100000 转换为 10K, ratio:1000, symbol:"K"
|
24
|
-
* - 100000 转换为 100%, ratio:100, symbol:"%"
|
25
|
-
* - 100000 转换为 100‰, ratio:1000, symbol:"‰"
|
26
22
|
*/
|
27
23
|
symbol?: string;
|
28
24
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types/properties/format/numFormat.js","sources":["webpack://@visactor/vseed/./src/types/properties/format/numFormat.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport interface NumFormat {\n /**\n * @description 数字格式化类型, 支持数值(十进制)、百分比(%)、千分比(‰)、科学计数法\n * @default 'number'\n */\n type?: 'number' | 'percent' | 'permille' | 'scientific'\n\n /**\n * @description 数值格式化比例,
|
1
|
+
{"version":3,"file":"types/properties/format/numFormat.js","sources":["webpack://@visactor/vseed/./src/types/properties/format/numFormat.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport interface NumFormat {\n /**\n * @description 数字格式化类型, 支持数值(十进制)、百分比(%)、千分比(‰)、科学计数法\n * @default 'number'\n */\n type?: 'number' | 'percent' | 'permille' | 'scientific'\n\n /**\n * @description 数值格式化比例, 不能为0\n * @default 1\n * @example\n * - 100000 转换为 10万, ratio:10000, symbol:\"万\"\n * - 100000 转换为 10K, ratio:1000, symbol:\"K\"\n */\n ratio?: number\n\n /**\n * @description 数值格式化符号, 例如%、‰\n * @default ''\n * @example\n * - 100000 转换为 10万, ratio:10000, symbol:\"万\"\n * - 100000 转换为 10K, ratio:1000, symbol:\"K\"\n */\n symbol?: string\n\n /**\n * @description 数值格式化千分位分隔符\n * @default true\n */\n thousandSeparator?: boolean\n\n /**\n * @description 数值格式化后缀\n * @default ''\n */\n suffix?: string\n /**\n * @description 数值格式化前缀\n * @default ''\n */\n prefix?: string\n\n /**\n * @description 数值格式化小数位, 使用浏览器提供的 Intl.NumberFormat 中的 minimumFractionDigits 和 maximumFractionDigits 进行格式化, 优先级低于 significantDigits\n * @default 2\n * @example\n * - 1234.5678 转换为 1235, fractionDigits:0 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.6, fractionDigits:1 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.57, fractionDigits:2 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1230.568, fractionDigits:3 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.5678, fractionDigits:4 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.56780, fractionDigits:5 (roundingMode:halfCeil)\n */\n fractionDigits?: number\n\n /**\n * @description 数值格式化有效位, 使用浏览器提供的 Intl.NumberFormat 中的 minimumSignificantDigits 和 maximumSignificantDigits 进行格式化, 优先级高于 fractionDigits\n * @default undefined\n * @example\n * - 1234.5678 转换为 1000, significantDigits:1\n * - 1234.5678 转换为 1200, significantDigits:2\n * - 1234.5678 转换为 1230, significantDigits:3\n * - 1234.5678 转换为 1234, significantDigits:4\n * - 1234.5678 转换为 1234.6, significantDigits:5 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.57, significantDigits:6 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.568, significantDigits:7 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.5678, significantDigits:8 (roundingMode:halfCeil)\n */\n significantDigits?: number\n\n /**\n * @description 数值格式化舍入优先级, 处理同时设置了 significantDigits 和 fractionDigits 时的舍入优先级, 使用浏览器提供的 Intl.NumberFormat 进行格式化, 规则同 Intl.NumberFormat 中的 roundingPriority\n * @default 'morePrecision'\n * @example\n * - 1234.5678 转换为 1230, significantDigits:3 (roundingPriority:lessPrecision)\n * - 1234.5678 转换为 1234.5678, significantDigits:3 (roundingPriority:morePrecision)\n */\n roundingPriority?: 'morePrecision' | 'lessPrecision'\n\n /**\n * @description 数值格式化舍入模式, 使用浏览器提供的 Intl.NumberFormat 进行格式化, 规则同 Intl.NumberFormat 中的 roundingMode\n * @default 'halfExpand'\n * @example\n */\n roundingMode?:\n | 'floor'\n | 'ceil'\n | 'expand'\n | 'trunc'\n | 'halfCeil'\n | 'halfFloor'\n | 'halfExpand'\n | 'halfTrunc'\n | 'halfEven'\n}\n\nexport const zNumFormat = z\n .object({\n type: z.enum(['number', 'percent', 'permille', 'scientific']).default('number').optional(),\n ratio: z.number().default(1).optional(),\n symbol: z.string().default('').optional(),\n thousandSeparator: z.boolean().default(false).optional(),\n prefix: z.string().default('').optional(),\n suffix: z.string().default('').optional(),\n\n fractionDigits: z.number().default(2).optional(),\n significantDigits: z.number().default(0).optional(),\n roundingPriority: z.enum(['morePrecision', 'lessPrecision']).default('morePrecision').optional(),\n roundingMode: z\n .enum(['floor', 'ceil', 'halfEven', 'expand', 'trunc', 'halfFloor', 'halfCeil', 'halfExpand', 'halfTrunc'])\n .default('halfCeil')\n .optional(),\n })\n .optional()\n"],"names":["zNumFormat","z"],"mappings":";AAkGO,MAAMA,aAAaC,EAAAA,MACjB,CAAC;IACN,MAAMA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAU;QAAW;QAAY;KAAa,EAAE,OAAO,CAAC,UAAU,QAAQ;IACxF,OAAOA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,QAAQ;IACrC,QAAQA,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,QAAQ;IACvC,mBAAmBA,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,QAAQ;IACtD,QAAQA,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,QAAQ;IACvC,QAAQA,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,QAAQ;IAEvC,gBAAgBA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,QAAQ;IAC9C,mBAAmBA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,QAAQ;IACjD,kBAAkBA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAiB;KAAgB,EAAE,OAAO,CAAC,iBAAiB,QAAQ;IAC9F,cAAcA,CAAC,CAADA,OACP,CAAC;QAAC;QAAS;QAAQ;QAAY;QAAU;QAAS;QAAa;QAAY;QAAc;KAAY,EACzG,OAAO,CAAC,YACR,QAAQ;AACb,GACC,QAAQ"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Measure } from './measures';
|
2
2
|
export type DualMeasure = {
|
3
3
|
id: string;
|
4
|
-
primaryMeasures?: Measure | Measure[];
|
5
|
-
secondaryMeasures?: Measure | Measure[];
|
4
|
+
primaryMeasures?: Omit<Measure, 'encoding' | 'parentId'> | Omit<Measure, 'encoding' | 'parentId'>[];
|
5
|
+
secondaryMeasures?: Omit<Measure, 'encoding' | 'parentId'> | Omit<Measure, 'encoding' | 'parentId'>[];
|
6
6
|
};
|
7
7
|
export type DualMeasures = DualMeasure[];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { Measure } from './measures';
|
2
2
|
export type ScatterMeasure = {
|
3
3
|
id: string;
|
4
|
-
xMeasures?: Measure | Measure[];
|
5
|
-
yMeasures?: Measure | Measure[];
|
4
|
+
xMeasures?: Omit<Measure, 'encoding' | 'parentId'> | Omit<Measure, 'encoding' | 'parentId'>[];
|
5
|
+
yMeasures?: Omit<Measure, 'encoding' | 'parentId'> | Omit<Measure, 'encoding' | 'parentId'>[];
|
6
6
|
};
|
7
7
|
export type ScatterMeasures = ScatterMeasure[];
|
@@ -2,10 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare const zDualMeasure: z.ZodObject<{
|
3
3
|
id: z.ZodString;
|
4
4
|
primaryMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
5
|
-
|
6
|
-
alias: z.ZodOptional<z.ZodString>;
|
7
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
8
|
-
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
5
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
9
6
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
10
7
|
number: "number";
|
11
8
|
percent: "percent";
|
@@ -35,7 +32,10 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
35
32
|
halfEven: "halfEven";
|
36
33
|
}>>>;
|
37
34
|
}, z.core.$strip>>>;
|
38
|
-
|
35
|
+
id: z.ZodString;
|
36
|
+
alias: z.ZodOptional<z.ZodString>;
|
37
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
38
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
39
39
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
40
40
|
number: "number";
|
41
41
|
percent: "percent";
|
@@ -65,26 +65,8 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
65
65
|
halfEven: "halfEven";
|
66
66
|
}>>>;
|
67
67
|
}, z.core.$strip>>>;
|
68
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
69
|
-
column: "column";
|
70
|
-
xAxis: "xAxis";
|
71
|
-
yAxis: "yAxis";
|
72
|
-
angle: "angle";
|
73
|
-
color: "color";
|
74
|
-
detail: "detail";
|
75
|
-
tooltip: "tooltip";
|
76
|
-
label: "label";
|
77
|
-
primaryYAxis: "primaryYAxis";
|
78
|
-
secondaryYAxis: "secondaryYAxis";
|
79
|
-
radius: "radius";
|
80
|
-
size: "size";
|
81
|
-
}>>;
|
82
|
-
parentId: z.ZodOptional<z.ZodString>;
|
83
68
|
}, z.core.$strip>>, z.ZodObject<{
|
84
|
-
|
85
|
-
alias: z.ZodOptional<z.ZodString>;
|
86
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
87
|
-
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
69
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
88
70
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
89
71
|
number: "number";
|
90
72
|
percent: "percent";
|
@@ -114,7 +96,10 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
114
96
|
halfEven: "halfEven";
|
115
97
|
}>>>;
|
116
98
|
}, z.core.$strip>>>;
|
117
|
-
|
99
|
+
id: z.ZodString;
|
100
|
+
alias: z.ZodOptional<z.ZodString>;
|
101
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
102
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
118
103
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
119
104
|
number: "number";
|
120
105
|
percent: "percent";
|
@@ -144,21 +129,6 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
144
129
|
halfEven: "halfEven";
|
145
130
|
}>>>;
|
146
131
|
}, z.core.$strip>>>;
|
147
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
148
|
-
column: "column";
|
149
|
-
xAxis: "xAxis";
|
150
|
-
yAxis: "yAxis";
|
151
|
-
angle: "angle";
|
152
|
-
color: "color";
|
153
|
-
detail: "detail";
|
154
|
-
tooltip: "tooltip";
|
155
|
-
label: "label";
|
156
|
-
primaryYAxis: "primaryYAxis";
|
157
|
-
secondaryYAxis: "secondaryYAxis";
|
158
|
-
radius: "radius";
|
159
|
-
size: "size";
|
160
|
-
}>>;
|
161
|
-
parentId: z.ZodOptional<z.ZodString>;
|
162
132
|
}, z.core.$strip>]>>;
|
163
133
|
secondaryMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
164
134
|
id: z.ZodString;
|
@@ -323,10 +293,7 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
323
293
|
export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
324
294
|
id: z.ZodString;
|
325
295
|
primaryMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
326
|
-
|
327
|
-
alias: z.ZodOptional<z.ZodString>;
|
328
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
329
|
-
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
296
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
330
297
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
331
298
|
number: "number";
|
332
299
|
percent: "percent";
|
@@ -356,7 +323,10 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
356
323
|
halfEven: "halfEven";
|
357
324
|
}>>>;
|
358
325
|
}, z.core.$strip>>>;
|
359
|
-
|
326
|
+
id: z.ZodString;
|
327
|
+
alias: z.ZodOptional<z.ZodString>;
|
328
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
329
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
360
330
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
361
331
|
number: "number";
|
362
332
|
percent: "percent";
|
@@ -386,26 +356,8 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
386
356
|
halfEven: "halfEven";
|
387
357
|
}>>>;
|
388
358
|
}, z.core.$strip>>>;
|
389
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
390
|
-
column: "column";
|
391
|
-
xAxis: "xAxis";
|
392
|
-
yAxis: "yAxis";
|
393
|
-
angle: "angle";
|
394
|
-
color: "color";
|
395
|
-
detail: "detail";
|
396
|
-
tooltip: "tooltip";
|
397
|
-
label: "label";
|
398
|
-
primaryYAxis: "primaryYAxis";
|
399
|
-
secondaryYAxis: "secondaryYAxis";
|
400
|
-
radius: "radius";
|
401
|
-
size: "size";
|
402
|
-
}>>;
|
403
|
-
parentId: z.ZodOptional<z.ZodString>;
|
404
359
|
}, z.core.$strip>>, z.ZodObject<{
|
405
|
-
|
406
|
-
alias: z.ZodOptional<z.ZodString>;
|
407
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
408
|
-
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
360
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
409
361
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
410
362
|
number: "number";
|
411
363
|
percent: "percent";
|
@@ -435,7 +387,10 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
435
387
|
halfEven: "halfEven";
|
436
388
|
}>>>;
|
437
389
|
}, z.core.$strip>>>;
|
438
|
-
|
390
|
+
id: z.ZodString;
|
391
|
+
alias: z.ZodOptional<z.ZodString>;
|
392
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
393
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
439
394
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
440
395
|
number: "number";
|
441
396
|
percent: "percent";
|
@@ -465,21 +420,6 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
465
420
|
halfEven: "halfEven";
|
466
421
|
}>>>;
|
467
422
|
}, z.core.$strip>>>;
|
468
|
-
encoding: z.ZodOptional<z.ZodEnum<{
|
469
|
-
column: "column";
|
470
|
-
xAxis: "xAxis";
|
471
|
-
yAxis: "yAxis";
|
472
|
-
angle: "angle";
|
473
|
-
color: "color";
|
474
|
-
detail: "detail";
|
475
|
-
tooltip: "tooltip";
|
476
|
-
label: "label";
|
477
|
-
primaryYAxis: "primaryYAxis";
|
478
|
-
secondaryYAxis: "secondaryYAxis";
|
479
|
-
radius: "radius";
|
480
|
-
size: "size";
|
481
|
-
}>>;
|
482
|
-
parentId: z.ZodOptional<z.ZodString>;
|
483
423
|
}, z.core.$strip>]>>;
|
484
424
|
secondaryMeasures: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
485
425
|
id: z.ZodString;
|
@@ -2,7 +2,13 @@ import { z } from "zod";
|
|
2
2
|
import { zMeasure } from "./zMeasures.js";
|
3
3
|
const zDualMeasure = z.object({
|
4
4
|
id: z.string(),
|
5
|
-
primaryMeasures: z.array(zMeasure
|
5
|
+
primaryMeasures: z.array(zMeasure.omit({
|
6
|
+
encoding: true,
|
7
|
+
parentId: true
|
8
|
+
})).or(zMeasure.omit({
|
9
|
+
parentId: true,
|
10
|
+
encoding: true
|
11
|
+
})).optional(),
|
6
12
|
secondaryMeasures: z.array(zMeasure).or(zMeasure).optional()
|
7
13
|
});
|
8
14
|
const zDualMeasures = z.array(zDualMeasure);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types/properties/measures/zDualMeasures.js","sources":["webpack://@visactor/vseed/./src/types/properties/measures/zDualMeasures.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zMeasure } from './zMeasures'\n\nexport const zDualMeasure = z.object({\n id: z.string(),\n\n primaryMeasures: z.array(zMeasure).or(zMeasure).optional(),\n\n secondaryMeasures: z.array(zMeasure).or(zMeasure).optional(),\n})\n\nexport const zDualMeasures = z.array(zDualMeasure)\n"],"names":["zDualMeasure","z","zMeasure","zDualMeasures"],"mappings":";;AAGO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,IAAIA,EAAE,MAAM;IAEZ,iBAAiBA,
|
1
|
+
{"version":3,"file":"types/properties/measures/zDualMeasures.js","sources":["webpack://@visactor/vseed/./src/types/properties/measures/zDualMeasures.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zMeasure } from './zMeasures'\n\nexport const zDualMeasure = z.object({\n id: z.string(),\n\n primaryMeasures: z\n .array(\n zMeasure.omit({\n encoding: true,\n parentId: true,\n }),\n )\n .or(\n zMeasure.omit({\n parentId: true,\n encoding: true,\n }),\n )\n .optional(),\n\n secondaryMeasures: z.array(zMeasure).or(zMeasure).optional(),\n})\n\nexport const zDualMeasures = z.array(zDualMeasure)\n"],"names":["zDualMeasure","z","zMeasure","zDualMeasures"],"mappings":";;AAGO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,IAAIA,EAAE,MAAM;IAEZ,iBAAiBA,EAAAA,KACT,CACJC,SAAS,IAAI,CAAC;QACZ,UAAU;QACV,UAAU;IACZ,IAED,EAAE,CACDA,SAAS,IAAI,CAAC;QACZ,UAAU;QACV,UAAU;IACZ,IAED,QAAQ;IAEX,mBAAmBD,EAAE,KAAK,CAACC,UAAU,EAAE,CAACA,UAAU,QAAQ;AAC5D;AAEO,MAAMC,gBAAgBF,EAAE,KAAK,CAACD"}
|