@visactor/vseed 0.0.36 → 0.0.38
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 +8922 -8928
- package/dist/index.cjs +1192 -917
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1160 -903
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/table/pipes/config/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/config/pivotTableConfig.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/config/tableConfig.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipes/series/index.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipes/series/series.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/columns/dimensionsToColumns.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +0 -1
- package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/indicators/pivotDataConfig.d.ts +2 -0
- package/dist/pipeline/utils/constant.d.ts +2 -0
- package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
- package/dist/pipeline/utils/dimensions/typeGuard.d.ts +4 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -0
- package/dist/pipeline/utils/measures/typeGuard.d.ts +4 -0
- package/dist/types/advancedVSeed.d.ts +3841 -3847
- package/dist/types/chartType/area/area.d.ts +11 -2
- package/dist/types/chartType/area/zArea.d.ts +565 -577
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +4 -0
- package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +565 -577
- package/dist/types/chartType/areaRange/areaRange.d.ts +4 -0
- package/dist/types/chartType/areaRange/zAreaRange.d.ts +546 -558
- package/dist/types/chartType/bar/bar.d.ts +4 -1183
- package/dist/types/chartType/bar/index.d.ts +2 -1
- package/dist/types/chartType/bar/zBar.d.ts +1171 -0
- package/dist/types/chartType/barParallel/barParallel.d.ts +4 -1183
- package/dist/types/chartType/barParallel/index.d.ts +2 -1
- package/dist/types/chartType/barParallel/zBarParallel.d.ts +1171 -0
- package/dist/types/chartType/barPercent/barPercent.d.ts +4 -1183
- package/dist/types/chartType/barPercent/index.d.ts +2 -1
- package/dist/types/chartType/barPercent/zBarPercent.d.ts +1171 -0
- package/dist/types/chartType/column/column.d.ts +4 -1183
- package/dist/types/chartType/column/index.d.ts +2 -1
- package/dist/types/chartType/column/zColumn.d.ts +1171 -0
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +4 -1183
- package/dist/types/chartType/columnParallel/index.d.ts +2 -1
- package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +1171 -0
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +4 -1183
- package/dist/types/chartType/columnPercent/index.d.ts +2 -1
- package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +1171 -0
- package/dist/types/chartType/donut/donut.d.ts +4 -119
- package/dist/types/chartType/donut/index.d.ts +2 -1
- package/dist/types/chartType/donut/zDonut.d.ts +119 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +9 -0
- package/dist/types/chartType/dualAxis/zDualAxis.d.ts +744 -755
- package/dist/types/chartType/funnel/funnel.d.ts +4 -89
- package/dist/types/chartType/funnel/index.d.ts +2 -1
- package/dist/types/chartType/funnel/zFunnel.d.ts +89 -0
- package/dist/types/chartType/heatmap/heatmap.d.ts +4 -89
- package/dist/types/chartType/heatmap/index.d.ts +2 -1
- package/dist/types/chartType/heatmap/zHeatmap.d.ts +89 -0
- package/dist/types/chartType/line/index.d.ts +2 -1
- package/dist/types/chartType/line/line.d.ts +8 -1367
- package/dist/types/chartType/line/zLine.d.ts +1353 -0
- package/dist/types/chartType/pie/index.d.ts +2 -1
- package/dist/types/chartType/pie/pie.d.ts +4 -119
- package/dist/types/chartType/pie/zPie.d.ts +119 -0
- package/dist/types/chartType/pivotTable/index.d.ts +2 -1
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +48 -60
- package/dist/types/chartType/pivotTable/zPivotTable.d.ts +68 -0
- package/dist/types/chartType/radar/index.d.ts +2 -1
- package/dist/types/chartType/radar/radar.d.ts +4 -119
- package/dist/types/chartType/radar/zRadar.d.ts +119 -0
- package/dist/types/chartType/rose/index.d.ts +2 -1
- package/dist/types/chartType/rose/rose.d.ts +4 -119
- package/dist/types/chartType/rose/zRose.d.ts +119 -0
- package/dist/types/chartType/roseParallel/index.d.ts +2 -1
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +4 -119
- package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +119 -0
- package/dist/types/chartType/scatter/index.d.ts +2 -1
- package/dist/types/chartType/scatter/scatter.d.ts +4 -1191
- package/dist/types/chartType/scatter/zScatter.d.ts +1179 -0
- package/dist/types/chartType/table/index.d.ts +2 -1
- package/dist/types/chartType/table/table.d.ts +49 -64
- package/dist/types/chartType/table/zTable.d.ts +68 -0
- package/dist/types/dataSelector/selector.d.ts +70 -16
- package/dist/types/properties/analysis/analysis.d.ts +1 -1
- package/dist/types/properties/analysis/sort.d.ts +2 -4
- package/dist/types/properties/analysis/sortLegend.d.ts +2 -3
- package/dist/types/properties/annotation/annotation.d.ts +304 -316
- package/dist/types/properties/annotation/annotationArea.d.ts +12 -137
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +27 -148
- package/dist/types/properties/annotation/annotationPoint.d.ts +20 -114
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +6 -127
- package/dist/types/properties/annotation/index.d.ts +8 -4
- package/dist/types/properties/annotation/zAnnotationArea.d.ts +108 -0
- package/dist/types/properties/annotation/zAnnotationHorizontalLine.d.ts +105 -0
- package/dist/types/properties/annotation/zAnnotationPoint.d.ts +94 -0
- package/dist/types/properties/annotation/zAnnotationVerticalLine.d.ts +105 -0
- package/dist/types/properties/config/axes/axis.d.ts +44 -58
- package/dist/types/properties/config/axes/bandAxis.d.ts +74 -74
- package/dist/types/properties/config/axes/linearAxis.d.ts +76 -76
- package/dist/types/properties/config/backgroundColor/backgroundColor.d.ts +1 -1
- package/dist/types/properties/config/color/color.d.ts +7 -9
- package/dist/types/properties/config/config.d.ts +3288 -3282
- package/dist/types/properties/config/crosshair/crosshair.d.ts +14 -17
- package/dist/types/properties/config/crosshair/index.d.ts +2 -1
- package/dist/types/properties/config/crosshair/zCrosshair.d.ts +15 -0
- package/dist/types/properties/config/label/label.d.ts +1 -1
- package/dist/types/properties/config/legend/legend.d.ts +13 -17
- package/dist/types/properties/config/tooltip/tooltip.d.ts +1 -1
- package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +2 -2
- package/dist/types/properties/dimensions/dimensions.d.ts +6 -29
- package/dist/types/properties/dimensions/index.d.ts +2 -1
- package/dist/types/properties/dimensions/zDimensions.d.ts +30 -0
- package/dist/types/properties/encoding/encoding.d.ts +8 -8
- package/dist/types/properties/markStyle/areaStyle.d.ts +20 -20
- package/dist/types/properties/markStyle/barStyle.d.ts +24 -24
- package/dist/types/properties/markStyle/lineStyle.d.ts +24 -24
- package/dist/types/properties/markStyle/markStyle.d.ts +194 -194
- package/dist/types/properties/markStyle/pointStyle.d.ts +35 -35
- package/dist/types/properties/measures/measures.d.ts +3 -0
- package/dist/types/properties/theme/customTheme.d.ts +3336 -3330
- package/dist/types/vseed.d.ts +6734 -6851
- package/dist/umd/index.js +1202 -939
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1,2 @@
|
|
1
|
-
export * from './pie';
|
1
|
+
export type * from './pie';
|
2
|
+
export * from './zPie';
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { z } from 'zod';
|
2
1
|
import type { Locale } from '../../i18n';
|
3
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
|
4
3
|
/**
|
@@ -8,12 +7,16 @@ import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measur
|
|
8
7
|
* - 展示分类数据的占比分布
|
9
8
|
* - 强调数据的整体与部分关系
|
10
9
|
* - 类别数量较少(建议不超过6个)的占比分析
|
10
|
+
* @warning
|
11
11
|
* 数据要求:
|
12
12
|
* - 至少1个数值字段(度量)
|
13
13
|
* - 所有维度会与指标名称(存在多个指标时)合并成一个维度, 作为图例项展示
|
14
14
|
* - 所有指标会自动合并为一个指标
|
15
15
|
* 默认开启的功能:
|
16
16
|
* - 默认开启图例、数据标签、提示信息、占比计算
|
17
|
+
* @recommend
|
18
|
+
* - 推荐字段配置: `1`个指标, `1`个维度
|
19
|
+
* - 支持数据重塑: 至少`1`个指标, `0`个维度
|
17
20
|
*/
|
18
21
|
export interface Pie {
|
19
22
|
/**
|
@@ -86,121 +89,3 @@ export interface Pie {
|
|
86
89
|
*/
|
87
90
|
locale?: Locale;
|
88
91
|
}
|
89
|
-
export declare const zPie: z.ZodObject<{
|
90
|
-
chartType: z.ZodLiteral<"pie">;
|
91
|
-
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
92
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
|
-
id: z.ZodString;
|
94
|
-
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
location: z.ZodDefault<z.ZodEnum<{
|
96
|
-
dimension: "dimension";
|
97
|
-
rowDimension: "rowDimension";
|
98
|
-
columnDimension: "columnDimension";
|
99
|
-
}>>;
|
100
|
-
}, z.core.$strip>>>;
|
101
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
102
|
-
id: z.ZodString;
|
103
|
-
alias: z.ZodOptional<z.ZodString>;
|
104
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
105
|
-
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
106
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
107
|
-
number: "number";
|
108
|
-
percent: "percent";
|
109
|
-
permille: "permille";
|
110
|
-
scientific: "scientific";
|
111
|
-
}>>>;
|
112
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
113
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
114
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
115
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
116
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
117
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
118
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
119
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
120
|
-
morePrecision: "morePrecision";
|
121
|
-
lessPrecision: "lessPrecision";
|
122
|
-
}>>>;
|
123
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
124
|
-
floor: "floor";
|
125
|
-
ceil: "ceil";
|
126
|
-
expand: "expand";
|
127
|
-
trunc: "trunc";
|
128
|
-
halfCeil: "halfCeil";
|
129
|
-
halfFloor: "halfFloor";
|
130
|
-
halfExpand: "halfExpand";
|
131
|
-
halfTrunc: "halfTrunc";
|
132
|
-
halfEven: "halfEven";
|
133
|
-
}>>>;
|
134
|
-
}, z.core.$strip>>>;
|
135
|
-
}, z.core.$strip>]>>>;
|
136
|
-
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
137
|
-
color: z.ZodOptional<z.ZodObject<{
|
138
|
-
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
139
|
-
colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
140
|
-
}, z.core.$strip>>;
|
141
|
-
label: z.ZodOptional<z.ZodObject<{
|
142
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
143
|
-
}, z.core.$strip>>;
|
144
|
-
legend: z.ZodOptional<z.ZodObject<{
|
145
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
146
|
-
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
147
|
-
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
148
|
-
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
149
|
-
circle: "circle";
|
150
|
-
cross: "cross";
|
151
|
-
diamond: "diamond";
|
152
|
-
square: "square";
|
153
|
-
arrow: "arrow";
|
154
|
-
arrow2Left: "arrow2Left";
|
155
|
-
arrow2Right: "arrow2Right";
|
156
|
-
wedge: "wedge";
|
157
|
-
thinTriangle: "thinTriangle";
|
158
|
-
triangle: "triangle";
|
159
|
-
triangleUp: "triangleUp";
|
160
|
-
triangleDown: "triangleDown";
|
161
|
-
triangleRight: "triangleRight";
|
162
|
-
triangleLeft: "triangleLeft";
|
163
|
-
stroke: "stroke";
|
164
|
-
star: "star";
|
165
|
-
wye: "wye";
|
166
|
-
rect: "rect";
|
167
|
-
arrowLeft: "arrowLeft";
|
168
|
-
arrowRight: "arrowRight";
|
169
|
-
rectRound: "rectRound";
|
170
|
-
roundLine: "roundLine";
|
171
|
-
}>>>;
|
172
|
-
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
173
|
-
left: "left";
|
174
|
-
leftTop: "leftTop";
|
175
|
-
leftBottom: "leftBottom";
|
176
|
-
lt: "lt";
|
177
|
-
lb: "lb";
|
178
|
-
top: "top";
|
179
|
-
topLeft: "topLeft";
|
180
|
-
topRight: "topRight";
|
181
|
-
tl: "tl";
|
182
|
-
tr: "tr";
|
183
|
-
right: "right";
|
184
|
-
rightTop: "rightTop";
|
185
|
-
rightBottom: "rightBottom";
|
186
|
-
rt: "rt";
|
187
|
-
rb: "rb";
|
188
|
-
bottom: "bottom";
|
189
|
-
bottomLeft: "bottomLeft";
|
190
|
-
bottomRight: "bottomRight";
|
191
|
-
bl: "bl";
|
192
|
-
br: "br";
|
193
|
-
}>>>;
|
194
|
-
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
195
|
-
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
196
|
-
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
197
|
-
}, z.core.$strip>>;
|
198
|
-
tooltip: z.ZodOptional<z.ZodObject<{
|
199
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
200
|
-
}, z.core.$strip>>;
|
201
|
-
theme: z.ZodOptional<z.ZodString>;
|
202
|
-
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
203
|
-
"zh-CN": "zh-CN";
|
204
|
-
"en-US": "en-US";
|
205
|
-
}>>>;
|
206
|
-
}, z.core.$strip>;
|
@@ -0,0 +1,119 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zPie: z.ZodObject<{
|
3
|
+
chartType: z.ZodLiteral<"pie">;
|
4
|
+
dataset: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>>;
|
5
|
+
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
6
|
+
id: z.ZodString;
|
7
|
+
alias: z.ZodOptional<z.ZodString>;
|
8
|
+
location: z.ZodDefault<z.ZodEnum<{
|
9
|
+
dimension: "dimension";
|
10
|
+
rowDimension: "rowDimension";
|
11
|
+
columnDimension: "columnDimension";
|
12
|
+
}>>;
|
13
|
+
}, z.core.$strip>>>>;
|
14
|
+
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
15
|
+
id: z.ZodString;
|
16
|
+
alias: z.ZodOptional<z.ZodString>;
|
17
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
18
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
19
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
20
|
+
number: "number";
|
21
|
+
percent: "percent";
|
22
|
+
permille: "permille";
|
23
|
+
scientific: "scientific";
|
24
|
+
}>>>;
|
25
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
26
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
27
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
28
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
29
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
30
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
31
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
32
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
33
|
+
morePrecision: "morePrecision";
|
34
|
+
lessPrecision: "lessPrecision";
|
35
|
+
}>>>;
|
36
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
37
|
+
floor: "floor";
|
38
|
+
ceil: "ceil";
|
39
|
+
expand: "expand";
|
40
|
+
trunc: "trunc";
|
41
|
+
halfCeil: "halfCeil";
|
42
|
+
halfFloor: "halfFloor";
|
43
|
+
halfExpand: "halfExpand";
|
44
|
+
halfTrunc: "halfTrunc";
|
45
|
+
halfEven: "halfEven";
|
46
|
+
}>>>;
|
47
|
+
}, z.core.$strip>>>;
|
48
|
+
}, z.core.$strip>]>>>>;
|
49
|
+
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
50
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
51
|
+
colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
52
|
+
colorMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
53
|
+
}, z.core.$strip>>>;
|
54
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
55
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
56
|
+
}, z.core.$strip>>>;
|
57
|
+
legend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
58
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
59
|
+
border: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
60
|
+
maxSize: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
61
|
+
shapeType: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
62
|
+
circle: "circle";
|
63
|
+
cross: "cross";
|
64
|
+
diamond: "diamond";
|
65
|
+
square: "square";
|
66
|
+
arrow: "arrow";
|
67
|
+
arrow2Left: "arrow2Left";
|
68
|
+
arrow2Right: "arrow2Right";
|
69
|
+
wedge: "wedge";
|
70
|
+
thinTriangle: "thinTriangle";
|
71
|
+
triangle: "triangle";
|
72
|
+
triangleUp: "triangleUp";
|
73
|
+
triangleDown: "triangleDown";
|
74
|
+
triangleRight: "triangleRight";
|
75
|
+
triangleLeft: "triangleLeft";
|
76
|
+
stroke: "stroke";
|
77
|
+
star: "star";
|
78
|
+
wye: "wye";
|
79
|
+
rect: "rect";
|
80
|
+
arrowLeft: "arrowLeft";
|
81
|
+
arrowRight: "arrowRight";
|
82
|
+
rectRound: "rectRound";
|
83
|
+
roundLine: "roundLine";
|
84
|
+
}>>>>;
|
85
|
+
position: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
86
|
+
left: "left";
|
87
|
+
leftTop: "leftTop";
|
88
|
+
leftBottom: "leftBottom";
|
89
|
+
lt: "lt";
|
90
|
+
lb: "lb";
|
91
|
+
top: "top";
|
92
|
+
topLeft: "topLeft";
|
93
|
+
topRight: "topRight";
|
94
|
+
tl: "tl";
|
95
|
+
tr: "tr";
|
96
|
+
right: "right";
|
97
|
+
rightTop: "rightTop";
|
98
|
+
rightBottom: "rightBottom";
|
99
|
+
rt: "rt";
|
100
|
+
rb: "rb";
|
101
|
+
bottom: "bottom";
|
102
|
+
bottomLeft: "bottomLeft";
|
103
|
+
bottomRight: "bottomRight";
|
104
|
+
bl: "bl";
|
105
|
+
br: "br";
|
106
|
+
}>>>>;
|
107
|
+
labelFontSize: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
108
|
+
labelFontColor: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
109
|
+
labelFontWeight: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
110
|
+
}, z.core.$strip>>>;
|
111
|
+
tooltip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
112
|
+
enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
113
|
+
}, z.core.$strip>>>;
|
114
|
+
theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
115
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
116
|
+
"zh-CN": "zh-CN";
|
117
|
+
"en-US": "en-US";
|
118
|
+
}>>>>;
|
119
|
+
}, z.core.$strip>;
|
@@ -1 +1,2 @@
|
|
1
|
-
export * from './pivotTable';
|
1
|
+
export type * from './pivotTable';
|
2
|
+
export * from './zPivotTable';
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { z } from 'zod';
|
2
1
|
import { type Locale } from '../../i18n';
|
3
2
|
import type { Measures } from '../../properties';
|
4
3
|
import { type BackgroundColor, type Dataset, type Dimensions, type Theme } from '../../properties';
|
@@ -9,48 +8,91 @@ import { type BackgroundColor, type Dataset, type Dimensions, type Theme } from
|
|
9
8
|
* - 复杂多维数据统计分析
|
10
9
|
* - 数据钻取与聚合展示
|
11
10
|
* - 业务报表生成与数据探索
|
11
|
+
* @warning
|
12
12
|
* 数据要求:
|
13
13
|
* - 至少1个行维度 或 1个列维度 或 1个指标
|
14
14
|
* - 数据必须已聚合
|
15
15
|
* - 数据可被分组
|
16
16
|
* 默认开启的功能:
|
17
17
|
* - 默认开启行列排序、数据筛选、聚合计算、小计/总计
|
18
|
+
* @recommend
|
19
|
+
* - 推荐字段配置: `1`个指标, `1`个维度
|
20
|
+
* - 支持数据重塑: 至少`1`个指标, `0`个维度
|
18
21
|
*/
|
19
22
|
export interface PivotTable {
|
20
23
|
/**
|
21
|
-
* 透视表
|
22
24
|
* @description 透视表,适用于多维度数据交叉分析场景
|
23
25
|
* @type {'pivotTable'}
|
24
26
|
* @example 'pivotTable'
|
25
27
|
*/
|
26
28
|
chartType: 'pivotTable';
|
27
29
|
/**
|
28
|
-
* 数据集
|
29
30
|
* @description 符合TidyData规范的且已经聚合的数据集,用于定义图表的数据来源和结构, 用户输入的数据集并不需要进行任何处理, VSeed带有强大的数据重塑功能, 会自行进行数据重塑, 透视表的数据最终会被转换对应的树形结构, 用户无需手动进行数据处理.
|
30
31
|
* @type {Array<Record<string|number, any>>}
|
31
32
|
* @example [{region:'华东', product:'A', sales:1000}, {region:'华东', product:'B', sales:1500}]
|
32
33
|
*/
|
33
34
|
dataset: Dataset;
|
34
35
|
/**
|
35
|
-
* 维度
|
36
36
|
* @description 透视表的行维度和列维度,会自动对数据进行处理为树形结构, 并映射到行和列轴, 可以通过 location : "rowDimension" | "columnDimension" 来控制一维度的映射位置
|
37
37
|
* @type {Dimensions}
|
38
38
|
* @example [{id: 'region', alias: '地区', isRow: true}, {id: 'product', alias: '产品', isColumn: true}]
|
39
39
|
*/
|
40
40
|
dimensions?: Dimensions;
|
41
41
|
/**
|
42
|
-
* 指标
|
43
42
|
* @description 透视表支持多个维度指标
|
44
43
|
* @type {Measures}
|
45
44
|
* @example [{id: 'sales', alias: '销售额', aggregation: 'sum'}]
|
46
45
|
*/
|
47
46
|
measures?: Measures;
|
48
47
|
/**
|
49
|
-
* 图表的背景颜色
|
50
48
|
* @default transparent 默认为透明背景
|
51
49
|
* @description 背景颜色可以是颜色字符串, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
|
52
50
|
*/
|
53
51
|
backgroundColor?: BackgroundColor;
|
52
|
+
/**
|
53
|
+
* @description 表格的边框颜色
|
54
|
+
*/
|
55
|
+
borderColor?: string;
|
56
|
+
/**
|
57
|
+
* @description 表格体的字体大小
|
58
|
+
*/
|
59
|
+
bodyFontSize?: number;
|
60
|
+
/**
|
61
|
+
* @description 表格体的字体颜色
|
62
|
+
*/
|
63
|
+
bodyFontColor?: string;
|
64
|
+
/**
|
65
|
+
* @description 表格体的背景颜色
|
66
|
+
*/
|
67
|
+
bodyBackgroundColor?: string;
|
68
|
+
/**
|
69
|
+
* @description 行表头、列表头的字体大小
|
70
|
+
*/
|
71
|
+
headerFontSize?: number;
|
72
|
+
/**
|
73
|
+
* @description 行表头、列表头的字体颜色
|
74
|
+
*/
|
75
|
+
headerFontColor?: string;
|
76
|
+
/**
|
77
|
+
* @description 行表头、列表头的背景颜色
|
78
|
+
*/
|
79
|
+
headerBackgroundColor?: string;
|
80
|
+
/**
|
81
|
+
* @description 鼠标悬浮在行、列表头的单元格时的背景颜色, 用于突出显示鼠标所在的行列交叉的单元格
|
82
|
+
*/
|
83
|
+
hoverHeaderBackgroundColor?: string;
|
84
|
+
/**
|
85
|
+
* @description 鼠标悬浮在行、列表头的单元格时, 用于突出显示鼠标所在的行与列的所有单元格
|
86
|
+
*/
|
87
|
+
hoverHeaderInlineBackgroundColor?: string;
|
88
|
+
/**
|
89
|
+
* @description 选中的单元格的边框颜色, 用于突出显示选中的单元格
|
90
|
+
*/
|
91
|
+
selectedBorderColor?: string;
|
92
|
+
/**
|
93
|
+
* @description 选中的单元格的背景颜色, 用于突出显示选中的单元格
|
94
|
+
*/
|
95
|
+
selectedBackgroundColor?: string;
|
54
96
|
/**
|
55
97
|
* 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
|
56
98
|
* @default light 默认为亮色主题
|
@@ -67,57 +109,3 @@ export interface PivotTable {
|
|
67
109
|
*/
|
68
110
|
locale?: Locale;
|
69
111
|
}
|
70
|
-
export declare const zPivotTable: z.ZodObject<{
|
71
|
-
chartType: z.ZodLiteral<"pivotTable">;
|
72
|
-
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
73
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
74
|
-
id: z.ZodString;
|
75
|
-
alias: z.ZodOptional<z.ZodString>;
|
76
|
-
location: z.ZodDefault<z.ZodEnum<{
|
77
|
-
dimension: "dimension";
|
78
|
-
rowDimension: "rowDimension";
|
79
|
-
columnDimension: "columnDimension";
|
80
|
-
}>>;
|
81
|
-
}, z.core.$strip>>>;
|
82
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
83
|
-
id: z.ZodString;
|
84
|
-
alias: z.ZodOptional<z.ZodString>;
|
85
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
86
|
-
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
87
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
88
|
-
number: "number";
|
89
|
-
percent: "percent";
|
90
|
-
permille: "permille";
|
91
|
-
scientific: "scientific";
|
92
|
-
}>>>;
|
93
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
94
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
95
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
96
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
97
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
98
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
99
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
100
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
101
|
-
morePrecision: "morePrecision";
|
102
|
-
lessPrecision: "lessPrecision";
|
103
|
-
}>>>;
|
104
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
105
|
-
floor: "floor";
|
106
|
-
ceil: "ceil";
|
107
|
-
expand: "expand";
|
108
|
-
trunc: "trunc";
|
109
|
-
halfCeil: "halfCeil";
|
110
|
-
halfFloor: "halfFloor";
|
111
|
-
halfExpand: "halfExpand";
|
112
|
-
halfTrunc: "halfTrunc";
|
113
|
-
halfEven: "halfEven";
|
114
|
-
}>>>;
|
115
|
-
}, z.core.$strip>>>;
|
116
|
-
}, z.core.$strip>>>;
|
117
|
-
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
118
|
-
theme: z.ZodOptional<z.ZodString>;
|
119
|
-
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
120
|
-
"zh-CN": "zh-CN";
|
121
|
-
"en-US": "en-US";
|
122
|
-
}>>>;
|
123
|
-
}, z.core.$strip>;
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zPivotTable: z.ZodObject<{
|
3
|
+
chartType: z.ZodLiteral<"pivotTable">;
|
4
|
+
dataset: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>>;
|
5
|
+
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
6
|
+
id: z.ZodString;
|
7
|
+
alias: z.ZodOptional<z.ZodString>;
|
8
|
+
location: z.ZodDefault<z.ZodEnum<{
|
9
|
+
dimension: "dimension";
|
10
|
+
rowDimension: "rowDimension";
|
11
|
+
columnDimension: "columnDimension";
|
12
|
+
}>>;
|
13
|
+
}, z.core.$strip>>>>;
|
14
|
+
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
15
|
+
id: z.ZodString;
|
16
|
+
alias: z.ZodOptional<z.ZodString>;
|
17
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
18
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
19
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
20
|
+
number: "number";
|
21
|
+
percent: "percent";
|
22
|
+
permille: "permille";
|
23
|
+
scientific: "scientific";
|
24
|
+
}>>>;
|
25
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
26
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
27
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
28
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
29
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
30
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
31
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
32
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
33
|
+
morePrecision: "morePrecision";
|
34
|
+
lessPrecision: "lessPrecision";
|
35
|
+
}>>>;
|
36
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
37
|
+
floor: "floor";
|
38
|
+
ceil: "ceil";
|
39
|
+
expand: "expand";
|
40
|
+
trunc: "trunc";
|
41
|
+
halfCeil: "halfCeil";
|
42
|
+
halfFloor: "halfFloor";
|
43
|
+
halfExpand: "halfExpand";
|
44
|
+
halfTrunc: "halfTrunc";
|
45
|
+
halfEven: "halfEven";
|
46
|
+
}>>>;
|
47
|
+
}, z.core.$strip>>>;
|
48
|
+
}, z.core.$strip>>>>;
|
49
|
+
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
50
|
+
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
51
|
+
bodyFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
52
|
+
bodyFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
53
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
54
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
55
|
+
hoverBodyInlineBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
56
|
+
headerFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
57
|
+
headerFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
58
|
+
headerBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
59
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
60
|
+
hoverHeaderInlineBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
61
|
+
selectedBorderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
62
|
+
selectedBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
63
|
+
theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
64
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
|
65
|
+
"zh-CN": "zh-CN";
|
66
|
+
"en-US": "en-US";
|
67
|
+
}>>>>;
|
68
|
+
}, z.core.$strip>;
|
@@ -1 +1,2 @@
|
|
1
|
-
export * from './radar';
|
1
|
+
export type * from './radar';
|
2
|
+
export * from './zRadar';
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { z } from 'zod';
|
2
1
|
import { type Locale } from '../../i18n';
|
3
2
|
import type { MeasureTree } from '../../properties';
|
4
3
|
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
@@ -9,12 +8,16 @@ import { type BackgroundColor, type Color, type Dataset, type Dimensions, type L
|
|
9
8
|
* - 多维度数据的综合表现对比
|
10
9
|
* - 多个对象在多个指标上的性能评估
|
11
10
|
* - 分类数据的多维度特征展示
|
11
|
+
* @warning
|
12
12
|
* 数据要求:
|
13
13
|
* - 至少1个数值字段(度量)
|
14
14
|
* - 第一个维度作为雷达图的各个维度轴,其他维度作为不同的系列进行对比
|
15
15
|
* - 支持多个指标分别作为不同的系列展示
|
16
16
|
* 默认开启的功能:
|
17
17
|
* - 默认开启图例、雷达坐标系、数据标签、提示信息、数值缩放
|
18
|
+
* @recommend
|
19
|
+
* - 推荐字段配置: `1`个指标, `1`个维度
|
20
|
+
* - 支持数据重塑: 至少`1`个指标, `0`个维度
|
18
21
|
*/
|
19
22
|
export interface Radar {
|
20
23
|
/**
|
@@ -87,121 +90,3 @@ export interface Radar {
|
|
87
90
|
*/
|
88
91
|
locale?: Locale;
|
89
92
|
}
|
90
|
-
export declare const zRadar: z.ZodObject<{
|
91
|
-
chartType: z.ZodLiteral<"radar">;
|
92
|
-
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
93
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
94
|
-
id: z.ZodString;
|
95
|
-
alias: z.ZodOptional<z.ZodString>;
|
96
|
-
location: z.ZodDefault<z.ZodEnum<{
|
97
|
-
dimension: "dimension";
|
98
|
-
rowDimension: "rowDimension";
|
99
|
-
columnDimension: "columnDimension";
|
100
|
-
}>>;
|
101
|
-
}, z.core.$strip>>>;
|
102
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
103
|
-
id: z.ZodString;
|
104
|
-
alias: z.ZodOptional<z.ZodString>;
|
105
|
-
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
106
|
-
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
107
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
108
|
-
number: "number";
|
109
|
-
percent: "percent";
|
110
|
-
permille: "permille";
|
111
|
-
scientific: "scientific";
|
112
|
-
}>>>;
|
113
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
114
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
115
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
116
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
117
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
118
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
119
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
120
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
121
|
-
morePrecision: "morePrecision";
|
122
|
-
lessPrecision: "lessPrecision";
|
123
|
-
}>>>;
|
124
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
125
|
-
floor: "floor";
|
126
|
-
ceil: "ceil";
|
127
|
-
expand: "expand";
|
128
|
-
trunc: "trunc";
|
129
|
-
halfCeil: "halfCeil";
|
130
|
-
halfFloor: "halfFloor";
|
131
|
-
halfExpand: "halfExpand";
|
132
|
-
halfTrunc: "halfTrunc";
|
133
|
-
halfEven: "halfEven";
|
134
|
-
}>>>;
|
135
|
-
}, z.core.$strip>>>;
|
136
|
-
}, z.core.$strip>]>>>;
|
137
|
-
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
138
|
-
color: z.ZodOptional<z.ZodObject<{
|
139
|
-
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
140
|
-
colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
141
|
-
}, z.core.$strip>>;
|
142
|
-
label: z.ZodOptional<z.ZodObject<{
|
143
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
144
|
-
}, z.core.$strip>>;
|
145
|
-
legend: z.ZodOptional<z.ZodObject<{
|
146
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
147
|
-
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
148
|
-
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
149
|
-
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
150
|
-
circle: "circle";
|
151
|
-
cross: "cross";
|
152
|
-
diamond: "diamond";
|
153
|
-
square: "square";
|
154
|
-
arrow: "arrow";
|
155
|
-
arrow2Left: "arrow2Left";
|
156
|
-
arrow2Right: "arrow2Right";
|
157
|
-
wedge: "wedge";
|
158
|
-
thinTriangle: "thinTriangle";
|
159
|
-
triangle: "triangle";
|
160
|
-
triangleUp: "triangleUp";
|
161
|
-
triangleDown: "triangleDown";
|
162
|
-
triangleRight: "triangleRight";
|
163
|
-
triangleLeft: "triangleLeft";
|
164
|
-
stroke: "stroke";
|
165
|
-
star: "star";
|
166
|
-
wye: "wye";
|
167
|
-
rect: "rect";
|
168
|
-
arrowLeft: "arrowLeft";
|
169
|
-
arrowRight: "arrowRight";
|
170
|
-
rectRound: "rectRound";
|
171
|
-
roundLine: "roundLine";
|
172
|
-
}>>>;
|
173
|
-
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
174
|
-
left: "left";
|
175
|
-
leftTop: "leftTop";
|
176
|
-
leftBottom: "leftBottom";
|
177
|
-
lt: "lt";
|
178
|
-
lb: "lb";
|
179
|
-
top: "top";
|
180
|
-
topLeft: "topLeft";
|
181
|
-
topRight: "topRight";
|
182
|
-
tl: "tl";
|
183
|
-
tr: "tr";
|
184
|
-
right: "right";
|
185
|
-
rightTop: "rightTop";
|
186
|
-
rightBottom: "rightBottom";
|
187
|
-
rt: "rt";
|
188
|
-
rb: "rb";
|
189
|
-
bottom: "bottom";
|
190
|
-
bottomLeft: "bottomLeft";
|
191
|
-
bottomRight: "bottomRight";
|
192
|
-
bl: "bl";
|
193
|
-
br: "br";
|
194
|
-
}>>>;
|
195
|
-
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
196
|
-
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
197
|
-
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
198
|
-
}, z.core.$strip>>;
|
199
|
-
tooltip: z.ZodOptional<z.ZodObject<{
|
200
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
201
|
-
}, z.core.$strip>>;
|
202
|
-
theme: z.ZodOptional<z.ZodString>;
|
203
|
-
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
204
|
-
"zh-CN": "zh-CN";
|
205
|
-
"en-US": "en-US";
|
206
|
-
}>>>;
|
207
|
-
}, z.core.$strip>;
|