@visactor/vseed 0.0.10 → 0.0.12
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 +5168 -511
- package/dist/builder/register/theme.d.ts +4 -1
- package/dist/dataSelector/selector.d.ts +1 -1
- package/dist/index.cjs +1690 -247
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1658 -254
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/config/config.d.ts +3 -3
- package/dist/pipeline/constant.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationArea.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationAreaBand.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationHorizontalLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationVerticalLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/index.d.ts +4 -0
- package/dist/pipeline/spec/pipes/annotation/utils.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/horizontalCrosshairRect.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/index.d.ts +3 -0
- package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/crosshair/verticalCrosshairRect.d.ts +2 -0
- package/dist/pipeline/spec/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/markStyle/areaStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/markStyle/index.d.ts +3 -0
- package/dist/pipeline/spec/pipes/markStyle/lineStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/markStyle/pointStyle.d.ts +2 -0
- package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/stack/stackCornerRadius.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +16 -16
- package/dist/pipeline/utils/format/createFormatter.d.ts +2 -0
- package/dist/pipeline/utils/format/createNumFormatter.d.ts +2 -0
- package/dist/pipeline/utils/format/index.d.ts +2 -0
- package/dist/pipeline/utils/index.d.ts +4 -2
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +2 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +3018 -106
- package/dist/types/builder/builder.d.ts +3 -0
- package/dist/types/chartType/area/area.d.ts +48 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +48 -1
- package/dist/types/chartType/bar/bar.d.ts +28 -2
- package/dist/types/chartType/barParallel/barParallel.d.ts +28 -2
- package/dist/types/chartType/barPercent/barPercent.d.ts +28 -2
- package/dist/types/chartType/column/column.d.ts +28 -2
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +28 -2
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +28 -2
- package/dist/types/chartType/line/line.d.ts +39 -1
- package/dist/types/dataSelector/selector.d.ts +60 -6
- package/dist/types/properties/annotation/annotation.d.ts +747 -8
- package/dist/types/properties/annotation/annotationArea.d.ts +248 -0
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +253 -0
- package/dist/types/properties/annotation/annotationPoint.d.ts +56 -4
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +253 -0
- package/dist/types/properties/annotation/index.d.ts +3 -0
- package/dist/types/properties/config/config.d.ts +105 -36
- package/dist/types/properties/config/crosshair.d.ts +17 -0
- package/dist/types/properties/config/index.d.ts +2 -0
- package/dist/types/properties/config/stackCornerRadius.d.ts +3 -0
- package/dist/types/properties/markStyle/areaStyle.d.ts +129 -0
- package/dist/types/properties/markStyle/barStyle.d.ts +56 -4
- package/dist/types/properties/markStyle/index.d.ts +3 -0
- package/dist/types/properties/markStyle/lineStyle.d.ts +160 -0
- package/dist/types/properties/markStyle/markStyle.d.ts +599 -6
- package/dist/types/properties/markStyle/pointStyle.d.ts +168 -0
- package/dist/types/properties/measures/format/formatter.d.ts +1 -0
- package/dist/types/properties/measures/format/index.d.ts +2 -0
- package/dist/types/properties/measures/format/numFormat.d.ts +20 -0
- package/dist/types/properties/measures/index.d.ts +2 -2
- package/dist/types/properties/measures/measures.d.ts +40 -40
- package/dist/types/properties/theme/customTheme.d.ts +3094 -72
- package/dist/types/vseed.d.ts +20 -20
- package/package.json +1 -1
@@ -0,0 +1,129 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { type Selector, type Selectors } from '../../dataSelector';
|
3
|
+
export type AreaStyle = {
|
4
|
+
/**
|
5
|
+
* 数据选择器
|
6
|
+
* @description
|
7
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
8
|
+
* 若未配置selector, 则样式全局生效.
|
9
|
+
* @type {Selector | Selectors}
|
10
|
+
* @example 数值选择器
|
11
|
+
* selector = "tool"
|
12
|
+
* selector = ["tool", "book"]
|
13
|
+
* selector = 100
|
14
|
+
* selector = [100, 200]
|
15
|
+
* @example 局部数据选择器
|
16
|
+
* selector = { profit: 100 }
|
17
|
+
* selector = [{ profit: 100 }, { profit: 200 }]
|
18
|
+
* @example 条件维度选择器
|
19
|
+
* selector = {
|
20
|
+
* field: 'category',
|
21
|
+
* operator: 'in',
|
22
|
+
* value: 'tool'
|
23
|
+
* }
|
24
|
+
* selector = {
|
25
|
+
* field: 'category',
|
26
|
+
* operator: 'not in',
|
27
|
+
* value: 'book'
|
28
|
+
* }
|
29
|
+
* @example 条件指标选择器
|
30
|
+
* selector = {
|
31
|
+
* field: 'profit',
|
32
|
+
* operator: '>=',
|
33
|
+
* value: 100
|
34
|
+
* }
|
35
|
+
* selector = {
|
36
|
+
* field: 'profit',
|
37
|
+
* operator: 'between'
|
38
|
+
* value: [100, 300]
|
39
|
+
* }
|
40
|
+
*/
|
41
|
+
selector?: Selector | Selectors;
|
42
|
+
/**
|
43
|
+
* 面积图元的颜色
|
44
|
+
* @description 面积图元的颜色
|
45
|
+
* @type {string}
|
46
|
+
* @default {undefined} follow series color
|
47
|
+
*/
|
48
|
+
areaColor?: string;
|
49
|
+
/**
|
50
|
+
* 面积图元的颜色透明度
|
51
|
+
* @description 面积图元的颜色透明度
|
52
|
+
* @type {number}
|
53
|
+
* @default 1
|
54
|
+
*/
|
55
|
+
areaColorOpacity?: number;
|
56
|
+
};
|
57
|
+
export declare const zAreaStyle: z.ZodObject<{
|
58
|
+
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
59
|
+
field: z.ZodString;
|
60
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
61
|
+
"=": "=";
|
62
|
+
"==": "==";
|
63
|
+
"!=": "!=";
|
64
|
+
">": ">";
|
65
|
+
"<": "<";
|
66
|
+
">=": ">=";
|
67
|
+
"<=": "<=";
|
68
|
+
between: "between";
|
69
|
+
}>>;
|
70
|
+
op: z.ZodOptional<z.ZodEnum<{
|
71
|
+
"=": "=";
|
72
|
+
"==": "==";
|
73
|
+
"!=": "!=";
|
74
|
+
">": ">";
|
75
|
+
"<": "<";
|
76
|
+
">=": ">=";
|
77
|
+
"<=": "<=";
|
78
|
+
between: "between";
|
79
|
+
}>>;
|
80
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
82
|
+
field: z.ZodString;
|
83
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
84
|
+
in: "in";
|
85
|
+
"not in": "not in";
|
86
|
+
}>>;
|
87
|
+
op: z.ZodOptional<z.ZodEnum<{
|
88
|
+
in: "in";
|
89
|
+
"not in": "not in";
|
90
|
+
}>>;
|
91
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
92
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
93
|
+
field: z.ZodString;
|
94
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
95
|
+
"=": "=";
|
96
|
+
"==": "==";
|
97
|
+
"!=": "!=";
|
98
|
+
">": ">";
|
99
|
+
"<": "<";
|
100
|
+
">=": ">=";
|
101
|
+
"<=": "<=";
|
102
|
+
between: "between";
|
103
|
+
}>>;
|
104
|
+
op: z.ZodOptional<z.ZodEnum<{
|
105
|
+
"=": "=";
|
106
|
+
"==": "==";
|
107
|
+
"!=": "!=";
|
108
|
+
">": ">";
|
109
|
+
"<": "<";
|
110
|
+
">=": ">=";
|
111
|
+
"<=": "<=";
|
112
|
+
between: "between";
|
113
|
+
}>>;
|
114
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
115
|
+
}, z.core.$strip>, z.ZodObject<{
|
116
|
+
field: z.ZodString;
|
117
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
118
|
+
in: "in";
|
119
|
+
"not in": "not in";
|
120
|
+
}>>;
|
121
|
+
op: z.ZodOptional<z.ZodEnum<{
|
122
|
+
in: "in";
|
123
|
+
"not in": "not in";
|
124
|
+
}>>;
|
125
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
126
|
+
}, z.core.$strip>]>>]>>;
|
127
|
+
areaColor: z.ZodOptional<z.ZodString>;
|
128
|
+
areaColorOpacity: z.ZodOptional<z.ZodNumber>;
|
129
|
+
}, z.core.$strip>;
|
@@ -90,19 +90,71 @@ export type BarStyle = {
|
|
90
90
|
export declare const zBarStyle: z.ZodObject<{
|
91
91
|
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
92
92
|
field: z.ZodString;
|
93
|
-
operator: z.
|
93
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
94
|
+
"=": "=";
|
95
|
+
"==": "==";
|
96
|
+
"!=": "!=";
|
97
|
+
">": ">";
|
98
|
+
"<": "<";
|
99
|
+
">=": ">=";
|
100
|
+
"<=": "<=";
|
101
|
+
between: "between";
|
102
|
+
}>>;
|
103
|
+
op: z.ZodOptional<z.ZodEnum<{
|
104
|
+
"=": "=";
|
105
|
+
"==": "==";
|
106
|
+
"!=": "!=";
|
107
|
+
">": ">";
|
108
|
+
"<": "<";
|
109
|
+
">=": ">=";
|
110
|
+
"<=": "<=";
|
111
|
+
between: "between";
|
112
|
+
}>>;
|
94
113
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
95
114
|
}, z.core.$strip>, z.ZodObject<{
|
96
115
|
field: z.ZodString;
|
97
|
-
operator: z.
|
116
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
117
|
+
in: "in";
|
118
|
+
"not in": "not in";
|
119
|
+
}>>;
|
120
|
+
op: z.ZodOptional<z.ZodEnum<{
|
121
|
+
in: "in";
|
122
|
+
"not in": "not in";
|
123
|
+
}>>;
|
98
124
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
99
125
|
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
100
126
|
field: z.ZodString;
|
101
|
-
operator: z.
|
127
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
128
|
+
"=": "=";
|
129
|
+
"==": "==";
|
130
|
+
"!=": "!=";
|
131
|
+
">": ">";
|
132
|
+
"<": "<";
|
133
|
+
">=": ">=";
|
134
|
+
"<=": "<=";
|
135
|
+
between: "between";
|
136
|
+
}>>;
|
137
|
+
op: z.ZodOptional<z.ZodEnum<{
|
138
|
+
"=": "=";
|
139
|
+
"==": "==";
|
140
|
+
"!=": "!=";
|
141
|
+
">": ">";
|
142
|
+
"<": "<";
|
143
|
+
">=": ">=";
|
144
|
+
"<=": "<=";
|
145
|
+
between: "between";
|
146
|
+
}>>;
|
102
147
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
103
148
|
}, z.core.$strip>, z.ZodObject<{
|
104
149
|
field: z.ZodString;
|
105
|
-
operator: z.
|
150
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
151
|
+
in: "in";
|
152
|
+
"not in": "not in";
|
153
|
+
}>>;
|
154
|
+
op: z.ZodOptional<z.ZodEnum<{
|
155
|
+
in: "in";
|
156
|
+
"not in": "not in";
|
157
|
+
}>>;
|
106
158
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
107
159
|
}, z.core.$strip>]>>]>>;
|
108
160
|
barColor: z.ZodOptional<z.ZodString>;
|
@@ -0,0 +1,160 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { type Selector, type Selectors } from '../../dataSelector';
|
3
|
+
export type LineStyle = {
|
4
|
+
/**
|
5
|
+
* 数据选择器
|
6
|
+
* @description
|
7
|
+
* 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
|
8
|
+
* 若未配置selector, 则样式全局生效.
|
9
|
+
* @type {Selector | Selectors}
|
10
|
+
* @example 数值选择器
|
11
|
+
* selector = "tool"
|
12
|
+
* selector = ["tool", "book"]
|
13
|
+
* selector = 100
|
14
|
+
* selector = [100, 200]
|
15
|
+
* @example 局部数据选择器
|
16
|
+
* selector = { profit: 100 }
|
17
|
+
* selector = [{ profit: 100 }, { profit: 200 }]
|
18
|
+
* @example 条件维度选择器
|
19
|
+
* selector = {
|
20
|
+
* field: 'category',
|
21
|
+
* operator: 'in',
|
22
|
+
* value: 'tool'
|
23
|
+
* }
|
24
|
+
* selector = {
|
25
|
+
* field: 'category',
|
26
|
+
* operator: 'not in',
|
27
|
+
* value: 'book'
|
28
|
+
* }
|
29
|
+
* @example 条件指标选择器
|
30
|
+
* selector = {
|
31
|
+
* field: 'profit',
|
32
|
+
* operator: '>=',
|
33
|
+
* value: 100
|
34
|
+
* }
|
35
|
+
* selector = {
|
36
|
+
* field: 'profit',
|
37
|
+
* operator: 'between'
|
38
|
+
* value: [100, 300]
|
39
|
+
* }
|
40
|
+
*/
|
41
|
+
selector?: Selector | Selectors;
|
42
|
+
/**
|
43
|
+
* 折线图是否平滑
|
44
|
+
* @description 折线图是否平滑
|
45
|
+
* @type {boolean}
|
46
|
+
* @default true
|
47
|
+
*/
|
48
|
+
lineSmooth?: boolean;
|
49
|
+
/**
|
50
|
+
* 柱状图颜色
|
51
|
+
* @description 柱状图颜色
|
52
|
+
* @type {string}
|
53
|
+
* @default {undefined} follow series color
|
54
|
+
*/
|
55
|
+
lineColor?: string;
|
56
|
+
/**
|
57
|
+
* 柱状图颜色透明度
|
58
|
+
* @description 柱状图颜色透明度
|
59
|
+
* @type {number}
|
60
|
+
* @default 1
|
61
|
+
*/
|
62
|
+
lineColorOpacity?: number;
|
63
|
+
/**
|
64
|
+
* 柱状图边框宽度
|
65
|
+
* @description 柱状图边框宽度
|
66
|
+
* @type {number}
|
67
|
+
* @default 1
|
68
|
+
*/
|
69
|
+
lineWidth?: number;
|
70
|
+
/**
|
71
|
+
* 柱状图边框样式
|
72
|
+
* @description 柱状图边框样式
|
73
|
+
* @type {number}
|
74
|
+
* @default solid
|
75
|
+
* @example solid
|
76
|
+
* @example dashed
|
77
|
+
* @example dotted
|
78
|
+
*/
|
79
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
80
|
+
};
|
81
|
+
export declare const zLineStyle: z.ZodObject<{
|
82
|
+
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
83
|
+
field: z.ZodString;
|
84
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
85
|
+
"=": "=";
|
86
|
+
"==": "==";
|
87
|
+
"!=": "!=";
|
88
|
+
">": ">";
|
89
|
+
"<": "<";
|
90
|
+
">=": ">=";
|
91
|
+
"<=": "<=";
|
92
|
+
between: "between";
|
93
|
+
}>>;
|
94
|
+
op: z.ZodOptional<z.ZodEnum<{
|
95
|
+
"=": "=";
|
96
|
+
"==": "==";
|
97
|
+
"!=": "!=";
|
98
|
+
">": ">";
|
99
|
+
"<": "<";
|
100
|
+
">=": ">=";
|
101
|
+
"<=": "<=";
|
102
|
+
between: "between";
|
103
|
+
}>>;
|
104
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
106
|
+
field: z.ZodString;
|
107
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
108
|
+
in: "in";
|
109
|
+
"not in": "not in";
|
110
|
+
}>>;
|
111
|
+
op: z.ZodOptional<z.ZodEnum<{
|
112
|
+
in: "in";
|
113
|
+
"not in": "not in";
|
114
|
+
}>>;
|
115
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
116
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
117
|
+
field: z.ZodString;
|
118
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
119
|
+
"=": "=";
|
120
|
+
"==": "==";
|
121
|
+
"!=": "!=";
|
122
|
+
">": ">";
|
123
|
+
"<": "<";
|
124
|
+
">=": ">=";
|
125
|
+
"<=": "<=";
|
126
|
+
between: "between";
|
127
|
+
}>>;
|
128
|
+
op: z.ZodOptional<z.ZodEnum<{
|
129
|
+
"=": "=";
|
130
|
+
"==": "==";
|
131
|
+
"!=": "!=";
|
132
|
+
">": ">";
|
133
|
+
"<": "<";
|
134
|
+
">=": ">=";
|
135
|
+
"<=": "<=";
|
136
|
+
between: "between";
|
137
|
+
}>>;
|
138
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
140
|
+
field: z.ZodString;
|
141
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
142
|
+
in: "in";
|
143
|
+
"not in": "not in";
|
144
|
+
}>>;
|
145
|
+
op: z.ZodOptional<z.ZodEnum<{
|
146
|
+
in: "in";
|
147
|
+
"not in": "not in";
|
148
|
+
}>>;
|
149
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
150
|
+
}, z.core.$strip>]>>]>>;
|
151
|
+
lineSmooth: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
152
|
+
lineColor: z.ZodOptional<z.ZodString>;
|
153
|
+
lineColorOpacity: z.ZodOptional<z.ZodNumber>;
|
154
|
+
lineWidth: z.ZodOptional<z.ZodNumber>;
|
155
|
+
lineStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
156
|
+
solid: "solid";
|
157
|
+
dashed: "dashed";
|
158
|
+
dotted: "dotted";
|
159
|
+
}>]>>;
|
160
|
+
}, z.core.$strip>;
|