@visactor/vseed 0.0.37 → 0.0.39
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 +22 -24
- package/dist/index.cjs +132 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +132 -71
- package/dist/index.js.map +1 -1
- package/dist/pipeline/spec/chart/pipes/color/color.d.ts +3 -0
- package/dist/pipeline/spec/chart/pipes/series/series.d.ts +4 -0
- package/dist/pipeline/utils/constant.d.ts +2 -0
- package/dist/types/advancedVSeed.d.ts +10 -12
- package/dist/types/chartType/area/area.d.ts +13 -10
- package/dist/types/chartType/area/zArea.d.ts +6 -12
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +4 -0
- package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +6 -12
- package/dist/types/chartType/areaRange/areaRange.d.ts +4 -0
- package/dist/types/chartType/areaRange/zAreaRange.d.ts +6 -12
- package/dist/types/chartType/bar/bar.d.ts +4 -0
- package/dist/types/chartType/bar/zBar.d.ts +2 -12
- package/dist/types/chartType/barParallel/barParallel.d.ts +4 -0
- package/dist/types/chartType/barParallel/zBarParallel.d.ts +2 -12
- package/dist/types/chartType/barPercent/barPercent.d.ts +4 -0
- package/dist/types/chartType/barPercent/zBarPercent.d.ts +2 -12
- package/dist/types/chartType/column/column.d.ts +4 -0
- package/dist/types/chartType/column/zColumn.d.ts +2 -12
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +4 -0
- package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +2 -12
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +4 -0
- package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +2 -12
- package/dist/types/chartType/donut/donut.d.ts +4 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +9 -0
- package/dist/types/chartType/dualAxis/zDualAxis.d.ts +9 -12
- package/dist/types/chartType/funnel/funnel.d.ts +4 -0
- package/dist/types/chartType/heatmap/heatmap.d.ts +4 -0
- package/dist/types/chartType/line/line.d.ts +8 -2
- package/dist/types/chartType/line/zLine.d.ts +4 -12
- package/dist/types/chartType/pie/pie.d.ts +4 -0
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +4 -0
- package/dist/types/chartType/radar/radar.d.ts +29 -1
- package/dist/types/chartType/rose/rose.d.ts +4 -0
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +4 -0
- package/dist/types/chartType/scatter/scatter.d.ts +4 -0
- package/dist/types/chartType/scatter/zScatter.d.ts +2 -12
- package/dist/types/chartType/table/table.d.ts +4 -0
- package/dist/types/dataSelector/selector.d.ts +54 -0
- package/dist/types/properties/annotation/annotation.d.ts +0 -12
- package/dist/types/properties/annotation/annotationArea.d.ts +17 -32
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +0 -14
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +0 -14
- package/dist/types/properties/annotation/zAnnotationArea.d.ts +0 -2
- package/dist/types/properties/annotation/zAnnotationHorizontalLine.d.ts +0 -2
- package/dist/types/properties/annotation/zAnnotationVerticalLine.d.ts +0 -2
- package/dist/types/properties/config/axes/axis.d.ts +0 -14
- package/dist/types/properties/config/color/color.d.ts +4 -6
- package/dist/types/properties/config/config.d.ts +2 -0
- 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/legend/legend.d.ts +0 -4
- 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/markStyle/areaStyle.d.ts +5 -76
- package/dist/types/properties/markStyle/barStyle.d.ts +11 -12
- package/dist/types/properties/markStyle/index.d.ts +2 -1
- package/dist/types/properties/markStyle/lineStyle.d.ts +11 -17
- package/dist/types/properties/markStyle/markStyle.d.ts +8 -0
- package/dist/types/properties/markStyle/pointStyle.d.ts +5 -6
- package/dist/types/properties/markStyle/zAreaStyle.d.ts +75 -0
- package/dist/types/properties/measures/measures.d.ts +3 -0
- package/dist/types/properties/theme/customTheme.d.ts +2 -0
- package/dist/types/vseed.d.ts +45 -144
- package/dist/umd/index.js +132 -71
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -31,21 +31,21 @@ export type AnnotationArea = {
|
|
31
31
|
*/
|
32
32
|
textFontWeight?: number;
|
33
33
|
/**
|
34
|
-
* @description 文本对齐方式, 一般情况下, 设置为right,
|
35
|
-
* 建议设置为'center',
|
36
|
-
* right:
|
37
|
-
* left:
|
38
|
-
* center:
|
39
|
-
* @example 'center'
|
34
|
+
* @description 文本对齐方式, 一般情况下, 设置为right, 文本显示在标注区域中间, 确保显示在图表的可见区域
|
35
|
+
* 建议设置为'center', 这样可以确保文本在标注区域的中间
|
36
|
+
* right: 文本在标注区域的左侧, 文本的右侧边缘对齐标注区域
|
37
|
+
* left: 文本在标注区域的右侧, 文本的左侧边缘对齐标注区域
|
38
|
+
* center: 文本在标注区域的中心, 文本的中心对齐标注区域
|
39
|
+
* @example 'center' 文本在标注区域的中间
|
40
40
|
*/
|
41
41
|
textAlign?: 'left' | 'right' | 'center';
|
42
42
|
/**
|
43
|
-
* @description 文本垂直对齐方式, 一般情况下, 设置为top,
|
43
|
+
* @description 文本垂直对齐方式, 一般情况下, 设置为top, 文本显示在标注区域底部, 确保显示在图表的可见区域
|
44
44
|
* 建议设置为'top', 这样可以确保文本完整的显示在图表的可见区域
|
45
|
-
* top:
|
46
|
-
* middle:
|
47
|
-
* bottom:
|
48
|
-
* @example 'top'
|
45
|
+
* top: 文本在标注区域的底部, 文本的顶部边缘对齐标注区域
|
46
|
+
* middle: 文本在标注区域的中心, 文本的中心对齐标注区域
|
47
|
+
* bottom: 文本在标注区域的顶部, 文本的底部边缘对齐标注区域
|
48
|
+
* @example 'top' 文本在标注区域的底部
|
49
49
|
*/
|
50
50
|
textBaseline?: 'top' | 'middle' | 'bottom';
|
51
51
|
/**
|
@@ -81,47 +81,32 @@ export type AnnotationArea = {
|
|
81
81
|
*/
|
82
82
|
textBackgroundPadding?: number;
|
83
83
|
/**
|
84
|
-
* @description
|
85
|
-
* 负值则整体向上偏移, 例如设置为-10, 则整个标注面组件包括文本、面图元, 一起向上偏移10像素
|
86
|
-
* 正值则整体向下偏移, 例如设置为10, 则整个标注面组件包括文本、面图元, 一起向下偏移10像素
|
87
|
-
* @example offsetY: 5, 标注面整体向下偏移5像素
|
88
|
-
*/
|
89
|
-
offsetY?: number;
|
90
|
-
/**
|
91
|
-
* @description 标注面整体在X方向的偏移像素距离, 当标注面在图表左侧(类目轴起点)时, 建议设置为正值, 标注面在图表右侧(类目轴终点)时, 建议设置为负值.
|
92
|
-
* 负值则整体向左偏移, 例如设置为-10, 则整个标注面组件包括文本、面图元, 一起向左偏移10像素
|
93
|
-
* 正值则整体向右偏移, 例如设置为10, 则整个标注面组件包括文本、面图元, 一起向右偏移10像素
|
94
|
-
* @example offsetX: 5, 标注面整体向右偏移5像素
|
95
|
-
*/
|
96
|
-
offsetX?: number;
|
97
|
-
/**
|
98
|
-
* @description 面积区域颜色
|
84
|
+
* @description 标注区域区域颜色
|
99
85
|
* @example 'red'
|
100
86
|
*/
|
101
87
|
areaColor?: string;
|
102
88
|
/**
|
103
|
-
* @description
|
89
|
+
* @description 标注区域区域颜色透明度
|
104
90
|
* @example 0.5
|
105
91
|
*/
|
106
92
|
areaColorOpacity?: number;
|
107
93
|
/**
|
108
|
-
* @description
|
109
|
-
* @default 'red'
|
94
|
+
* @description 标注区域区域边框颜色
|
110
95
|
* @example 'red'
|
111
96
|
*/
|
112
97
|
areaBorderColor?: number;
|
113
98
|
/**
|
114
|
-
* @description
|
99
|
+
* @description 标注区域区域边框宽度
|
115
100
|
* @example 2
|
116
101
|
*/
|
117
102
|
areaBorderWidth?: number;
|
118
103
|
/**
|
119
|
-
* @description
|
104
|
+
* @description 标注区域区域边框圆角
|
120
105
|
* @example 4
|
121
106
|
*/
|
122
107
|
areaBorderRadius?: number;
|
123
108
|
/**
|
124
|
-
* @description
|
109
|
+
* @description 标注区域区域的边距
|
125
110
|
* @example 0
|
126
111
|
*/
|
127
112
|
outerPadding?: number;
|
@@ -87,20 +87,6 @@ export type AnnotationHorizontalLine = {
|
|
87
87
|
* @example 4
|
88
88
|
*/
|
89
89
|
textBackgroundPadding?: number;
|
90
|
-
/**
|
91
|
-
* @description (水平)标注线整体在Y方向的偏移像素距离, 一般情况下, 无需设置
|
92
|
-
* 负值则整体向上偏移, 例如设置为-10, 则整个(水平)标注线组件包括文本、箭头、线段, 一起向上偏移10像素
|
93
|
-
* 正值则整体向下偏移, 例如设置为10, 则整个(水平)标注线组件包括文本、箭头、线段, 一起向下偏移10像素
|
94
|
-
* @example offsetY: 0
|
95
|
-
*/
|
96
|
-
offsetY?: number;
|
97
|
-
/**
|
98
|
-
* @description (水平)标注线整体在X方向的偏移像素距离, 一般情况下, 无需设置
|
99
|
-
* 负值则整体向左偏移, 例如设置为-10, 则整个(水平)标注线组件包括文本、箭头、线段, 一起向左偏移10像素
|
100
|
-
* 正值则整体向右偏移, 例如设置为10, 则整个(水平)标注线组件包括文本、箭头、线段, 一起向右偏移10像素
|
101
|
-
* @example offsetX: 0
|
102
|
-
*/
|
103
|
-
offsetX?: number;
|
104
90
|
/**
|
105
91
|
* 线可见
|
106
92
|
* @description 线可见
|
@@ -55,20 +55,6 @@ export type AnnotationVerticalLine = {
|
|
55
55
|
* @example 'top'
|
56
56
|
*/
|
57
57
|
textBaseline?: 'top' | 'middle' | 'bottom';
|
58
|
-
/**
|
59
|
-
* @description (垂直)标注线整体在Y方向的偏移像素距离, 一般情况下, 无需设置
|
60
|
-
* 负值则整体向上偏移, 例如设置为-10, 则整个标注线组件包括文本、箭头、线段, 一起向上偏移10像素
|
61
|
-
* 正值则整体向下偏移, 例如设置为10, 则整个标注线组件包括文本、箭头、线段, 一起向下偏移10像素
|
62
|
-
* @example offsetY: 0
|
63
|
-
*/
|
64
|
-
offsetY?: number;
|
65
|
-
/**
|
66
|
-
* @description (垂直)标注线整体在X方向的偏移像素距离, 一般情况下, 无需设置
|
67
|
-
* 负值则整体向左偏移, 例如设置为-10, 则整个标注线组件包括文本、箭头、线段, 一起向左偏移10像素
|
68
|
-
* 正值则整体向右偏移, 例如设置为10, 则整个标注线组件包括文本、箭头、线段, 一起向右偏移10像素
|
69
|
-
* @example offsetX: 0
|
70
|
-
*/
|
71
|
-
offsetX?: number;
|
72
58
|
/**
|
73
59
|
* @description 线可见
|
74
60
|
* @example true
|
@@ -105,6 +105,4 @@ export declare const zAnnotationArea: z.ZodObject<{
|
|
105
105
|
areaBorderWidth: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
106
106
|
areaBorderRadius: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
107
107
|
outerPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
108
|
-
offsetX: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
109
|
-
offsetY: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
110
108
|
}, z.core.$strip>;
|
@@ -102,6 +102,4 @@ export declare const zAnnotationHorizontalLine: z.ZodObject<{
|
|
102
102
|
textBackgroundBorderRadius: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
103
103
|
textBackgroundBorderWidth: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
104
104
|
textBackgroundPadding: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
105
|
-
offsetX: z.ZodDefault<z.ZodNumber>;
|
106
|
-
offsetY: z.ZodDefault<z.ZodNumber>;
|
107
105
|
}, z.core.$strip>;
|
@@ -102,6 +102,4 @@ export declare const zAnnotationVerticalLine: z.ZodObject<{
|
|
102
102
|
lineColor: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
103
103
|
lineWidth: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
104
104
|
lineStyle: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"solid">, z.ZodLiteral<"dashed">, z.ZodLiteral<"dotted">]>>>>;
|
105
|
-
offsetX: z.ZodDefault<z.ZodNumber>;
|
106
|
-
offsetY: z.ZodDefault<z.ZodNumber>;
|
107
105
|
}, z.core.$strip>;
|
@@ -86,7 +86,6 @@ export type Axis = {
|
|
86
86
|
/**
|
87
87
|
* 轴标签, 自动限制长度的最大长度
|
88
88
|
* @description 当标签文本长度超过最大长度时, 超出部分省略号表示, 鼠标悬浮后可见标签. 仅对类目轴生效.
|
89
|
-
* @default 80
|
90
89
|
*/
|
91
90
|
labelAutoLimitLength?: number;
|
92
91
|
/**
|
@@ -101,22 +100,18 @@ export type Axis = {
|
|
101
100
|
visible?: boolean;
|
102
101
|
/**
|
103
102
|
* 标签颜色
|
104
|
-
* @default '#797B85'
|
105
103
|
*/
|
106
104
|
labelColor?: string;
|
107
105
|
/**
|
108
106
|
* 标签字体大小
|
109
|
-
* @default 12
|
110
107
|
*/
|
111
108
|
labelFontSize?: number;
|
112
109
|
/**
|
113
110
|
* 标签字体粗细
|
114
|
-
* @default 400
|
115
111
|
*/
|
116
112
|
labelFontWeight?: number;
|
117
113
|
/**
|
118
114
|
* 标签旋转角度
|
119
|
-
* @default 0
|
120
115
|
*/
|
121
116
|
labelAngle?: number;
|
122
117
|
};
|
@@ -137,7 +132,6 @@ export type Axis = {
|
|
137
132
|
visible?: boolean;
|
138
133
|
/**
|
139
134
|
* 轴线颜色
|
140
|
-
* @default 'rgba(54, 65, 89, 0.30)'
|
141
135
|
*/
|
142
136
|
lineColor?: string;
|
143
137
|
/**
|
@@ -163,12 +157,10 @@ export type Axis = {
|
|
163
157
|
tickInside?: boolean;
|
164
158
|
/**
|
165
159
|
* 刻度颜色
|
166
|
-
* @default 'rgba(54, 65, 89, 0.30)'
|
167
160
|
*/
|
168
161
|
tickColor?: string;
|
169
162
|
/**
|
170
163
|
* 刻度尺寸
|
171
|
-
* @default 4
|
172
164
|
*/
|
173
165
|
tickSize?: number;
|
174
166
|
};
|
@@ -184,22 +176,18 @@ export type Axis = {
|
|
184
176
|
visible?: boolean;
|
185
177
|
/**
|
186
178
|
* 标题文本, 默认跟随字段配置
|
187
|
-
* @default ''
|
188
179
|
*/
|
189
180
|
titleText?: string;
|
190
181
|
/**
|
191
182
|
* 标题颜色
|
192
|
-
* @default '#646A73'
|
193
183
|
*/
|
194
184
|
titleColor?: string;
|
195
185
|
/**
|
196
186
|
* 标题字体大小
|
197
|
-
* @default 12
|
198
187
|
*/
|
199
188
|
titleFontSize?: number;
|
200
189
|
/**
|
201
190
|
* 标题字体粗细
|
202
|
-
* @default 400
|
203
191
|
*/
|
204
192
|
titleFontWeight?: number;
|
205
193
|
};
|
@@ -211,12 +199,10 @@ export type Axis = {
|
|
211
199
|
visible?: boolean;
|
212
200
|
/**
|
213
201
|
* 网格线颜色
|
214
|
-
* @default 'rgba(54, 65, 89, 0.15)'
|
215
202
|
*/
|
216
203
|
gridColor?: string;
|
217
204
|
/**
|
218
205
|
* 网格线宽度
|
219
|
-
* @default 0.5
|
220
206
|
*/
|
221
207
|
gridWidth?: number;
|
222
208
|
};
|
@@ -8,14 +8,12 @@ export declare const zLinearColor: z.ZodObject<{
|
|
8
8
|
}, z.core.$strip>;
|
9
9
|
export type Color = {
|
10
10
|
/**
|
11
|
-
*
|
12
|
-
* @description 颜色配色方案用于定义图表中不同元素的颜色
|
11
|
+
* @description 颜色配色方案, 颜色配色方案用于定义图表中不同元素的颜色
|
13
12
|
* @example ['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']
|
14
13
|
*/
|
15
14
|
colorScheme?: string[];
|
16
15
|
/**
|
17
|
-
*
|
18
|
-
* @description 颜色映射用于将数据值映射到具体的颜色
|
16
|
+
* @description 颜色映射, 颜色映射用于将数据值映射到具体的颜色
|
19
17
|
* @example
|
20
18
|
* {
|
21
19
|
* 'profit': 'red',
|
@@ -26,8 +24,8 @@ export type Color = {
|
|
26
24
|
};
|
27
25
|
export type LinearColor = {
|
28
26
|
/**
|
29
|
-
*
|
30
|
-
* @description 线性渐变颜色配色方案用于定义图表中不同元素的颜色
|
27
|
+
*
|
28
|
+
* @description 线性渐变颜色配色方案, 线性渐变颜色配色方案用于定义图表中不同元素的颜色
|
31
29
|
* @example ['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']
|
32
30
|
*/
|
33
31
|
colorScheme?: string[];
|
@@ -1668,6 +1668,7 @@ export declare const zDualAxisConfig: z.ZodObject<{
|
|
1668
1668
|
scatter: "scatter";
|
1669
1669
|
}>>;
|
1670
1670
|
}, z.core.$strip>]>>>;
|
1671
|
+
alignTicks: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodBoolean>, z.ZodBoolean]>>>;
|
1671
1672
|
primaryYAxis: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
1672
1673
|
visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
1673
1674
|
min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
@@ -4345,6 +4346,7 @@ export declare const zConfig: z.ZodObject<{
|
|
4345
4346
|
scatter: "scatter";
|
4346
4347
|
}>>;
|
4347
4348
|
}, z.core.$strip>]>>>;
|
4349
|
+
alignTicks: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodBoolean>, z.ZodBoolean]>>>;
|
4348
4350
|
primaryYAxis: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
4349
4351
|
visible: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
4350
4352
|
min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
@@ -1,17 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
16
|
-
}, z.core.$strip>;
|
17
|
-
export type CrosshairRect = z.infer<typeof zCrosshairLine>;
|
1
|
+
export type CrosshairLine = {
|
2
|
+
visible?: boolean;
|
3
|
+
lineColor?: string;
|
4
|
+
labelColor?: string;
|
5
|
+
labelVisible?: boolean;
|
6
|
+
labelBackgroundColor?: string;
|
7
|
+
};
|
8
|
+
export type CrosshairRect = {
|
9
|
+
visible?: boolean;
|
10
|
+
rectColor?: string;
|
11
|
+
labelColor?: string;
|
12
|
+
labelVisible?: boolean;
|
13
|
+
labelBackgroundColor?: string;
|
14
|
+
};
|
@@ -1 +1,2 @@
|
|
1
|
-
export * from './crosshair';
|
1
|
+
export type * from './crosshair';
|
2
|
+
export * from './zCrosshair';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zCrosshairLine: z.ZodObject<{
|
3
|
+
visible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
4
|
+
lineColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
5
|
+
labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
6
|
+
labelVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
7
|
+
labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
8
|
+
}, z.core.$strip>;
|
9
|
+
export declare const zCrosshairRect: z.ZodObject<{
|
10
|
+
visible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
11
|
+
rectColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
12
|
+
labelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
13
|
+
labelVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
14
|
+
labelBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
15
|
+
}, z.core.$strip>;
|
@@ -14,25 +14,21 @@ export type Legend = {
|
|
14
14
|
border?: boolean;
|
15
15
|
/**
|
16
16
|
* 图例字体大小
|
17
|
-
* @default 12
|
18
17
|
* @example labelFontSize: 10
|
19
18
|
*/
|
20
19
|
labelFontSize?: number;
|
21
20
|
/**
|
22
21
|
* 图例字体颜色
|
23
|
-
* @default '#fff'
|
24
22
|
* @example labelFontColor: '#212121'
|
25
23
|
*/
|
26
24
|
labelFontColor?: string;
|
27
25
|
/**
|
28
26
|
* 图例字体粗细
|
29
|
-
* @default 400
|
30
27
|
* @example labelFontWeight: 400
|
31
28
|
*/
|
32
29
|
labelFontWeight?: number | string;
|
33
30
|
/**
|
34
31
|
* 图例形状
|
35
|
-
* @default 'rectRound'
|
36
32
|
* @example shapeType: 'circle'
|
37
33
|
*/
|
38
34
|
shapeType?: 'circle' | 'cross' | 'diamond' | 'square' | 'arrow' | 'arrow2Left' | 'arrow2Right' | 'wedge' | 'thinTriangle' | 'triangle' | 'triangleUp' | 'triangleDown' | 'triangleRight' | 'triangleLeft' | 'stroke' | 'star' | 'wye' | 'rect' | 'arrowLeft' | 'arrowRight' | 'rectRound' | 'roundLine';
|
@@ -1,9 +1,14 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* @description 维度
|
3
|
+
*/
|
2
4
|
export type Dimension = {
|
3
5
|
id: string;
|
4
6
|
alias?: string;
|
5
7
|
location?: 'dimension' | 'rowDimension' | 'columnDimension';
|
6
8
|
};
|
9
|
+
/**
|
10
|
+
* @description 维度组
|
11
|
+
*/
|
7
12
|
export type DimensionGroup = {
|
8
13
|
id: string;
|
9
14
|
alias?: string;
|
@@ -11,31 +16,3 @@ export type DimensionGroup = {
|
|
11
16
|
};
|
12
17
|
export type Dimensions = Dimension[];
|
13
18
|
export type DimensionTree = (Dimension | DimensionGroup)[];
|
14
|
-
export declare const zDimension: z.ZodObject<{
|
15
|
-
id: z.ZodString;
|
16
|
-
alias: z.ZodOptional<z.ZodString>;
|
17
|
-
location: z.ZodDefault<z.ZodEnum<{
|
18
|
-
dimension: "dimension";
|
19
|
-
rowDimension: "rowDimension";
|
20
|
-
columnDimension: "columnDimension";
|
21
|
-
}>>;
|
22
|
-
}, z.core.$strip>;
|
23
|
-
export declare const zDimensionGroup: z.ZodType<DimensionGroup>;
|
24
|
-
export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
25
|
-
id: z.ZodString;
|
26
|
-
alias: z.ZodOptional<z.ZodString>;
|
27
|
-
location: z.ZodDefault<z.ZodEnum<{
|
28
|
-
dimension: "dimension";
|
29
|
-
rowDimension: "rowDimension";
|
30
|
-
columnDimension: "columnDimension";
|
31
|
-
}>>;
|
32
|
-
}, z.core.$strip>>;
|
33
|
-
export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionGroup, unknown, z.core.$ZodTypeInternals<DimensionGroup, unknown>>, z.ZodObject<{
|
34
|
-
id: z.ZodString;
|
35
|
-
alias: z.ZodOptional<z.ZodString>;
|
36
|
-
location: z.ZodDefault<z.ZodEnum<{
|
37
|
-
dimension: "dimension";
|
38
|
-
rowDimension: "rowDimension";
|
39
|
-
columnDimension: "columnDimension";
|
40
|
-
}>>;
|
41
|
-
}, z.core.$strip>]>>;
|
@@ -1 +1,2 @@
|
|
1
|
-
export * from './dimensions';
|
1
|
+
export type * from './dimensions';
|
2
|
+
export * from './zDimensions';
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import type { DimensionGroup } from './dimensions';
|
3
|
+
export declare const zDimension: z.ZodObject<{
|
4
|
+
id: z.ZodString;
|
5
|
+
alias: z.ZodOptional<z.ZodString>;
|
6
|
+
location: z.ZodDefault<z.ZodEnum<{
|
7
|
+
dimension: "dimension";
|
8
|
+
rowDimension: "rowDimension";
|
9
|
+
columnDimension: "columnDimension";
|
10
|
+
}>>;
|
11
|
+
}, z.core.$strip>;
|
12
|
+
export declare const zDimensionGroup: z.ZodType<DimensionGroup>;
|
13
|
+
export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
14
|
+
id: z.ZodString;
|
15
|
+
alias: z.ZodOptional<z.ZodString>;
|
16
|
+
location: z.ZodDefault<z.ZodEnum<{
|
17
|
+
dimension: "dimension";
|
18
|
+
rowDimension: "rowDimension";
|
19
|
+
columnDimension: "columnDimension";
|
20
|
+
}>>;
|
21
|
+
}, z.core.$strip>>;
|
22
|
+
export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionGroup, unknown, z.core.$ZodTypeInternals<DimensionGroup, unknown>>, z.ZodObject<{
|
23
|
+
id: z.ZodString;
|
24
|
+
alias: z.ZodOptional<z.ZodString>;
|
25
|
+
location: z.ZodDefault<z.ZodEnum<{
|
26
|
+
dimension: "dimension";
|
27
|
+
rowDimension: "rowDimension";
|
28
|
+
columnDimension: "columnDimension";
|
29
|
+
}>>;
|
30
|
+
}, z.core.$strip>]>>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { z } from 'zod';
|
2
1
|
import { type Selector, type Selectors } from '../../dataSelector';
|
3
2
|
export type AreaStyle = {
|
4
3
|
/**
|
@@ -39,89 +38,19 @@ export type AreaStyle = {
|
|
39
38
|
* }
|
40
39
|
*/
|
41
40
|
selector?: Selector | Selectors;
|
41
|
+
/**
|
42
|
+
* 面积图元是否可见
|
43
|
+
* @description 面积图元是否可见
|
44
|
+
*/
|
45
|
+
areaVisible?: boolean;
|
42
46
|
/**
|
43
47
|
* 面积图元的颜色
|
44
48
|
* @description 面积图元的颜色
|
45
|
-
* @type {string}
|
46
49
|
*/
|
47
50
|
areaColor?: string;
|
48
51
|
/**
|
49
52
|
* 面积图元的颜色透明度
|
50
53
|
* @description 面积图元的颜色透明度
|
51
|
-
* @type {number}
|
52
54
|
*/
|
53
55
|
areaColorOpacity?: number;
|
54
56
|
};
|
55
|
-
export declare const zAreaStyle: z.ZodObject<{
|
56
|
-
selector: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
57
|
-
field: z.ZodString;
|
58
|
-
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
59
|
-
"=": "=";
|
60
|
-
"==": "==";
|
61
|
-
"!=": "!=";
|
62
|
-
">": ">";
|
63
|
-
"<": "<";
|
64
|
-
">=": ">=";
|
65
|
-
"<=": "<=";
|
66
|
-
between: "between";
|
67
|
-
}>>>;
|
68
|
-
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
69
|
-
"=": "=";
|
70
|
-
"==": "==";
|
71
|
-
"!=": "!=";
|
72
|
-
">": ">";
|
73
|
-
"<": "<";
|
74
|
-
">=": ">=";
|
75
|
-
"<=": "<=";
|
76
|
-
between: "between";
|
77
|
-
}>>>;
|
78
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
79
|
-
}, z.core.$strip>, z.ZodObject<{
|
80
|
-
field: z.ZodString;
|
81
|
-
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
82
|
-
in: "in";
|
83
|
-
"not in": "not in";
|
84
|
-
}>>>;
|
85
|
-
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
86
|
-
in: "in";
|
87
|
-
"not in": "not in";
|
88
|
-
}>>>;
|
89
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
90
|
-
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
91
|
-
field: z.ZodString;
|
92
|
-
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
93
|
-
"=": "=";
|
94
|
-
"==": "==";
|
95
|
-
"!=": "!=";
|
96
|
-
">": ">";
|
97
|
-
"<": "<";
|
98
|
-
">=": ">=";
|
99
|
-
"<=": "<=";
|
100
|
-
between: "between";
|
101
|
-
}>>>;
|
102
|
-
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
103
|
-
"=": "=";
|
104
|
-
"==": "==";
|
105
|
-
"!=": "!=";
|
106
|
-
">": ">";
|
107
|
-
"<": "<";
|
108
|
-
">=": ">=";
|
109
|
-
"<=": "<=";
|
110
|
-
between: "between";
|
111
|
-
}>>>;
|
112
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
113
|
-
}, z.core.$strip>, z.ZodObject<{
|
114
|
-
field: z.ZodString;
|
115
|
-
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
116
|
-
in: "in";
|
117
|
-
"not in": "not in";
|
118
|
-
}>>>;
|
119
|
-
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
120
|
-
in: "in";
|
121
|
-
"not in": "not in";
|
122
|
-
}>>>;
|
123
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
124
|
-
}, z.core.$strip>]>>]>>>;
|
125
|
-
areaColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
126
|
-
areaColorOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
127
|
-
}, z.core.$strip>;
|
@@ -40,32 +40,31 @@ export type BarStyle = {
|
|
40
40
|
*/
|
41
41
|
selector?: Selector | Selectors;
|
42
42
|
/**
|
43
|
-
*
|
44
|
-
|
43
|
+
* @description 柱图元(矩形图元)是否可见
|
44
|
+
*/
|
45
|
+
barVisible?: boolean;
|
46
|
+
/**
|
47
|
+
* @description 柱图元(矩形图元)颜色
|
45
48
|
* @type {string}
|
46
49
|
*/
|
47
50
|
barColor?: string;
|
48
51
|
/**
|
49
|
-
*
|
50
|
-
* @description 柱状图颜色透明度
|
52
|
+
* @description 柱图元(矩形图元)颜色透明度
|
51
53
|
* @type {number}
|
52
54
|
*/
|
53
55
|
barColorOpacity?: number;
|
54
56
|
/**
|
55
|
-
*
|
56
|
-
* @description 柱状图边框颜色
|
57
|
+
* @description 柱图元(矩形图元)边框颜色
|
57
58
|
* @type {string}
|
58
59
|
*/
|
59
60
|
barBorderColor?: string;
|
60
61
|
/**
|
61
|
-
*
|
62
|
-
* @description 柱状图边框宽度
|
62
|
+
* @description 柱图元(矩形图元)边框宽度
|
63
63
|
* @type {number}
|
64
64
|
*/
|
65
65
|
barBorderWidth?: number;
|
66
66
|
/**
|
67
|
-
*
|
68
|
-
* @description 柱状图边框样式
|
67
|
+
* @description 柱图元(矩形图元)边框样式
|
69
68
|
* @type {number}
|
70
69
|
* @example solid
|
71
70
|
* @example dashed
|
@@ -73,8 +72,7 @@ export type BarStyle = {
|
|
73
72
|
*/
|
74
73
|
barBorderStyle?: 'solid' | 'dashed' | 'dotted';
|
75
74
|
/**
|
76
|
-
*
|
77
|
-
* @description 柱状图圆角
|
75
|
+
* @description 柱图元(矩形图元)圆角
|
78
76
|
* @type {number | number[]}
|
79
77
|
* @example 4
|
80
78
|
* @example [0, 0, 10, 10]
|
@@ -151,6 +149,7 @@ export declare const zBarStyle: z.ZodObject<{
|
|
151
149
|
}>>>;
|
152
150
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
153
151
|
}, z.core.$strip>]>>]>>>;
|
152
|
+
barVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
154
153
|
barColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
155
154
|
barColorOpacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
156
155
|
barBorderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|