@visactor/vseed 0.0.24 → 0.0.26
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 +340 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +334 -81
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingMatrix.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/color/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipes/color/linearColor.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/dataset/{dataset.d.ts → datasetXY.d.ts} +1 -1
- package/dist/pipeline/spec/chart/pipes/dataset/datasetYX.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/dataset/index.d.ts +2 -1
- package/dist/pipeline/spec/chart/pipes/init/heatmap.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/label/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipes/label/labelColorInversion.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/legend/colorLegend.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/legend/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +2 -2
- package/dist/types/chartType/area/area.d.ts +1 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +1 -1
- package/dist/types/chartType/areaRange/areaRange.d.ts +1 -1
- package/dist/types/chartType/funnel/funnel.d.ts +6 -39
- package/dist/types/chartType/heatmap/heatmap.d.ts +6 -37
- package/dist/types/chartType/line/line.d.ts +1 -1
- package/dist/types/properties/config/color/color.d.ts +11 -0
- package/dist/types/properties/config/legend/legend.d.ts +26 -0
- package/dist/types/properties/markStyle/areaStyle.d.ts +0 -2
- package/dist/types/properties/markStyle/barStyle.d.ts +0 -6
- package/dist/types/properties/markStyle/lineStyle.d.ts +1 -6
- package/dist/types/properties/markStyle/markStyle.d.ts +2 -2
- package/dist/types/properties/markStyle/pointStyle.d.ts +0 -6
- package/dist/types/vseed.d.ts +6 -66
- package/dist/umd/index.js +336 -81
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { SpecPipe } from '../../../../../types';
|
2
|
-
export declare const
|
2
|
+
export declare const datasetXY: SpecPipe;
|
@@ -2734,7 +2734,7 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
2734
2734
|
}>>;
|
2735
2735
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
2736
2736
|
}, z.core.$strip>]>>]>>;
|
2737
|
-
lineSmooth: z.ZodOptional<z.
|
2737
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
2738
2738
|
lineColor: z.ZodOptional<z.ZodString>;
|
2739
2739
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
2740
2740
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -2813,7 +2813,7 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
2813
2813
|
}>>;
|
2814
2814
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
2815
2815
|
}, z.core.$strip>]>>]>>;
|
2816
|
-
lineSmooth: z.ZodOptional<z.
|
2816
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
2817
2817
|
lineColor: z.ZodOptional<z.ZodString>;
|
2818
2818
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
2819
2819
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -523,7 +523,7 @@ export declare const zArea: z.ZodObject<{
|
|
523
523
|
}>>;
|
524
524
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
525
525
|
}, z.core.$strip>]>>]>>;
|
526
|
-
lineSmooth: z.ZodOptional<z.
|
526
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
527
527
|
lineColor: z.ZodOptional<z.ZodString>;
|
528
528
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
529
529
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -522,7 +522,7 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
522
522
|
}>>;
|
523
523
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
524
524
|
}, z.core.$strip>]>>]>>;
|
525
|
-
lineSmooth: z.ZodOptional<z.
|
525
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
526
526
|
lineColor: z.ZodOptional<z.ZodString>;
|
527
527
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
528
528
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -435,7 +435,7 @@ export declare const zAreaRange: z.ZodObject<{
|
|
435
435
|
}>>;
|
436
436
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
437
437
|
}, z.core.$strip>]>>]>>;
|
438
|
-
lineSmooth: z.ZodOptional<z.
|
438
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
439
439
|
lineColor: z.ZodOptional<z.ZodString>;
|
440
440
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
441
441
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import type { Locale } from '../../i18n';
|
3
|
-
import type { BackgroundColor,
|
3
|
+
import type { BackgroundColor, ColorLegend, Dataset, Dimensions, Label, LinearColor, MeasureTree, Theme, Tooltip } from '../../properties';
|
4
4
|
/**
|
5
5
|
* 漏斗图
|
6
6
|
* @description 漏斗图,用于展示单一维度数据的占比关系
|
@@ -50,20 +50,17 @@ export interface Funnel {
|
|
50
50
|
*/
|
51
51
|
backgroundColor?: BackgroundColor;
|
52
52
|
/**
|
53
|
-
*
|
54
|
-
* @description 颜色配置, 用于定义图表的颜色方案, 包括颜色列表, 颜色映射, 颜色渐变等.
|
53
|
+
* @description 线性渐变颜色配置, 用于定义图表的颜色方案
|
55
54
|
*/
|
56
|
-
color?:
|
55
|
+
color?: LinearColor;
|
57
56
|
/**
|
58
|
-
* 标签
|
59
57
|
* @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
|
60
58
|
*/
|
61
59
|
label?: Label;
|
62
60
|
/**
|
63
|
-
*
|
64
|
-
* @description 图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
|
61
|
+
* @description 颜色图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
|
65
62
|
*/
|
66
|
-
legend?:
|
63
|
+
legend?: ColorLegend;
|
67
64
|
/**
|
68
65
|
* 提示信息
|
69
66
|
* @description 提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
@@ -135,39 +132,11 @@ export declare const zFunnel: z.ZodObject<{
|
|
135
132
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
136
133
|
color: z.ZodOptional<z.ZodObject<{
|
137
134
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
138
|
-
colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
139
135
|
}, z.core.$strip>>;
|
140
136
|
label: z.ZodOptional<z.ZodObject<{
|
141
137
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
142
138
|
}, z.core.$strip>>;
|
143
139
|
legend: z.ZodOptional<z.ZodObject<{
|
144
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
145
|
-
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
146
|
-
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
147
|
-
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
148
|
-
circle: "circle";
|
149
|
-
cross: "cross";
|
150
|
-
diamond: "diamond";
|
151
|
-
square: "square";
|
152
|
-
arrow: "arrow";
|
153
|
-
arrow2Left: "arrow2Left";
|
154
|
-
arrow2Right: "arrow2Right";
|
155
|
-
wedge: "wedge";
|
156
|
-
thinTriangle: "thinTriangle";
|
157
|
-
triangle: "triangle";
|
158
|
-
triangleUp: "triangleUp";
|
159
|
-
triangleDown: "triangleDown";
|
160
|
-
triangleRight: "triangleRight";
|
161
|
-
triangleLeft: "triangleLeft";
|
162
|
-
stroke: "stroke";
|
163
|
-
star: "star";
|
164
|
-
wye: "wye";
|
165
|
-
rect: "rect";
|
166
|
-
arrowLeft: "arrowLeft";
|
167
|
-
arrowRight: "arrowRight";
|
168
|
-
rectRound: "rectRound";
|
169
|
-
roundLine: "roundLine";
|
170
|
-
}>>>;
|
171
140
|
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
172
141
|
left: "left";
|
173
142
|
leftTop: "leftTop";
|
@@ -190,9 +159,7 @@ export declare const zFunnel: z.ZodObject<{
|
|
190
159
|
bl: "bl";
|
191
160
|
br: "br";
|
192
161
|
}>>>;
|
193
|
-
|
194
|
-
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
195
|
-
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
162
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
196
163
|
}, z.core.$strip>>;
|
197
164
|
tooltip: z.ZodOptional<z.ZodObject<{
|
198
165
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import type { MeasureTree } from '../../properties';
|
4
|
-
import { type BackgroundColor, type
|
3
|
+
import type { ColorLegend, LinearColor, MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Dataset, type Dimensions, type Label, type Theme, type Tooltip } from '../../properties';
|
5
5
|
/**
|
6
6
|
* 热力图类型定义
|
7
7
|
* @description 热力图,通过二维矩阵的颜色深浅展示数据的分布和强弱关系
|
@@ -55,17 +55,16 @@ export interface Heatmap {
|
|
55
55
|
* 颜色
|
56
56
|
* @description 颜色配置, 用于定义图表的颜色方案, 包括颜色列表, 颜色映射, 颜色渐变等.
|
57
57
|
*/
|
58
|
-
color?:
|
58
|
+
color?: LinearColor;
|
59
59
|
/**
|
60
|
-
*
|
61
|
-
* @description 标签配置, 用于定义图表的数据标签, 包括数据标签的位置, 格式, 样式等.
|
60
|
+
* @description 热力图标签配置, 用于定义图表的数据标签, 自动开启标签反色, 确保标签可读性.
|
62
61
|
*/
|
63
62
|
label?: Label;
|
64
63
|
/**
|
65
64
|
* 图例
|
66
65
|
* @description 热力图的颜色图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
|
67
66
|
*/
|
68
|
-
legend?:
|
67
|
+
legend?: ColorLegend;
|
69
68
|
/**
|
70
69
|
* 提示信息
|
71
70
|
* @description 热力图的提示信息配置, 用于定义图表的提示信息, 包括提示信息的位置, 格式, 样式等.
|
@@ -137,39 +136,11 @@ export declare const zHeatmap: z.ZodObject<{
|
|
137
136
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
138
137
|
color: z.ZodOptional<z.ZodObject<{
|
139
138
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
140
|
-
colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
141
139
|
}, z.core.$strip>>;
|
142
140
|
label: z.ZodOptional<z.ZodObject<{
|
143
141
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
144
142
|
}, z.core.$strip>>;
|
145
143
|
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
144
|
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
174
145
|
left: "left";
|
175
146
|
leftTop: "leftTop";
|
@@ -192,9 +163,7 @@ export declare const zHeatmap: z.ZodObject<{
|
|
192
163
|
bl: "bl";
|
193
164
|
br: "br";
|
194
165
|
}>>>;
|
195
|
-
|
196
|
-
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
197
|
-
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
166
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
198
167
|
}, z.core.$strip>>;
|
199
168
|
tooltip: z.ZodOptional<z.ZodObject<{
|
200
169
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -529,7 +529,7 @@ export declare const zLine: z.ZodObject<{
|
|
529
529
|
}>>;
|
530
530
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
531
531
|
}, z.core.$strip>]>>]>>;
|
532
|
-
lineSmooth: z.ZodOptional<z.
|
532
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
533
533
|
lineColor: z.ZodOptional<z.ZodString>;
|
534
534
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
535
535
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -3,6 +3,9 @@ export declare const zColor: z.ZodObject<{
|
|
3
3
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
4
4
|
colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
5
5
|
}, z.core.$strip>;
|
6
|
+
export declare const zLinearColor: z.ZodObject<{
|
7
|
+
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
8
|
+
}, z.core.$strip>;
|
6
9
|
export type Color = {
|
7
10
|
/**
|
8
11
|
* 颜色配色方案
|
@@ -21,3 +24,11 @@ export type Color = {
|
|
21
24
|
*/
|
22
25
|
colorMapping?: Record<string, string>;
|
23
26
|
};
|
27
|
+
export type LinearColor = {
|
28
|
+
/**
|
29
|
+
* 线性渐变颜色配色方案
|
30
|
+
* @description 线性渐变颜色配色方案用于定义图表中不同元素的颜色
|
31
|
+
* @example ['#FFCDD2,#F8BBD0,#E1BEE7,#D1C4E9,#C5CAE9,#BBDEFB,#B3E5FC,#B2EBF2,#B2DFDB,#C8E6C9,#DCEDC8,#F0F4C3,#FFF9C4,#FFECB3,#FFE0B2']
|
32
|
+
*/
|
33
|
+
colorScheme?: string[];
|
34
|
+
};
|
@@ -106,3 +106,29 @@ export declare const zLegend: z.ZodObject<{
|
|
106
106
|
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
107
107
|
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
108
108
|
}, z.core.$strip>;
|
109
|
+
export type ColorLegend = Pick<Legend, 'position' | 'enable'>;
|
110
|
+
export declare const zColorLegend: z.ZodObject<{
|
111
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
112
|
+
left: "left";
|
113
|
+
leftTop: "leftTop";
|
114
|
+
leftBottom: "leftBottom";
|
115
|
+
lt: "lt";
|
116
|
+
lb: "lb";
|
117
|
+
top: "top";
|
118
|
+
topLeft: "topLeft";
|
119
|
+
topRight: "topRight";
|
120
|
+
tl: "tl";
|
121
|
+
tr: "tr";
|
122
|
+
right: "right";
|
123
|
+
rightTop: "rightTop";
|
124
|
+
rightBottom: "rightBottom";
|
125
|
+
rt: "rt";
|
126
|
+
rb: "rb";
|
127
|
+
bottom: "bottom";
|
128
|
+
bottomLeft: "bottomLeft";
|
129
|
+
bottomRight: "bottomRight";
|
130
|
+
bl: "bl";
|
131
|
+
br: "br";
|
132
|
+
}>>>;
|
133
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
134
|
+
}, z.core.$strip>;
|
@@ -43,14 +43,12 @@ export type AreaStyle = {
|
|
43
43
|
* 面积图元的颜色
|
44
44
|
* @description 面积图元的颜色
|
45
45
|
* @type {string}
|
46
|
-
* @default {undefined} follow series color
|
47
46
|
*/
|
48
47
|
areaColor?: string;
|
49
48
|
/**
|
50
49
|
* 面积图元的颜色透明度
|
51
50
|
* @description 面积图元的颜色透明度
|
52
51
|
* @type {number}
|
53
|
-
* @default 1
|
54
52
|
*/
|
55
53
|
areaColorOpacity?: number;
|
56
54
|
};
|
@@ -43,35 +43,30 @@ export type BarStyle = {
|
|
43
43
|
* 柱状图颜色
|
44
44
|
* @description 柱状图颜色
|
45
45
|
* @type {string}
|
46
|
-
* @default #000000
|
47
46
|
*/
|
48
47
|
barColor?: string;
|
49
48
|
/**
|
50
49
|
* 柱状图颜色透明度
|
51
50
|
* @description 柱状图颜色透明度
|
52
51
|
* @type {number}
|
53
|
-
* @default 1
|
54
52
|
*/
|
55
53
|
barColorOpacity?: number;
|
56
54
|
/**
|
57
55
|
* 柱状图边框颜色
|
58
56
|
* @description 柱状图边框颜色
|
59
57
|
* @type {string}
|
60
|
-
* @default #000000
|
61
58
|
*/
|
62
59
|
barBorderColor?: string;
|
63
60
|
/**
|
64
61
|
* 柱状图边框宽度
|
65
62
|
* @description 柱状图边框宽度
|
66
63
|
* @type {number}
|
67
|
-
* @default 0
|
68
64
|
*/
|
69
65
|
barBorderWidth?: number;
|
70
66
|
/**
|
71
67
|
* 柱状图边框样式
|
72
68
|
* @description 柱状图边框样式
|
73
69
|
* @type {number}
|
74
|
-
* @default solid
|
75
70
|
* @example solid
|
76
71
|
* @example dashed
|
77
72
|
* @example dotted
|
@@ -81,7 +76,6 @@ export type BarStyle = {
|
|
81
76
|
* 柱状图圆角
|
82
77
|
* @description 柱状图圆角
|
83
78
|
* @type {number | number[]}
|
84
|
-
* @default 0
|
85
79
|
* @example 4
|
86
80
|
* @example [0, 0, 10, 10]
|
87
81
|
*/
|
@@ -43,35 +43,30 @@ export type LineStyle = {
|
|
43
43
|
* 折线图是否平滑
|
44
44
|
* @description 折线图是否平滑
|
45
45
|
* @type {boolean}
|
46
|
-
* @default true
|
47
46
|
*/
|
48
47
|
lineSmooth?: boolean;
|
49
48
|
/**
|
50
49
|
* 柱状图颜色
|
51
50
|
* @description 柱状图颜色
|
52
51
|
* @type {string}
|
53
|
-
* @default {undefined} follow series color
|
54
52
|
*/
|
55
53
|
lineColor?: string;
|
56
54
|
/**
|
57
55
|
* 柱状图颜色透明度
|
58
56
|
* @description 柱状图颜色透明度
|
59
57
|
* @type {number}
|
60
|
-
* @default 1
|
61
58
|
*/
|
62
59
|
lineColorOpacity?: number;
|
63
60
|
/**
|
64
61
|
* 柱状图边框宽度
|
65
62
|
* @description 柱状图边框宽度
|
66
63
|
* @type {number}
|
67
|
-
* @default 1
|
68
64
|
*/
|
69
65
|
lineWidth?: number;
|
70
66
|
/**
|
71
67
|
* 柱状图边框样式
|
72
68
|
* @description 柱状图边框样式
|
73
69
|
* @type {number}
|
74
|
-
* @default solid
|
75
70
|
* @example solid
|
76
71
|
* @example dashed
|
77
72
|
* @example dotted
|
@@ -148,7 +143,7 @@ export declare const zLineStyle: z.ZodObject<{
|
|
148
143
|
}>>;
|
149
144
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
150
145
|
}, z.core.$strip>]>>]>>;
|
151
|
-
lineSmooth: z.ZodOptional<z.
|
146
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
152
147
|
lineColor: z.ZodOptional<z.ZodString>;
|
153
148
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
154
149
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -384,7 +384,7 @@ export declare const zMarkStyle: z.ZodObject<{
|
|
384
384
|
}>>;
|
385
385
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
386
386
|
}, z.core.$strip>]>>]>>;
|
387
|
-
lineSmooth: z.ZodOptional<z.
|
387
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
388
388
|
lineColor: z.ZodOptional<z.ZodString>;
|
389
389
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
390
390
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -463,7 +463,7 @@ export declare const zMarkStyle: z.ZodObject<{
|
|
463
463
|
}>>;
|
464
464
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
465
465
|
}, z.core.$strip>]>>]>>;
|
466
|
-
lineSmooth: z.ZodOptional<z.
|
466
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
467
467
|
lineColor: z.ZodOptional<z.ZodString>;
|
468
468
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
469
469
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -43,42 +43,36 @@ export type PointStyle = {
|
|
43
43
|
* 点大小
|
44
44
|
* @description 点大小
|
45
45
|
* @type {number}
|
46
|
-
* @default 10
|
47
46
|
*/
|
48
47
|
pointSize?: number;
|
49
48
|
/**
|
50
49
|
* 柱状图颜色
|
51
50
|
* @description 柱状图颜色
|
52
51
|
* @type {string}
|
53
|
-
* @default #000000
|
54
52
|
*/
|
55
53
|
pointColor?: string;
|
56
54
|
/**
|
57
55
|
* 柱状图颜色透明度
|
58
56
|
* @description 柱状图颜色透明度
|
59
57
|
* @type {number}
|
60
|
-
* @default 1
|
61
58
|
*/
|
62
59
|
pointColorOpacity?: number;
|
63
60
|
/**
|
64
61
|
* 柱状图边框颜色
|
65
62
|
* @description 柱状图边框颜色
|
66
63
|
* @type {string}
|
67
|
-
* @default #000000
|
68
64
|
*/
|
69
65
|
pointBorderColor?: string;
|
70
66
|
/**
|
71
67
|
* 柱状图边框宽度
|
72
68
|
* @description 柱状图边框宽度
|
73
69
|
* @type {number}
|
74
|
-
* @default 0
|
75
70
|
*/
|
76
71
|
pointBorderWidth?: number;
|
77
72
|
/**
|
78
73
|
* 柱状图边框样式
|
79
74
|
* @description 柱状图边框样式
|
80
75
|
* @type {number}
|
81
|
-
* @default solid
|
82
76
|
* @example solid
|
83
77
|
* @example dashed
|
84
78
|
* @example dotted
|
package/dist/types/vseed.d.ts
CHANGED
@@ -489,7 +489,7 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
489
489
|
}>>;
|
490
490
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
491
491
|
}, z.core.$strip>]>>]>>;
|
492
|
-
lineSmooth: z.ZodOptional<z.
|
492
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
493
493
|
lineColor: z.ZodOptional<z.ZodString>;
|
494
494
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
495
495
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -8223,7 +8223,7 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8223
8223
|
}>>;
|
8224
8224
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
8225
8225
|
}, z.core.$strip>]>>]>>;
|
8226
|
-
lineSmooth: z.ZodOptional<z.
|
8226
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
8227
8227
|
lineColor: z.ZodOptional<z.ZodString>;
|
8228
8228
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
8229
8229
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -9472,7 +9472,7 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9472
9472
|
}>>;
|
9473
9473
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
9474
9474
|
}, z.core.$strip>]>>]>>;
|
9475
|
-
lineSmooth: z.ZodOptional<z.
|
9475
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
9476
9476
|
lineColor: z.ZodOptional<z.ZodString>;
|
9477
9477
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
9478
9478
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -10660,7 +10660,7 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10660
10660
|
}>>;
|
10661
10661
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
10662
10662
|
}, z.core.$strip>]>>]>>;
|
10663
|
-
lineSmooth: z.ZodOptional<z.
|
10663
|
+
lineSmooth: z.ZodOptional<z.ZodBoolean>;
|
10664
10664
|
lineColor: z.ZodOptional<z.ZodString>;
|
10665
10665
|
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
10666
10666
|
lineWidth: z.ZodOptional<z.ZodNumber>;
|
@@ -13291,39 +13291,11 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13291
13291
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
13292
13292
|
color: z.ZodOptional<z.ZodObject<{
|
13293
13293
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
13294
|
-
colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
13295
13294
|
}, z.core.$strip>>;
|
13296
13295
|
label: z.ZodOptional<z.ZodObject<{
|
13297
13296
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
13298
13297
|
}, z.core.$strip>>;
|
13299
13298
|
legend: z.ZodOptional<z.ZodObject<{
|
13300
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
13301
|
-
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
13302
|
-
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
13303
|
-
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
13304
|
-
circle: "circle";
|
13305
|
-
cross: "cross";
|
13306
|
-
diamond: "diamond";
|
13307
|
-
square: "square";
|
13308
|
-
arrow: "arrow";
|
13309
|
-
arrow2Left: "arrow2Left";
|
13310
|
-
arrow2Right: "arrow2Right";
|
13311
|
-
wedge: "wedge";
|
13312
|
-
thinTriangle: "thinTriangle";
|
13313
|
-
triangle: "triangle";
|
13314
|
-
triangleUp: "triangleUp";
|
13315
|
-
triangleDown: "triangleDown";
|
13316
|
-
triangleRight: "triangleRight";
|
13317
|
-
triangleLeft: "triangleLeft";
|
13318
|
-
stroke: "stroke";
|
13319
|
-
star: "star";
|
13320
|
-
wye: "wye";
|
13321
|
-
rect: "rect";
|
13322
|
-
arrowLeft: "arrowLeft";
|
13323
|
-
arrowRight: "arrowRight";
|
13324
|
-
rectRound: "rectRound";
|
13325
|
-
roundLine: "roundLine";
|
13326
|
-
}>>>;
|
13327
13299
|
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
13328
13300
|
left: "left";
|
13329
13301
|
leftTop: "leftTop";
|
@@ -13346,9 +13318,7 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13346
13318
|
bl: "bl";
|
13347
13319
|
br: "br";
|
13348
13320
|
}>>>;
|
13349
|
-
|
13350
|
-
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
13351
|
-
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
13321
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
13352
13322
|
}, z.core.$strip>>;
|
13353
13323
|
tooltip: z.ZodOptional<z.ZodObject<{
|
13354
13324
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -13408,39 +13378,11 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13408
13378
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
13409
13379
|
color: z.ZodOptional<z.ZodObject<{
|
13410
13380
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
13411
|
-
colorMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
13412
13381
|
}, z.core.$strip>>;
|
13413
13382
|
label: z.ZodOptional<z.ZodObject<{
|
13414
13383
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
13415
13384
|
}, z.core.$strip>>;
|
13416
13385
|
legend: z.ZodOptional<z.ZodObject<{
|
13417
|
-
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
13418
|
-
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
13419
|
-
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
13420
|
-
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
13421
|
-
circle: "circle";
|
13422
|
-
cross: "cross";
|
13423
|
-
diamond: "diamond";
|
13424
|
-
square: "square";
|
13425
|
-
arrow: "arrow";
|
13426
|
-
arrow2Left: "arrow2Left";
|
13427
|
-
arrow2Right: "arrow2Right";
|
13428
|
-
wedge: "wedge";
|
13429
|
-
thinTriangle: "thinTriangle";
|
13430
|
-
triangle: "triangle";
|
13431
|
-
triangleUp: "triangleUp";
|
13432
|
-
triangleDown: "triangleDown";
|
13433
|
-
triangleRight: "triangleRight";
|
13434
|
-
triangleLeft: "triangleLeft";
|
13435
|
-
stroke: "stroke";
|
13436
|
-
star: "star";
|
13437
|
-
wye: "wye";
|
13438
|
-
rect: "rect";
|
13439
|
-
arrowLeft: "arrowLeft";
|
13440
|
-
arrowRight: "arrowRight";
|
13441
|
-
rectRound: "rectRound";
|
13442
|
-
roundLine: "roundLine";
|
13443
|
-
}>>>;
|
13444
13386
|
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
13445
13387
|
left: "left";
|
13446
13388
|
leftTop: "leftTop";
|
@@ -13463,9 +13405,7 @@ export declare const zVSeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13463
13405
|
bl: "bl";
|
13464
13406
|
br: "br";
|
13465
13407
|
}>>>;
|
13466
|
-
|
13467
|
-
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
13468
|
-
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
13408
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
13469
13409
|
}, z.core.$strip>>;
|
13470
13410
|
tooltip: z.ZodOptional<z.ZodObject<{
|
13471
13411
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|