@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.
- package/dist/builder/builder/builder.d.ts +210 -118
- package/dist/index.cjs +383 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +363 -24
- package/dist/index.js.map +1 -1
- package/dist/pipeline/spec/table/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/theme/bodyStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/cornerHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/frameStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/headerStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/index.d.ts +6 -0
- package/dist/pipeline/spec/table/pipes/theme/rowHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/scrollStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/selectionStyle.d.ts +2 -0
- package/dist/types/advancedVSeed.d.ts +55 -61
- package/dist/types/chartType/area/area.d.ts +8 -46
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +8 -46
- package/dist/types/chartType/bar/bar.d.ts +9 -46
- package/dist/types/chartType/barParallel/barParallel.d.ts +8 -46
- package/dist/types/chartType/barPercent/barPercent.d.ts +8 -46
- package/dist/types/chartType/column/column.d.ts +8 -46
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +8 -46
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +8 -46
- package/dist/types/chartType/donut/donut.d.ts +8 -46
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +2 -2
- package/dist/types/chartType/funnel/funnel.d.ts +8 -46
- package/dist/types/chartType/line/line.d.ts +8 -46
- package/dist/types/chartType/pie/pie.d.ts +8 -46
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +8 -7
- package/dist/types/chartType/rose/rose.d.ts +9 -46
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +10 -47
- package/dist/types/chartType/scatter/scatter.d.ts +8 -46
- package/dist/types/chartType/table/table.d.ts +6 -44
- package/dist/types/properties/config/config.d.ts +50 -2
- package/dist/types/properties/dimensions/dimensions.d.ts +20 -44
- package/dist/types/properties/measures/measures.d.ts +11 -87
- package/dist/types/properties/theme/customTheme.d.ts +48 -4
- package/dist/types/vseed.d.ts +101 -709
- package/dist/umd/index.js +703 -40
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 柱状图类型定义
|
@@ -43,7 +43,7 @@ export interface Column {
|
|
43
43
|
* @type {DimensionTree}
|
44
44
|
* @example [{id: "value", alias: "数值"}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -142,55 +142,17 @@ export declare const zColumn: 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.
|
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.
|
193
|
-
format: z.
|
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 zColumn: 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,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 并列柱状图类型定义
|
@@ -43,7 +43,7 @@ export interface ColumnParallel {
|
|
43
43
|
* @type {DimensionTree}
|
44
44
|
* @example [{id: 'value1', alias: '指标1'}, {id: 'value2', alias: '指标2'}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -142,55 +142,17 @@ export declare const zColumnParallel: 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.
|
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.
|
193
|
-
format: z.
|
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 zColumnParallel: 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,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 百分比柱状图类型定义
|
@@ -43,7 +43,7 @@ export interface ColumnPercent {
|
|
43
43
|
* @type {DimensionTree}
|
44
44
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -142,55 +142,17 @@ export declare const zColumnPercent: 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.
|
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.
|
193
|
-
format: z.
|
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 zColumnPercent: 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 { BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
3
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
|
4
4
|
/**
|
5
5
|
* 环形图类型定义
|
6
6
|
* @description 环形图,适用于展示单一维度数据的占比关系,中心留有空白区域可展示汇总信息
|
@@ -43,7 +43,7 @@ export interface Donut {
|
|
43
43
|
* @type {DimensionTree}
|
44
44
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -92,55 +92,17 @@ export declare const zDonut: z.ZodObject<{
|
|
92
92
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
93
|
id: z.ZodString;
|
94
94
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
location: z.
|
95
|
+
location: z.ZodDefault<z.ZodEnum<{
|
96
96
|
dimension: "dimension";
|
97
97
|
rowDimension: "rowDimension";
|
98
98
|
columnDimension: "columnDimension";
|
99
|
-
}
|
99
|
+
}>>;
|
100
100
|
}, z.core.$strip>>>;
|
101
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
102
|
-
id: z.ZodString;
|
103
|
-
alias: z.ZodOptional<z.ZodString>;
|
104
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
105
|
-
id: z.ZodString;
|
106
|
-
alias: z.ZodOptional<z.ZodString>;
|
107
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
108
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
109
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
110
|
-
number: "number";
|
111
|
-
percent: "percent";
|
112
|
-
permille: "permille";
|
113
|
-
scientific: "scientific";
|
114
|
-
}>>>;
|
115
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
116
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
117
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
118
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
119
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
120
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
121
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
123
|
-
morePrecision: "morePrecision";
|
124
|
-
lessPrecision: "lessPrecision";
|
125
|
-
}>>>;
|
126
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
127
|
-
floor: "floor";
|
128
|
-
ceil: "ceil";
|
129
|
-
expand: "expand";
|
130
|
-
trunc: "trunc";
|
131
|
-
halfCeil: "halfCeil";
|
132
|
-
halfFloor: "halfFloor";
|
133
|
-
halfExpand: "halfExpand";
|
134
|
-
halfTrunc: "halfTrunc";
|
135
|
-
halfEven: "halfEven";
|
136
|
-
}>>>;
|
137
|
-
}, z.core.$strip>>>>;
|
138
|
-
}, z.core.$strip>]>>>;
|
139
|
-
}, z.core.$strip>, z.ZodObject<{
|
101
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
140
102
|
id: z.ZodString;
|
141
103
|
alias: z.ZodOptional<z.ZodString>;
|
142
|
-
autoFormat: z.
|
143
|
-
format: z.
|
104
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
105
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
144
106
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
107
|
number: "number";
|
146
108
|
percent: "percent";
|
@@ -169,7 +131,7 @@ export declare const zDonut: z.ZodObject<{
|
|
169
131
|
halfTrunc: "halfTrunc";
|
170
132
|
halfEven: "halfEven";
|
171
133
|
}>>>;
|
172
|
-
}, z.core.$strip
|
134
|
+
}, z.core.$strip>>>;
|
173
135
|
}, z.core.$strip>]>>>;
|
174
136
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
175
137
|
color: z.ZodOptional<z.ZodObject<{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
|
3
3
|
/**
|
4
4
|
* 双轴图类型定义
|
5
5
|
* @description 双轴图,适用于展示两个不同量级或不同单位指标的对比关系,包含主坐标轴和次坐标轴
|
@@ -44,7 +44,7 @@ export interface DualAxis {
|
|
44
44
|
* @type {DimensionTree}
|
45
45
|
* @example [{id: 'value', alias: '数值', axis: 'left'}, {id: 'growth', alias: '增长率', axis: 'right', format: 'percent'}]
|
46
46
|
*/
|
47
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
48
48
|
/**
|
49
49
|
* 图表的背景颜色
|
50
50
|
* @default transparent 默认为透明背景
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import type { Locale } from '../../i18n';
|
3
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
3
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
|
4
4
|
/**
|
5
5
|
* 漏斗图
|
6
6
|
* @description 漏斗图,用于展示单一维度数据的占比关系
|
@@ -42,7 +42,7 @@ export interface Funnel {
|
|
42
42
|
* @type {DimensionTree}
|
43
43
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
44
44
|
*/
|
45
|
-
measures?:
|
45
|
+
measures?: MeasureTree;
|
46
46
|
/**
|
47
47
|
* 图表的背景颜色
|
48
48
|
* @default transparent 默认为透明背景
|
@@ -91,55 +91,17 @@ export declare const zFunnel: z.ZodObject<{
|
|
91
91
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
92
92
|
id: z.ZodString;
|
93
93
|
alias: z.ZodOptional<z.ZodString>;
|
94
|
-
location: z.
|
94
|
+
location: z.ZodDefault<z.ZodEnum<{
|
95
95
|
dimension: "dimension";
|
96
96
|
rowDimension: "rowDimension";
|
97
97
|
columnDimension: "columnDimension";
|
98
|
-
}
|
98
|
+
}>>;
|
99
99
|
}, z.core.$strip>>>;
|
100
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
101
|
-
id: z.ZodString;
|
102
|
-
alias: z.ZodOptional<z.ZodString>;
|
103
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
104
|
-
id: z.ZodString;
|
105
|
-
alias: z.ZodOptional<z.ZodString>;
|
106
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
107
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
108
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
109
|
-
number: "number";
|
110
|
-
percent: "percent";
|
111
|
-
permille: "permille";
|
112
|
-
scientific: "scientific";
|
113
|
-
}>>>;
|
114
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
115
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
116
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
117
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
118
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
119
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
120
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
121
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
122
|
-
morePrecision: "morePrecision";
|
123
|
-
lessPrecision: "lessPrecision";
|
124
|
-
}>>>;
|
125
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
126
|
-
floor: "floor";
|
127
|
-
ceil: "ceil";
|
128
|
-
expand: "expand";
|
129
|
-
trunc: "trunc";
|
130
|
-
halfCeil: "halfCeil";
|
131
|
-
halfFloor: "halfFloor";
|
132
|
-
halfExpand: "halfExpand";
|
133
|
-
halfTrunc: "halfTrunc";
|
134
|
-
halfEven: "halfEven";
|
135
|
-
}>>>;
|
136
|
-
}, z.core.$strip>>>>;
|
137
|
-
}, z.core.$strip>]>>>;
|
138
|
-
}, z.core.$strip>, z.ZodObject<{
|
100
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
139
101
|
id: z.ZodString;
|
140
102
|
alias: z.ZodOptional<z.ZodString>;
|
141
|
-
autoFormat: z.
|
142
|
-
format: z.
|
103
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
104
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
143
105
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
144
106
|
number: "number";
|
145
107
|
percent: "percent";
|
@@ -168,7 +130,7 @@ export declare const zFunnel: z.ZodObject<{
|
|
168
130
|
halfTrunc: "halfTrunc";
|
169
131
|
halfEven: "halfEven";
|
170
132
|
}>>>;
|
171
|
-
}, z.core.$strip
|
133
|
+
}, z.core.$strip>>>;
|
172
134
|
}, z.core.$strip>]>>>;
|
173
135
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
174
136
|
color: z.ZodOptional<z.ZodObject<{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 折线图类型定义
|
@@ -43,7 +43,7 @@ export interface Line {
|
|
43
43
|
* @type {DimensionTree}
|
44
44
|
* @example [{id: "value", alias: "数值"}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -145,55 +145,17 @@ export declare const zLine: z.ZodObject<{
|
|
145
145
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
146
146
|
id: z.ZodString;
|
147
147
|
alias: z.ZodOptional<z.ZodString>;
|
148
|
-
location: z.
|
148
|
+
location: z.ZodDefault<z.ZodEnum<{
|
149
149
|
dimension: "dimension";
|
150
150
|
rowDimension: "rowDimension";
|
151
151
|
columnDimension: "columnDimension";
|
152
|
-
}
|
152
|
+
}>>;
|
153
153
|
}, z.core.$strip>>>;
|
154
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
155
|
-
id: z.ZodString;
|
156
|
-
alias: z.ZodOptional<z.ZodString>;
|
157
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
158
|
-
id: z.ZodString;
|
159
|
-
alias: z.ZodOptional<z.ZodString>;
|
160
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
161
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
162
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
163
|
-
number: "number";
|
164
|
-
percent: "percent";
|
165
|
-
permille: "permille";
|
166
|
-
scientific: "scientific";
|
167
|
-
}>>>;
|
168
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
169
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
170
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
171
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
172
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
173
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
174
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
175
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
176
|
-
morePrecision: "morePrecision";
|
177
|
-
lessPrecision: "lessPrecision";
|
178
|
-
}>>>;
|
179
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
180
|
-
floor: "floor";
|
181
|
-
ceil: "ceil";
|
182
|
-
expand: "expand";
|
183
|
-
trunc: "trunc";
|
184
|
-
halfCeil: "halfCeil";
|
185
|
-
halfFloor: "halfFloor";
|
186
|
-
halfExpand: "halfExpand";
|
187
|
-
halfTrunc: "halfTrunc";
|
188
|
-
halfEven: "halfEven";
|
189
|
-
}>>>;
|
190
|
-
}, z.core.$strip>>>>;
|
191
|
-
}, z.core.$strip>]>>>;
|
192
|
-
}, z.core.$strip>, z.ZodObject<{
|
154
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
193
155
|
id: z.ZodString;
|
194
156
|
alias: z.ZodOptional<z.ZodString>;
|
195
|
-
autoFormat: z.
|
196
|
-
format: z.
|
157
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
158
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
197
159
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
198
160
|
number: "number";
|
199
161
|
percent: "percent";
|
@@ -222,7 +184,7 @@ export declare const zLine: z.ZodObject<{
|
|
222
184
|
halfTrunc: "halfTrunc";
|
223
185
|
halfEven: "halfEven";
|
224
186
|
}>>>;
|
225
|
-
}, z.core.$strip
|
187
|
+
}, z.core.$strip>>>;
|
226
188
|
}, z.core.$strip>]>>>;
|
227
189
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
228
190
|
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 { BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
3
|
+
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
|
4
4
|
/**
|
5
5
|
* 饼图类型定义
|
6
6
|
* @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
|
@@ -43,7 +43,7 @@ export interface Pie {
|
|
43
43
|
* @type {DimensionTree}
|
44
44
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
45
45
|
*/
|
46
|
-
measures?:
|
46
|
+
measures?: MeasureTree;
|
47
47
|
/**
|
48
48
|
* 图表的背景颜色
|
49
49
|
* @default transparent 默认为透明背景
|
@@ -92,55 +92,17 @@ export declare const zPie: z.ZodObject<{
|
|
92
92
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
93
|
id: z.ZodString;
|
94
94
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
location: z.
|
95
|
+
location: z.ZodDefault<z.ZodEnum<{
|
96
96
|
dimension: "dimension";
|
97
97
|
rowDimension: "rowDimension";
|
98
98
|
columnDimension: "columnDimension";
|
99
|
-
}
|
99
|
+
}>>;
|
100
100
|
}, z.core.$strip>>>;
|
101
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
102
|
-
id: z.ZodString;
|
103
|
-
alias: z.ZodOptional<z.ZodString>;
|
104
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
105
|
-
id: z.ZodString;
|
106
|
-
alias: z.ZodOptional<z.ZodString>;
|
107
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
108
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
109
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
110
|
-
number: "number";
|
111
|
-
percent: "percent";
|
112
|
-
permille: "permille";
|
113
|
-
scientific: "scientific";
|
114
|
-
}>>>;
|
115
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
116
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
117
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
118
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
119
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
120
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
121
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
123
|
-
morePrecision: "morePrecision";
|
124
|
-
lessPrecision: "lessPrecision";
|
125
|
-
}>>>;
|
126
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
127
|
-
floor: "floor";
|
128
|
-
ceil: "ceil";
|
129
|
-
expand: "expand";
|
130
|
-
trunc: "trunc";
|
131
|
-
halfCeil: "halfCeil";
|
132
|
-
halfFloor: "halfFloor";
|
133
|
-
halfExpand: "halfExpand";
|
134
|
-
halfTrunc: "halfTrunc";
|
135
|
-
halfEven: "halfEven";
|
136
|
-
}>>>;
|
137
|
-
}, z.core.$strip>>>>;
|
138
|
-
}, z.core.$strip>]>>>;
|
139
|
-
}, z.core.$strip>, z.ZodObject<{
|
101
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
140
102
|
id: z.ZodString;
|
141
103
|
alias: z.ZodOptional<z.ZodString>;
|
142
|
-
autoFormat: z.
|
143
|
-
format: z.
|
104
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
105
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
144
106
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
107
|
number: "number";
|
146
108
|
percent: "percent";
|
@@ -169,7 +131,7 @@ export declare const zPie: z.ZodObject<{
|
|
169
131
|
halfTrunc: "halfTrunc";
|
170
132
|
halfEven: "halfEven";
|
171
133
|
}>>>;
|
172
|
-
}, z.core.$strip
|
134
|
+
}, z.core.$strip>>>;
|
173
135
|
}, z.core.$strip>]>>>;
|
174
136
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
175
137
|
color: z.ZodOptional<z.ZodObject<{
|