@visactor/vseed 0.0.8 → 0.0.9
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 +137 -0
- package/dist/dataReshape/constant.d.ts +1 -0
- package/dist/dataSelector/index.d.ts +1 -0
- package/dist/dataSelector/selector.d.ts +7 -0
- package/dist/index.cjs +495 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +488 -81
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/markStyle/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/legend/{pivotLegend.d.ts → discreteLegend.d.ts} +1 -1
- package/dist/pipeline/spec/pipes/legend/index.d.ts +2 -2
- package/dist/pipeline/spec/pipes/legend/pivotDiscreteLegend.d.ts +2 -0
- package/dist/pipeline/spec/pipes/{legend/legend.d.ts → markStyle/barStyle.d.ts} +1 -1
- package/dist/pipeline/spec/pipes/markStyle/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -1
- package/dist/pipeline/spec/pipes/stack/stack.d.ts +2 -2
- package/dist/types/advancedVSeed.d.ts +129 -0
- package/dist/types/chartType/bar/bar.d.ts +10 -1
- package/dist/types/chartType/barParallel/barParallel.d.ts +10 -1
- package/dist/types/chartType/barPercent/barPercent.d.ts +10 -1
- package/dist/types/chartType/column/column.d.ts +10 -1
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +10 -1
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +10 -1
- package/dist/types/dataSelector/index.d.ts +1 -0
- package/dist/types/dataSelector/selector.d.ts +34 -0
- package/dist/types/properties/baseConfig/baseConfig.d.ts +102 -0
- package/dist/types/properties/baseConfig/legend.d.ts +101 -4
- package/dist/types/properties/index.d.ts +1 -0
- package/dist/types/properties/markStyle/barStyle.d.ts +114 -0
- package/dist/types/properties/markStyle/index.d.ts +2 -0
- package/dist/types/properties/markStyle/markStyle.d.ts +29 -0
- package/dist/types/properties/theme/customTheme.d.ts +102 -0
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export { markStyle } from './markStyle';
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { SpecPipe } from '../../../../types';
|
2
|
-
export declare const
|
2
|
+
export declare const discreteLegend: SpecPipe;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
1
|
+
export { discreteLegend } from './discreteLegend';
|
2
|
+
export { pivotDiscreteLegend } from './pivotDiscreteLegend';
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { SpecPipe } from '../../../../types';
|
2
|
-
export declare const
|
2
|
+
export declare const barStyle: SpecPipe;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { barStyle } from './barStyle';
|
@@ -1 +1 @@
|
|
1
|
-
export {
|
1
|
+
export { stackInverse } from './stack';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpecPipe } from '../../../../types';
|
2
|
-
export declare const
|
1
|
+
import type { SpecPipe } from '../../../../types';
|
2
|
+
export declare const stackInverse: SpecPipe;
|
@@ -117,6 +117,57 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
117
117
|
}, z.core.$strip>>;
|
118
118
|
legend: z.ZodOptional<z.ZodObject<{
|
119
119
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
120
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
121
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
123
|
+
circle: "circle";
|
124
|
+
cross: "cross";
|
125
|
+
diamond: "diamond";
|
126
|
+
square: "square";
|
127
|
+
arrow: "arrow";
|
128
|
+
arrow2Left: "arrow2Left";
|
129
|
+
arrow2Right: "arrow2Right";
|
130
|
+
wedge: "wedge";
|
131
|
+
thinTriangle: "thinTriangle";
|
132
|
+
triangle: "triangle";
|
133
|
+
triangleUp: "triangleUp";
|
134
|
+
triangleDown: "triangleDown";
|
135
|
+
triangleRight: "triangleRight";
|
136
|
+
triangleLeft: "triangleLeft";
|
137
|
+
stroke: "stroke";
|
138
|
+
star: "star";
|
139
|
+
wye: "wye";
|
140
|
+
rect: "rect";
|
141
|
+
arrowLeft: "arrowLeft";
|
142
|
+
arrowRight: "arrowRight";
|
143
|
+
rectRound: "rectRound";
|
144
|
+
roundLine: "roundLine";
|
145
|
+
}>>>;
|
146
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
147
|
+
left: "left";
|
148
|
+
leftTop: "leftTop";
|
149
|
+
leftBottom: "leftBottom";
|
150
|
+
lt: "lt";
|
151
|
+
lb: "lb";
|
152
|
+
top: "top";
|
153
|
+
topLeft: "topLeft";
|
154
|
+
topRight: "topRight";
|
155
|
+
tl: "tl";
|
156
|
+
tr: "tr";
|
157
|
+
right: "right";
|
158
|
+
rightTop: "rightTop";
|
159
|
+
rightBottom: "rightBottom";
|
160
|
+
rt: "rt";
|
161
|
+
rb: "rb";
|
162
|
+
bottom: "bottom";
|
163
|
+
bottomLeft: "bottomLeft";
|
164
|
+
bottomRight: "bottomRight";
|
165
|
+
bl: "bl";
|
166
|
+
br: "br";
|
167
|
+
}>>>;
|
168
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
169
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
170
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
120
171
|
}, z.core.$strip>>;
|
121
172
|
}, z.core.$strip>>;
|
122
173
|
vtable: z.ZodOptional<z.ZodObject<{
|
@@ -843,6 +894,33 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
843
894
|
pivotTable: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
844
895
|
}, z.core.$strip>;
|
845
896
|
theme: z.ZodString;
|
897
|
+
markStyle: z.ZodObject<{
|
898
|
+
barStyle: z.ZodOptional<z.ZodObject<{
|
899
|
+
selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
900
|
+
field: z.ZodString;
|
901
|
+
operator: z.ZodString;
|
902
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
903
|
+
}, z.core.$strip>, z.ZodObject<{
|
904
|
+
field: z.ZodString;
|
905
|
+
operator: z.ZodString;
|
906
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
907
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
908
|
+
field: z.ZodString;
|
909
|
+
operator: z.ZodString;
|
910
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
911
|
+
}, z.core.$strip>, z.ZodObject<{
|
912
|
+
field: z.ZodString;
|
913
|
+
operator: z.ZodString;
|
914
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
915
|
+
}, z.core.$strip>]>>]>;
|
916
|
+
barColor: z.ZodString;
|
917
|
+
barColorOpacity: z.ZodNumber;
|
918
|
+
barBorderColor: z.ZodString;
|
919
|
+
barBorderWidth: z.ZodNumber;
|
920
|
+
barBorderStyle: z.ZodUnion<readonly [z.ZodLiteral<"solid">, z.ZodLiteral<"dashed">, z.ZodLiteral<"dotted">]>;
|
921
|
+
barRadius: z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
|
922
|
+
}, z.core.$strip>>;
|
923
|
+
}, z.core.$strip>;
|
846
924
|
customTheme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
847
925
|
baseConfig: z.ZodOptional<z.ZodObject<{
|
848
926
|
vchart: z.ZodOptional<z.ZodObject<{
|
@@ -859,6 +937,57 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
859
937
|
}, z.core.$strip>>;
|
860
938
|
legend: z.ZodOptional<z.ZodObject<{
|
861
939
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
940
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
941
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
942
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
943
|
+
circle: "circle";
|
944
|
+
cross: "cross";
|
945
|
+
diamond: "diamond";
|
946
|
+
square: "square";
|
947
|
+
arrow: "arrow";
|
948
|
+
arrow2Left: "arrow2Left";
|
949
|
+
arrow2Right: "arrow2Right";
|
950
|
+
wedge: "wedge";
|
951
|
+
thinTriangle: "thinTriangle";
|
952
|
+
triangle: "triangle";
|
953
|
+
triangleUp: "triangleUp";
|
954
|
+
triangleDown: "triangleDown";
|
955
|
+
triangleRight: "triangleRight";
|
956
|
+
triangleLeft: "triangleLeft";
|
957
|
+
stroke: "stroke";
|
958
|
+
star: "star";
|
959
|
+
wye: "wye";
|
960
|
+
rect: "rect";
|
961
|
+
arrowLeft: "arrowLeft";
|
962
|
+
arrowRight: "arrowRight";
|
963
|
+
rectRound: "rectRound";
|
964
|
+
roundLine: "roundLine";
|
965
|
+
}>>>;
|
966
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
967
|
+
left: "left";
|
968
|
+
leftTop: "leftTop";
|
969
|
+
leftBottom: "leftBottom";
|
970
|
+
lt: "lt";
|
971
|
+
lb: "lb";
|
972
|
+
top: "top";
|
973
|
+
topLeft: "topLeft";
|
974
|
+
topRight: "topRight";
|
975
|
+
tl: "tl";
|
976
|
+
tr: "tr";
|
977
|
+
right: "right";
|
978
|
+
rightTop: "rightTop";
|
979
|
+
rightBottom: "rightBottom";
|
980
|
+
rt: "rt";
|
981
|
+
rb: "rb";
|
982
|
+
bottom: "bottom";
|
983
|
+
bottomLeft: "bottomLeft";
|
984
|
+
bottomRight: "bottomRight";
|
985
|
+
bl: "bl";
|
986
|
+
br: "br";
|
987
|
+
}>>>;
|
988
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
989
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
990
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
862
991
|
}, z.core.$strip>>;
|
863
992
|
}, z.core.$strip>>;
|
864
993
|
vtable: z.ZodOptional<z.ZodObject<{
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 条形图类型定义
|
4
4
|
* @description 条形图,适用于横向数据对比场景,Y轴为类目轴(分类数据),X轴为数值轴(连续数据),柱子横向排列
|
@@ -87,4 +87,13 @@ export interface Bar {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
90
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 并列条形图类型定义
|
4
4
|
* @description 并列条形图,适用于多指标横向并行对比场景,多个条形平行排列展示不同指标值
|
@@ -87,4 +87,13 @@ export interface BarParallel {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
90
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比条形图类型定义
|
4
4
|
* @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
|
@@ -87,4 +87,13 @@ export interface BarPercent {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
90
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 柱状图类型定义
|
4
4
|
* @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
|
@@ -87,4 +87,13 @@ export interface Column {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
90
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 并列柱状图类型定义
|
4
4
|
* @description 并列柱状图,适用于多指标并行对比场景,多个柱子并列排列展示不同指标值
|
@@ -87,4 +87,13 @@ export interface ColumnParallel {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
90
99
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比柱状图类型定义
|
4
4
|
* @description 百分比柱状图,适用于展示各类别占比关系的场景,Y轴以百分比形式展示数据占比
|
@@ -87,4 +87,13 @@ export interface ColumnPercent {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 矩形图元样式
|
92
|
+
* @description 条形图样式配置, 用于定义图表的条形图样式, 包括条形图的颜色, 边框, 圆角等.
|
93
|
+
* 支持全局样式或条件样式配置
|
94
|
+
* 数据筛选器
|
95
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
96
|
+
* 若未配置selector, 则样式全局生效.
|
97
|
+
*/
|
98
|
+
barStyle?: BarStyle;
|
90
99
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './selector';
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import type { Datum } from '../properties';
|
3
|
+
export type ValueSelector = string | number;
|
4
|
+
export type PartialDatumSelector = Datum;
|
5
|
+
export type MeasureSelector = {
|
6
|
+
field: string;
|
7
|
+
operator: '=' | '!=' | '>' | '<' | '>=' | '<=' | 'between';
|
8
|
+
value: string | number | Array<string | number>;
|
9
|
+
};
|
10
|
+
export type DimensionSelector = {
|
11
|
+
field: string;
|
12
|
+
operator: 'in' | 'not in';
|
13
|
+
value: string | number | Array<string | number>;
|
14
|
+
};
|
15
|
+
export type Selector = ValueSelector | PartialDatumSelector | MeasureSelector | DimensionSelector;
|
16
|
+
export type Selectors = Array<Selector>;
|
17
|
+
export declare const zSelector: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
18
|
+
field: z.ZodString;
|
19
|
+
operator: z.ZodString;
|
20
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
22
|
+
field: z.ZodString;
|
23
|
+
operator: z.ZodString;
|
24
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
25
|
+
}, z.core.$strip>]>;
|
26
|
+
export declare const zSelectors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
27
|
+
field: z.ZodString;
|
28
|
+
operator: z.ZodString;
|
29
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
31
|
+
field: z.ZodString;
|
32
|
+
operator: z.ZodString;
|
33
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
34
|
+
}, z.core.$strip>]>>;
|
@@ -13,6 +13,57 @@ declare const zVChartBaseConfig: z.ZodObject<{
|
|
13
13
|
}, z.core.$strip>>;
|
14
14
|
legend: z.ZodOptional<z.ZodObject<{
|
15
15
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
16
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
17
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
18
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
19
|
+
circle: "circle";
|
20
|
+
cross: "cross";
|
21
|
+
diamond: "diamond";
|
22
|
+
square: "square";
|
23
|
+
arrow: "arrow";
|
24
|
+
arrow2Left: "arrow2Left";
|
25
|
+
arrow2Right: "arrow2Right";
|
26
|
+
wedge: "wedge";
|
27
|
+
thinTriangle: "thinTriangle";
|
28
|
+
triangle: "triangle";
|
29
|
+
triangleUp: "triangleUp";
|
30
|
+
triangleDown: "triangleDown";
|
31
|
+
triangleRight: "triangleRight";
|
32
|
+
triangleLeft: "triangleLeft";
|
33
|
+
stroke: "stroke";
|
34
|
+
star: "star";
|
35
|
+
wye: "wye";
|
36
|
+
rect: "rect";
|
37
|
+
arrowLeft: "arrowLeft";
|
38
|
+
arrowRight: "arrowRight";
|
39
|
+
rectRound: "rectRound";
|
40
|
+
roundLine: "roundLine";
|
41
|
+
}>>>;
|
42
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
43
|
+
left: "left";
|
44
|
+
leftTop: "leftTop";
|
45
|
+
leftBottom: "leftBottom";
|
46
|
+
lt: "lt";
|
47
|
+
lb: "lb";
|
48
|
+
top: "top";
|
49
|
+
topLeft: "topLeft";
|
50
|
+
topRight: "topRight";
|
51
|
+
tl: "tl";
|
52
|
+
tr: "tr";
|
53
|
+
right: "right";
|
54
|
+
rightTop: "rightTop";
|
55
|
+
rightBottom: "rightBottom";
|
56
|
+
rt: "rt";
|
57
|
+
rb: "rb";
|
58
|
+
bottom: "bottom";
|
59
|
+
bottomLeft: "bottomLeft";
|
60
|
+
bottomRight: "bottomRight";
|
61
|
+
bl: "bl";
|
62
|
+
br: "br";
|
63
|
+
}>>>;
|
64
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
65
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
66
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
16
67
|
}, z.core.$strip>>;
|
17
68
|
}, z.core.$strip>;
|
18
69
|
declare const zVTableBaseConfig: z.ZodObject<{
|
@@ -33,6 +84,57 @@ export declare const zBaseConfig: z.ZodObject<{
|
|
33
84
|
}, z.core.$strip>>;
|
34
85
|
legend: z.ZodOptional<z.ZodObject<{
|
35
86
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
87
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
88
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
89
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
90
|
+
circle: "circle";
|
91
|
+
cross: "cross";
|
92
|
+
diamond: "diamond";
|
93
|
+
square: "square";
|
94
|
+
arrow: "arrow";
|
95
|
+
arrow2Left: "arrow2Left";
|
96
|
+
arrow2Right: "arrow2Right";
|
97
|
+
wedge: "wedge";
|
98
|
+
thinTriangle: "thinTriangle";
|
99
|
+
triangle: "triangle";
|
100
|
+
triangleUp: "triangleUp";
|
101
|
+
triangleDown: "triangleDown";
|
102
|
+
triangleRight: "triangleRight";
|
103
|
+
triangleLeft: "triangleLeft";
|
104
|
+
stroke: "stroke";
|
105
|
+
star: "star";
|
106
|
+
wye: "wye";
|
107
|
+
rect: "rect";
|
108
|
+
arrowLeft: "arrowLeft";
|
109
|
+
arrowRight: "arrowRight";
|
110
|
+
rectRound: "rectRound";
|
111
|
+
roundLine: "roundLine";
|
112
|
+
}>>>;
|
113
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
114
|
+
left: "left";
|
115
|
+
leftTop: "leftTop";
|
116
|
+
leftBottom: "leftBottom";
|
117
|
+
lt: "lt";
|
118
|
+
lb: "lb";
|
119
|
+
top: "top";
|
120
|
+
topLeft: "topLeft";
|
121
|
+
topRight: "topRight";
|
122
|
+
tl: "tl";
|
123
|
+
tr: "tr";
|
124
|
+
right: "right";
|
125
|
+
rightTop: "rightTop";
|
126
|
+
rightBottom: "rightBottom";
|
127
|
+
rt: "rt";
|
128
|
+
rb: "rb";
|
129
|
+
bottom: "bottom";
|
130
|
+
bottomLeft: "bottomLeft";
|
131
|
+
bottomRight: "bottomRight";
|
132
|
+
bl: "bl";
|
133
|
+
br: "br";
|
134
|
+
}>>>;
|
135
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
136
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
137
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
36
138
|
}, z.core.$strip>>;
|
37
139
|
}, z.core.$strip>>;
|
38
140
|
vtable: z.ZodOptional<z.ZodObject<{
|
@@ -1,11 +1,108 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const zLegend: z.ZodObject<{
|
3
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
4
|
-
}, z.core.$strip>;
|
5
2
|
export type Legend = {
|
6
3
|
/**
|
7
4
|
* 图例功能是否开启
|
8
5
|
* @default true
|
6
|
+
* @example enable: true
|
7
|
+
*/
|
8
|
+
enable?: boolean;
|
9
|
+
/**
|
10
|
+
* 图例边框是否开启
|
11
|
+
* @default true
|
12
|
+
* @example border: true
|
9
13
|
*/
|
10
|
-
|
14
|
+
border?: boolean;
|
15
|
+
/**
|
16
|
+
* 图例最大列数 或 图例最大行数
|
17
|
+
* @default 1
|
18
|
+
* @description
|
19
|
+
* 如果图例在水平方向上, maxSize控制显示的列数
|
20
|
+
* 如果图例在垂直方向上, maxSize控制显示的行数
|
21
|
+
* @example maxSize: 2
|
22
|
+
*/
|
23
|
+
maxSize?: number;
|
24
|
+
/**
|
25
|
+
* 图例字体大小
|
26
|
+
* @default 12
|
27
|
+
* @example labelFontSize: 10
|
28
|
+
*/
|
29
|
+
labelFontSize?: number;
|
30
|
+
/**
|
31
|
+
* 图例字体颜色
|
32
|
+
* @default '#fff'
|
33
|
+
* @example labelFontColor: '#212121'
|
34
|
+
*/
|
35
|
+
labelFontColor?: string;
|
36
|
+
/**
|
37
|
+
* 图例字体粗细
|
38
|
+
* @default 400
|
39
|
+
* @example labelFontWeight: 400
|
40
|
+
*/
|
41
|
+
labelFontWeight?: number | string;
|
42
|
+
/**
|
43
|
+
* 图例形状
|
44
|
+
* @default 'rectRound'
|
45
|
+
* @example shapeType: 'circle'
|
46
|
+
*/
|
47
|
+
shapeType?: 'circle' | 'cross' | 'diamond' | 'square' | 'arrow' | 'arrow2Left' | 'arrow2Right' | 'wedge' | 'thinTriangle' | 'triangle' | 'triangleUp' | 'triangleDown' | 'triangleRight' | 'triangleLeft' | 'stroke' | 'star' | 'wye' | 'rect' | 'arrowLeft' | 'arrowRight' | 'rectRound' | 'roundLine';
|
48
|
+
/**
|
49
|
+
* 图例位置
|
50
|
+
* @default 'top'
|
51
|
+
* @example position: 'rightTop'
|
52
|
+
*/
|
53
|
+
position?: 'left' | 'leftTop' | 'leftBottom' | 'lt' | 'lb' | 'top' | 'topLeft' | 'topRight' | 'tl' | 'tr' | 'right' | 'rightTop' | 'rightBottom' | 'rt' | 'rb' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'bl' | 'br';
|
11
54
|
};
|
55
|
+
export declare const zLegend: z.ZodObject<{
|
56
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
57
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
58
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
59
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
60
|
+
circle: "circle";
|
61
|
+
cross: "cross";
|
62
|
+
diamond: "diamond";
|
63
|
+
square: "square";
|
64
|
+
arrow: "arrow";
|
65
|
+
arrow2Left: "arrow2Left";
|
66
|
+
arrow2Right: "arrow2Right";
|
67
|
+
wedge: "wedge";
|
68
|
+
thinTriangle: "thinTriangle";
|
69
|
+
triangle: "triangle";
|
70
|
+
triangleUp: "triangleUp";
|
71
|
+
triangleDown: "triangleDown";
|
72
|
+
triangleRight: "triangleRight";
|
73
|
+
triangleLeft: "triangleLeft";
|
74
|
+
stroke: "stroke";
|
75
|
+
star: "star";
|
76
|
+
wye: "wye";
|
77
|
+
rect: "rect";
|
78
|
+
arrowLeft: "arrowLeft";
|
79
|
+
arrowRight: "arrowRight";
|
80
|
+
rectRound: "rectRound";
|
81
|
+
roundLine: "roundLine";
|
82
|
+
}>>>;
|
83
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
84
|
+
left: "left";
|
85
|
+
leftTop: "leftTop";
|
86
|
+
leftBottom: "leftBottom";
|
87
|
+
lt: "lt";
|
88
|
+
lb: "lb";
|
89
|
+
top: "top";
|
90
|
+
topLeft: "topLeft";
|
91
|
+
topRight: "topRight";
|
92
|
+
tl: "tl";
|
93
|
+
tr: "tr";
|
94
|
+
right: "right";
|
95
|
+
rightTop: "rightTop";
|
96
|
+
rightBottom: "rightBottom";
|
97
|
+
rt: "rt";
|
98
|
+
rb: "rb";
|
99
|
+
bottom: "bottom";
|
100
|
+
bottomLeft: "bottomLeft";
|
101
|
+
bottomRight: "bottomRight";
|
102
|
+
bl: "bl";
|
103
|
+
br: "br";
|
104
|
+
}>>>;
|
105
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
106
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
107
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
108
|
+
}, z.core.$strip>;
|