@visactor/vseed 0.0.14 → 0.0.15
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/index.cjs +236 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +234 -4
- package/dist/index.js.map +1 -1
- package/dist/types/chartType/area/area.d.ts +867 -0
- package/dist/types/chartType/area/index.d.ts +1 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +867 -0
- package/dist/types/chartType/areaPercent/index.d.ts +1 -1
- package/dist/types/chartType/bar/bar.d.ts +713 -2
- package/dist/types/chartType/bar/index.d.ts +1 -1
- package/dist/types/chartType/barParallel/barParallel.d.ts +711 -0
- package/dist/types/chartType/barParallel/index.d.ts +1 -1
- package/dist/types/chartType/barPercent/barPercent.d.ts +711 -0
- package/dist/types/chartType/barPercent/index.d.ts +1 -1
- package/dist/types/chartType/column/column.d.ts +711 -0
- package/dist/types/chartType/column/index.d.ts +1 -1
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +711 -0
- package/dist/types/chartType/columnParallel/index.d.ts +1 -1
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +711 -0
- package/dist/types/chartType/columnPercent/index.d.ts +1 -1
- package/dist/types/chartType/index.d.ts +11 -11
- package/dist/types/chartType/line/index.d.ts +1 -1
- package/dist/types/chartType/line/line.d.ts +794 -0
- package/dist/types/chartType/pie/index.d.ts +1 -1
- package/dist/types/chartType/pie/pie.d.ts +137 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/vseed.d.ts +6855 -31
- package/dist/umd/index.js +8687 -0
- package/dist/umd/index.js.map +1 -0
- package/package.json +10 -10
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export * from './pie';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
3
|
+
import { z } from 'zod';
|
3
4
|
/**
|
4
5
|
* 饼图类型定义
|
5
6
|
* @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
|
@@ -85,3 +86,139 @@ export interface Pie {
|
|
85
86
|
*/
|
86
87
|
locale?: Locale;
|
87
88
|
}
|
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.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
|
+
id: z.ZodString;
|
94
|
+
alias: z.ZodOptional<z.ZodString>;
|
95
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
96
|
+
location: z.ZodEnum<{
|
97
|
+
dimension: "dimension";
|
98
|
+
rowDimension: "rowDimension";
|
99
|
+
columnDimension: "columnDimension";
|
100
|
+
}>;
|
101
|
+
}, z.core.$strip>>>>;
|
102
|
+
measures: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
103
|
+
id: z.ZodString;
|
104
|
+
alias: z.ZodOptional<z.ZodString>;
|
105
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
106
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
107
|
+
id: z.ZodString;
|
108
|
+
alias: z.ZodOptional<z.ZodString>;
|
109
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
110
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
111
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
112
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
113
|
+
number: "number";
|
114
|
+
percent: "percent";
|
115
|
+
permille: "permille";
|
116
|
+
}>>>;
|
117
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
118
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
119
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
120
|
+
decimalPlaces: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
121
|
+
round: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
122
|
+
round: "round";
|
123
|
+
floor: "floor";
|
124
|
+
ceil: "ceil";
|
125
|
+
}>>>;
|
126
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
127
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
128
|
+
}, z.core.$strip>>>>;
|
129
|
+
}, z.core.$strip>]>>>;
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
131
|
+
id: z.ZodString;
|
132
|
+
alias: z.ZodOptional<z.ZodString>;
|
133
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
134
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
135
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
136
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
137
|
+
number: "number";
|
138
|
+
percent: "percent";
|
139
|
+
permille: "permille";
|
140
|
+
}>>>;
|
141
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
142
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
143
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
144
|
+
decimalPlaces: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
145
|
+
round: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
146
|
+
round: "round";
|
147
|
+
floor: "floor";
|
148
|
+
ceil: "ceil";
|
149
|
+
}>>>;
|
150
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
151
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
152
|
+
}, z.core.$strip>>>>;
|
153
|
+
}, z.core.$strip>]>>>>;
|
154
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
155
|
+
color: z.ZodOptional<z.ZodObject<{
|
156
|
+
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
157
|
+
colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
158
|
+
}, z.core.$strip>>;
|
159
|
+
label: z.ZodOptional<z.ZodObject<{
|
160
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
161
|
+
}, z.core.$strip>>;
|
162
|
+
legend: z.ZodOptional<z.ZodObject<{
|
163
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
164
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
165
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
166
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
167
|
+
circle: "circle";
|
168
|
+
cross: "cross";
|
169
|
+
diamond: "diamond";
|
170
|
+
square: "square";
|
171
|
+
arrow: "arrow";
|
172
|
+
arrow2Left: "arrow2Left";
|
173
|
+
arrow2Right: "arrow2Right";
|
174
|
+
wedge: "wedge";
|
175
|
+
thinTriangle: "thinTriangle";
|
176
|
+
triangle: "triangle";
|
177
|
+
triangleUp: "triangleUp";
|
178
|
+
triangleDown: "triangleDown";
|
179
|
+
triangleRight: "triangleRight";
|
180
|
+
triangleLeft: "triangleLeft";
|
181
|
+
stroke: "stroke";
|
182
|
+
star: "star";
|
183
|
+
wye: "wye";
|
184
|
+
rect: "rect";
|
185
|
+
arrowLeft: "arrowLeft";
|
186
|
+
arrowRight: "arrowRight";
|
187
|
+
rectRound: "rectRound";
|
188
|
+
roundLine: "roundLine";
|
189
|
+
}>>>;
|
190
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
191
|
+
left: "left";
|
192
|
+
leftTop: "leftTop";
|
193
|
+
leftBottom: "leftBottom";
|
194
|
+
lt: "lt";
|
195
|
+
lb: "lb";
|
196
|
+
top: "top";
|
197
|
+
topLeft: "topLeft";
|
198
|
+
topRight: "topRight";
|
199
|
+
tl: "tl";
|
200
|
+
tr: "tr";
|
201
|
+
right: "right";
|
202
|
+
rightTop: "rightTop";
|
203
|
+
rightBottom: "rightBottom";
|
204
|
+
rt: "rt";
|
205
|
+
rb: "rb";
|
206
|
+
bottom: "bottom";
|
207
|
+
bottomLeft: "bottomLeft";
|
208
|
+
bottomRight: "bottomRight";
|
209
|
+
bl: "bl";
|
210
|
+
br: "br";
|
211
|
+
}>>>;
|
212
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
213
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
214
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
215
|
+
}, z.core.$strip>>;
|
216
|
+
tooltip: z.ZodOptional<z.ZodObject<{
|
217
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
218
|
+
}, z.core.$strip>>;
|
219
|
+
theme: z.ZodOptional<z.ZodString>;
|
220
|
+
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
221
|
+
"zh-CN": "zh-CN";
|
222
|
+
"en-US": "en-US";
|
223
|
+
}>>>;
|
224
|
+
}, z.core.$strip>;
|
package/dist/types/index.d.ts
CHANGED