@visactor/vseed 0.0.11 → 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 +4336 -477
- package/dist/builder/register/theme.d.ts +4 -1
- package/dist/dataSelector/selector.d.ts +1 -1
- package/dist/index.cjs +907 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +877 -174
- 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/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 +2441 -320
- package/dist/types/chartType/area/area.d.ts +33 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +36 -4
- package/dist/types/chartType/bar/bar.d.ts +13 -2
- package/dist/types/chartType/barParallel/barParallel.d.ts +13 -2
- package/dist/types/chartType/barPercent/barPercent.d.ts +13 -2
- package/dist/types/chartType/column/column.d.ts +13 -2
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +13 -2
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +13 -2
- package/dist/types/chartType/line/line.d.ts +27 -4
- 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/index.d.ts +3 -0
- package/dist/types/properties/markStyle/lineStyle.d.ts +160 -0
- package/dist/types/properties/markStyle/markStyle.d.ts +543 -2
- 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,168 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { type Selector, type Selectors } from '../../dataSelector';
|
3
|
+
export type PointStyle = {
|
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 {number}
|
46
|
+
* @default 10
|
47
|
+
*/
|
48
|
+
pointSize?: number;
|
49
|
+
/**
|
50
|
+
* 柱状图颜色
|
51
|
+
* @description 柱状图颜色
|
52
|
+
* @type {string}
|
53
|
+
* @default #000000
|
54
|
+
*/
|
55
|
+
pointColor?: string;
|
56
|
+
/**
|
57
|
+
* 柱状图颜色透明度
|
58
|
+
* @description 柱状图颜色透明度
|
59
|
+
* @type {number}
|
60
|
+
* @default 1
|
61
|
+
*/
|
62
|
+
pointColorOpacity?: number;
|
63
|
+
/**
|
64
|
+
* 柱状图边框颜色
|
65
|
+
* @description 柱状图边框颜色
|
66
|
+
* @type {string}
|
67
|
+
* @default #000000
|
68
|
+
*/
|
69
|
+
pointBorderColor?: string;
|
70
|
+
/**
|
71
|
+
* 柱状图边框宽度
|
72
|
+
* @description 柱状图边框宽度
|
73
|
+
* @type {number}
|
74
|
+
* @default 0
|
75
|
+
*/
|
76
|
+
pointBorderWidth?: number;
|
77
|
+
/**
|
78
|
+
* 柱状图边框样式
|
79
|
+
* @description 柱状图边框样式
|
80
|
+
* @type {number}
|
81
|
+
* @default solid
|
82
|
+
* @example solid
|
83
|
+
* @example dashed
|
84
|
+
* @example dotted
|
85
|
+
*/
|
86
|
+
pointBorderStyle?: 'solid' | 'dashed' | 'dotted';
|
87
|
+
};
|
88
|
+
export declare const zPointStyle: z.ZodObject<{
|
89
|
+
selector: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
90
|
+
field: z.ZodString;
|
91
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
92
|
+
"=": "=";
|
93
|
+
"==": "==";
|
94
|
+
"!=": "!=";
|
95
|
+
">": ">";
|
96
|
+
"<": "<";
|
97
|
+
">=": ">=";
|
98
|
+
"<=": "<=";
|
99
|
+
between: "between";
|
100
|
+
}>>;
|
101
|
+
op: z.ZodOptional<z.ZodEnum<{
|
102
|
+
"=": "=";
|
103
|
+
"==": "==";
|
104
|
+
"!=": "!=";
|
105
|
+
">": ">";
|
106
|
+
"<": "<";
|
107
|
+
">=": ">=";
|
108
|
+
"<=": "<=";
|
109
|
+
between: "between";
|
110
|
+
}>>;
|
111
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
113
|
+
field: z.ZodString;
|
114
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
115
|
+
in: "in";
|
116
|
+
"not in": "not in";
|
117
|
+
}>>;
|
118
|
+
op: z.ZodOptional<z.ZodEnum<{
|
119
|
+
in: "in";
|
120
|
+
"not in": "not in";
|
121
|
+
}>>;
|
122
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
123
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
124
|
+
field: z.ZodString;
|
125
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
126
|
+
"=": "=";
|
127
|
+
"==": "==";
|
128
|
+
"!=": "!=";
|
129
|
+
">": ">";
|
130
|
+
"<": "<";
|
131
|
+
">=": ">=";
|
132
|
+
"<=": "<=";
|
133
|
+
between: "between";
|
134
|
+
}>>;
|
135
|
+
op: z.ZodOptional<z.ZodEnum<{
|
136
|
+
"=": "=";
|
137
|
+
"==": "==";
|
138
|
+
"!=": "!=";
|
139
|
+
">": ">";
|
140
|
+
"<": "<";
|
141
|
+
">=": ">=";
|
142
|
+
"<=": "<=";
|
143
|
+
between: "between";
|
144
|
+
}>>;
|
145
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
147
|
+
field: z.ZodString;
|
148
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
149
|
+
in: "in";
|
150
|
+
"not in": "not in";
|
151
|
+
}>>;
|
152
|
+
op: z.ZodOptional<z.ZodEnum<{
|
153
|
+
in: "in";
|
154
|
+
"not in": "not in";
|
155
|
+
}>>;
|
156
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
157
|
+
}, z.core.$strip>]>>]>>;
|
158
|
+
pointSize: z.ZodOptional<z.ZodNumber>;
|
159
|
+
pointColor: z.ZodOptional<z.ZodString>;
|
160
|
+
pointColorOpacity: z.ZodOptional<z.ZodNumber>;
|
161
|
+
pointBorderColor: z.ZodOptional<z.ZodString>;
|
162
|
+
pointBorderWidth: z.ZodOptional<z.ZodNumber>;
|
163
|
+
pointBorderStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
164
|
+
solid: "solid";
|
165
|
+
dashed: "dashed";
|
166
|
+
dotted: "dotted";
|
167
|
+
}>]>>;
|
168
|
+
}, z.core.$strip>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export type Formatter = (value?: number | string) => string;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zNumFormat: z.ZodOptional<z.ZodObject<{
|
3
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
4
|
+
number: "number";
|
5
|
+
percent: "percent";
|
6
|
+
permille: "permille";
|
7
|
+
}>>>;
|
8
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
9
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
10
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
11
|
+
decimalPlaces: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
12
|
+
round: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
13
|
+
round: "round";
|
14
|
+
floor: "floor";
|
15
|
+
ceil: "ceil";
|
16
|
+
}>>>;
|
17
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
18
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
19
|
+
}, z.core.$strip>>;
|
20
|
+
export type NumFormat = z.infer<typeof zNumFormat>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export
|
2
|
-
export
|
1
|
+
export * from './format';
|
2
|
+
export * from './measures';
|
@@ -4,24 +4,24 @@ export declare const zMeasure: z.ZodObject<{
|
|
4
4
|
alias: z.ZodOptional<z.ZodString>;
|
5
5
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
6
6
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
7
|
-
format: z.ZodOptional<z.ZodObject<{
|
8
|
-
type: z.
|
7
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
8
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
9
9
|
number: "number";
|
10
10
|
percent: "percent";
|
11
11
|
permille: "permille";
|
12
12
|
}>>>;
|
13
|
-
ratio: z.
|
14
|
-
symbol: z.
|
15
|
-
thousandSeparator: z.
|
16
|
-
decimalPlaces: z.
|
17
|
-
round: z.
|
13
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
14
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
15
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
16
|
+
decimalPlaces: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
17
|
+
round: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
18
18
|
round: "round";
|
19
19
|
floor: "floor";
|
20
20
|
ceil: "ceil";
|
21
21
|
}>>>;
|
22
|
-
prefix: z.
|
23
|
-
suffix: z.
|
24
|
-
}, z.core.$strip
|
22
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
23
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
24
|
+
}, z.core.$strip>>>;
|
25
25
|
}, z.core.$strip>;
|
26
26
|
export declare const zMeasureGroup: z.ZodObject<{
|
27
27
|
id: z.ZodString;
|
@@ -32,24 +32,24 @@ export declare const zMeasureGroup: z.ZodObject<{
|
|
32
32
|
alias: z.ZodOptional<z.ZodString>;
|
33
33
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
34
34
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
35
|
-
format: z.ZodOptional<z.ZodObject<{
|
36
|
-
type: z.
|
35
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
36
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
37
37
|
number: "number";
|
38
38
|
percent: "percent";
|
39
39
|
permille: "permille";
|
40
40
|
}>>>;
|
41
|
-
ratio: z.
|
42
|
-
symbol: z.
|
43
|
-
thousandSeparator: z.
|
44
|
-
decimalPlaces: z.
|
45
|
-
round: z.
|
41
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
42
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
43
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
44
|
+
decimalPlaces: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
45
|
+
round: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
46
46
|
round: "round";
|
47
47
|
floor: "floor";
|
48
48
|
ceil: "ceil";
|
49
49
|
}>>>;
|
50
|
-
prefix: z.
|
51
|
-
suffix: z.
|
52
|
-
}, z.core.$strip
|
50
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
51
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
52
|
+
}, z.core.$strip>>>;
|
53
53
|
}, z.core.$strip>]>>>;
|
54
54
|
}, z.core.$strip>;
|
55
55
|
export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
@@ -61,48 +61,48 @@ export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject
|
|
61
61
|
alias: z.ZodOptional<z.ZodString>;
|
62
62
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
63
63
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
64
|
-
format: z.ZodOptional<z.ZodObject<{
|
65
|
-
type: z.
|
64
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
65
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
66
66
|
number: "number";
|
67
67
|
percent: "percent";
|
68
68
|
permille: "permille";
|
69
69
|
}>>>;
|
70
|
-
ratio: z.
|
71
|
-
symbol: z.
|
72
|
-
thousandSeparator: z.
|
73
|
-
decimalPlaces: z.
|
74
|
-
round: z.
|
70
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
71
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
72
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
73
|
+
decimalPlaces: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
74
|
+
round: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
75
75
|
round: "round";
|
76
76
|
floor: "floor";
|
77
77
|
ceil: "ceil";
|
78
78
|
}>>>;
|
79
|
-
prefix: z.
|
80
|
-
suffix: z.
|
81
|
-
}, z.core.$strip
|
79
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
80
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
81
|
+
}, z.core.$strip>>>;
|
82
82
|
}, z.core.$strip>]>>>;
|
83
83
|
}, z.core.$strip>, z.ZodObject<{
|
84
84
|
id: z.ZodString;
|
85
85
|
alias: z.ZodOptional<z.ZodString>;
|
86
86
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
87
87
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
88
|
-
format: z.ZodOptional<z.ZodObject<{
|
89
|
-
type: z.
|
88
|
+
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
89
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
90
90
|
number: "number";
|
91
91
|
percent: "percent";
|
92
92
|
permille: "permille";
|
93
93
|
}>>>;
|
94
|
-
ratio: z.
|
95
|
-
symbol: z.
|
96
|
-
thousandSeparator: z.
|
97
|
-
decimalPlaces: z.
|
98
|
-
round: z.
|
94
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
95
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
96
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
97
|
+
decimalPlaces: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
98
|
+
round: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
99
99
|
round: "round";
|
100
100
|
floor: "floor";
|
101
101
|
ceil: "ceil";
|
102
102
|
}>>>;
|
103
|
-
prefix: z.
|
104
|
-
suffix: z.
|
105
|
-
}, z.core.$strip
|
103
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
104
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
105
|
+
}, z.core.$strip>>>;
|
106
106
|
}, z.core.$strip>]>>>;
|
107
107
|
export type Measures = z.infer<typeof zMeasures>;
|
108
108
|
export type Measure = z.infer<typeof zMeasure>;
|