@visactor/vseed 0.0.20 → 0.0.22
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/advanced/colorItems.d.ts +1 -0
- package/dist/builder/builder/advanced/index.d.ts +1 -1
- package/dist/builder/builder/builder.d.ts +220 -118
- package/dist/index.cjs +595 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +558 -62
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipes/analysis/index.d.ts +1 -0
- package/dist/pipeline/advanced/chart/pipes/analysis/sort.d.ts +4 -0
- package/dist/pipeline/advanced/chart/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipes/dataset/datasetPivot.d.ts +0 -1
- package/dist/pipeline/spec/chart/pipes/dataset/index.d.ts +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 +58 -61
- package/dist/types/chartType/area/area.d.ts +32 -46
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +32 -46
- package/dist/types/chartType/bar/bar.d.ts +33 -46
- package/dist/types/chartType/barParallel/barParallel.d.ts +32 -46
- package/dist/types/chartType/barPercent/barPercent.d.ts +32 -46
- package/dist/types/chartType/column/column.d.ts +32 -46
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +32 -46
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +32 -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 +48 -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/analysis/analysis.d.ts +4 -0
- package/dist/types/properties/analysis/index.d.ts +3 -0
- package/dist/types/properties/analysis/sortAxis.d.ts +39 -0
- package/dist/types/properties/analysis/sortLegend.d.ts +39 -0
- package/dist/types/properties/config/config.d.ts +50 -2
- package/dist/types/properties/dimensions/dimensions.d.ts +20 -44
- package/dist/types/properties/index.d.ts +1 -0
- 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 +117 -709
- package/dist/umd/index.js +8818 -128
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -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, SortAxis, SortLegend } 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 默认为透明背景
|
@@ -85,6 +85,30 @@ export interface Line {
|
|
85
85
|
* @description 鼠标移动到图表上时, 显示的垂直提示线
|
86
86
|
*/
|
87
87
|
crosshairLine?: CrosshairLine;
|
88
|
+
/**
|
89
|
+
* @description X轴排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
|
90
|
+
* @example
|
91
|
+
* sortAxis: {
|
92
|
+
* orderBy: 'profit',
|
93
|
+
* order: 'asc',
|
94
|
+
* }
|
95
|
+
* sortAxis: {
|
96
|
+
* customOrder:['2019', '2020', '2021']
|
97
|
+
* }
|
98
|
+
*/
|
99
|
+
sortAxis?: SortAxis;
|
100
|
+
/**
|
101
|
+
* @description 图例排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
|
102
|
+
* @example
|
103
|
+
* sortLegend: {
|
104
|
+
* orderBy: 'profit',
|
105
|
+
* order: 'asc',
|
106
|
+
* }
|
107
|
+
* sortLegend: {
|
108
|
+
* customOrder:['2019', '2020', '2021']
|
109
|
+
* }
|
110
|
+
*/
|
111
|
+
sortLegend?: SortLegend;
|
88
112
|
/**
|
89
113
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
90
114
|
* @default light 默认为亮色主题
|
@@ -145,55 +169,17 @@ export declare const zLine: z.ZodObject<{
|
|
145
169
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
146
170
|
id: z.ZodString;
|
147
171
|
alias: z.ZodOptional<z.ZodString>;
|
148
|
-
location: z.
|
172
|
+
location: z.ZodDefault<z.ZodEnum<{
|
149
173
|
dimension: "dimension";
|
150
174
|
rowDimension: "rowDimension";
|
151
175
|
columnDimension: "columnDimension";
|
152
|
-
}
|
176
|
+
}>>;
|
153
177
|
}, z.core.$strip>>>;
|
154
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
178
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
155
179
|
id: z.ZodString;
|
156
180
|
alias: z.ZodOptional<z.ZodString>;
|
157
|
-
|
158
|
-
|
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<{
|
193
|
-
id: z.ZodString;
|
194
|
-
alias: z.ZodOptional<z.ZodString>;
|
195
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
196
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
181
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
182
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
197
183
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
198
184
|
number: "number";
|
199
185
|
percent: "percent";
|
@@ -222,7 +208,7 @@ export declare const zLine: z.ZodObject<{
|
|
222
208
|
halfTrunc: "halfTrunc";
|
223
209
|
halfEven: "halfEven";
|
224
210
|
}>>>;
|
225
|
-
}, z.core.$strip
|
211
|
+
}, z.core.$strip>>>;
|
226
212
|
}, z.core.$strip>]>>>;
|
227
213
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
228
214
|
color: z.ZodOptional<z.ZodObject<{
|
@@ -375,6 +361,22 @@ export declare const zLine: z.ZodObject<{
|
|
375
361
|
labelVisible: z.ZodOptional<z.ZodBoolean>;
|
376
362
|
labelBackgroundColor: z.ZodOptional<z.ZodString>;
|
377
363
|
}, z.core.$strip>>;
|
364
|
+
sortAxis: z.ZodOptional<z.ZodObject<{
|
365
|
+
order: z.ZodDefault<z.ZodEnum<{
|
366
|
+
asc: "asc";
|
367
|
+
desc: "desc";
|
368
|
+
}>>;
|
369
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
370
|
+
customOrder: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
371
|
+
}, z.core.$strip>>;
|
372
|
+
sortLegend: z.ZodOptional<z.ZodObject<{
|
373
|
+
order: z.ZodDefault<z.ZodEnum<{
|
374
|
+
asc: "asc";
|
375
|
+
desc: "desc";
|
376
|
+
}>>;
|
377
|
+
orderBy: z.ZodOptional<z.ZodString>;
|
378
|
+
customOrder: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
379
|
+
}, z.core.$strip>>;
|
378
380
|
theme: z.ZodOptional<z.ZodString>;
|
379
381
|
pointStyle: z.ZodOptional<z.ZodObject<{
|
380
382
|
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, 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<{
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import
|
3
|
+
import type { Measures } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Dataset, type Dimensions, type Theme } from '../../properties';
|
4
5
|
/**
|
5
6
|
* 透视表类型定义
|
6
7
|
* @description 透视表,适用于多维度数据交叉分析场景,可灵活配置行、列维度和指标计算方式
|
@@ -43,7 +44,7 @@ export interface PivotTable {
|
|
43
44
|
* @type {Measures}
|
44
45
|
* @example [{id: 'sales', alias: '销售额', aggregation: 'sum'}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: Measures;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -72,17 +73,17 @@ export declare const zPivotTable: z.ZodObject<{
|
|
72
73
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
73
74
|
id: z.ZodString;
|
74
75
|
alias: z.ZodOptional<z.ZodString>;
|
75
|
-
location: z.
|
76
|
+
location: z.ZodDefault<z.ZodEnum<{
|
76
77
|
dimension: "dimension";
|
77
78
|
rowDimension: "rowDimension";
|
78
79
|
columnDimension: "columnDimension";
|
79
|
-
}
|
80
|
+
}>>;
|
80
81
|
}, z.core.$strip>>>;
|
81
82
|
measures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
82
83
|
id: z.ZodString;
|
83
84
|
alias: z.ZodOptional<z.ZodString>;
|
84
|
-
autoFormat: z.
|
85
|
-
format: z.
|
85
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
86
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
86
87
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
87
88
|
number: "number";
|
88
89
|
percent: "percent";
|
@@ -111,7 +112,7 @@ export declare const zPivotTable: z.ZodObject<{
|
|
111
112
|
halfTrunc: "halfTrunc";
|
112
113
|
halfEven: "halfEven";
|
113
114
|
}>>>;
|
114
|
-
}, z.core.$strip
|
115
|
+
}, z.core.$strip>>>;
|
115
116
|
}, z.core.$strip>>>;
|
116
117
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
117
118
|
theme: z.ZodOptional<z.ZodString>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import
|
3
|
+
import type { MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
5
|
/**
|
5
6
|
* 堆叠玫瑰图类型定义
|
6
7
|
* @description 堆叠玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
@@ -43,7 +44,7 @@ export interface Rose {
|
|
43
44
|
* @type {Measures}
|
44
45
|
* @example [{id: 'value', alias: '数值'}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -92,55 +93,17 @@ export declare const zRose: z.ZodObject<{
|
|
92
93
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
94
|
id: z.ZodString;
|
94
95
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
location: z.
|
96
|
+
location: z.ZodDefault<z.ZodEnum<{
|
96
97
|
dimension: "dimension";
|
97
98
|
rowDimension: "rowDimension";
|
98
99
|
columnDimension: "columnDimension";
|
99
|
-
}
|
100
|
+
}>>;
|
100
101
|
}, 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<{
|
102
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
140
103
|
id: z.ZodString;
|
141
104
|
alias: z.ZodOptional<z.ZodString>;
|
142
|
-
autoFormat: z.
|
143
|
-
format: z.
|
105
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
106
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
144
107
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
108
|
number: "number";
|
146
109
|
percent: "percent";
|
@@ -169,7 +132,7 @@ export declare const zRose: z.ZodObject<{
|
|
169
132
|
halfTrunc: "halfTrunc";
|
170
133
|
halfEven: "halfEven";
|
171
134
|
}>>>;
|
172
|
-
}, z.core.$strip
|
135
|
+
}, z.core.$strip>>>;
|
173
136
|
}, z.core.$strip>]>>>;
|
174
137
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
175
138
|
color: z.ZodOptional<z.ZodObject<{
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import
|
3
|
+
import type { MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
5
|
/**
|
5
6
|
* 分组玫瑰图类型定义
|
6
7
|
* @description 分组玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
@@ -40,10 +41,10 @@ export interface RoseParallel {
|
|
40
41
|
/**
|
41
42
|
* 指标
|
42
43
|
* @description 玫瑰图的指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
44
|
+
* @type {MeasureTree}
|
44
45
|
* @example [{id: 'value', alias: '数值'}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -92,55 +93,17 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
92
93
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
94
|
id: z.ZodString;
|
94
95
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
location: z.
|
96
|
+
location: z.ZodDefault<z.ZodEnum<{
|
96
97
|
dimension: "dimension";
|
97
98
|
rowDimension: "rowDimension";
|
98
99
|
columnDimension: "columnDimension";
|
99
|
-
}
|
100
|
+
}>>;
|
100
101
|
}, 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<{
|
102
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
140
103
|
id: z.ZodString;
|
141
104
|
alias: z.ZodOptional<z.ZodString>;
|
142
|
-
autoFormat: z.
|
143
|
-
format: z.
|
105
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
106
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
144
107
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
108
|
number: "number";
|
146
109
|
percent: "percent";
|
@@ -169,7 +132,7 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
169
132
|
halfTrunc: "halfTrunc";
|
170
133
|
halfEven: "halfEven";
|
171
134
|
}>>>;
|
172
|
-
}, z.core.$strip
|
135
|
+
}, z.core.$strip>>>;
|
173
136
|
}, z.core.$strip>]>>>;
|
174
137
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
175
138
|
color: z.ZodOptional<z.ZodObject<{
|