@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,114 @@
|
|
1
|
+
import { type Selector, type Selectors } from '../../dataSelector';
|
2
|
+
import { z } from 'zod';
|
3
|
+
export type BarStyle = {
|
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 #000000
|
47
|
+
*/
|
48
|
+
barColor?: string;
|
49
|
+
/**
|
50
|
+
* 柱状图颜色透明度
|
51
|
+
* @description 柱状图颜色透明度
|
52
|
+
* @type {number}
|
53
|
+
* @default 1
|
54
|
+
*/
|
55
|
+
barColorOpacity?: number;
|
56
|
+
/**
|
57
|
+
* 柱状图边框颜色
|
58
|
+
* @description 柱状图边框颜色
|
59
|
+
* @type {string}
|
60
|
+
* @default #000000
|
61
|
+
*/
|
62
|
+
barBorderColor?: string;
|
63
|
+
/**
|
64
|
+
* 柱状图边框宽度
|
65
|
+
* @description 柱状图边框宽度
|
66
|
+
* @type {number}
|
67
|
+
* @default 0
|
68
|
+
*/
|
69
|
+
barBorderWidth?: number;
|
70
|
+
/**
|
71
|
+
* 柱状图边框样式
|
72
|
+
* @description 柱状图边框样式
|
73
|
+
* @type {number}
|
74
|
+
* @default solid
|
75
|
+
* @example solid
|
76
|
+
* @example dashed
|
77
|
+
* @example dotted
|
78
|
+
*/
|
79
|
+
barBorderStyle?: 'solid' | 'dashed' | 'dotted';
|
80
|
+
/**
|
81
|
+
* 柱状图圆角
|
82
|
+
* @description 柱状图圆角
|
83
|
+
* @type {number | number[]}
|
84
|
+
* @default 0
|
85
|
+
* @example 4
|
86
|
+
* @example [0, 0, 10, 10]
|
87
|
+
*/
|
88
|
+
barRadius?: number | number[];
|
89
|
+
};
|
90
|
+
export declare const zBarStyle: z.ZodObject<{
|
91
|
+
selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
92
|
+
field: z.ZodString;
|
93
|
+
operator: z.ZodString;
|
94
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
96
|
+
field: z.ZodString;
|
97
|
+
operator: z.ZodString;
|
98
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
99
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
100
|
+
field: z.ZodString;
|
101
|
+
operator: z.ZodString;
|
102
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
104
|
+
field: z.ZodString;
|
105
|
+
operator: z.ZodString;
|
106
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
107
|
+
}, z.core.$strip>]>>]>;
|
108
|
+
barColor: z.ZodString;
|
109
|
+
barColorOpacity: z.ZodNumber;
|
110
|
+
barBorderColor: z.ZodString;
|
111
|
+
barBorderWidth: z.ZodNumber;
|
112
|
+
barBorderStyle: z.ZodUnion<readonly [z.ZodLiteral<"solid">, z.ZodLiteral<"dashed">, z.ZodLiteral<"dotted">]>;
|
113
|
+
barRadius: z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
|
114
|
+
}, z.core.$strip>;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zMarkStyle: z.ZodObject<{
|
3
|
+
barStyle: z.ZodOptional<z.ZodObject<{
|
4
|
+
selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
5
|
+
field: z.ZodString;
|
6
|
+
operator: z.ZodString;
|
7
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
9
|
+
field: z.ZodString;
|
10
|
+
operator: z.ZodString;
|
11
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
12
|
+
}, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
13
|
+
field: z.ZodString;
|
14
|
+
operator: z.ZodString;
|
15
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
17
|
+
field: z.ZodString;
|
18
|
+
operator: z.ZodString;
|
19
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
20
|
+
}, z.core.$strip>]>>]>;
|
21
|
+
barColor: z.ZodString;
|
22
|
+
barColorOpacity: z.ZodNumber;
|
23
|
+
barBorderColor: z.ZodString;
|
24
|
+
barBorderWidth: z.ZodNumber;
|
25
|
+
barBorderStyle: z.ZodUnion<readonly [z.ZodLiteral<"solid">, z.ZodLiteral<"dashed">, z.ZodLiteral<"dotted">]>;
|
26
|
+
barRadius: z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
|
27
|
+
}, z.core.$strip>>;
|
28
|
+
}, z.core.$strip>;
|
29
|
+
export type MarkStyle = z.infer<typeof zMarkStyle>;
|
@@ -15,6 +15,57 @@ export declare const zCustomThemeConfig: z.ZodObject<{
|
|
15
15
|
}, z.core.$strip>>;
|
16
16
|
legend: z.ZodOptional<z.ZodObject<{
|
17
17
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
18
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
19
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
20
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
21
|
+
circle: "circle";
|
22
|
+
cross: "cross";
|
23
|
+
diamond: "diamond";
|
24
|
+
square: "square";
|
25
|
+
arrow: "arrow";
|
26
|
+
arrow2Left: "arrow2Left";
|
27
|
+
arrow2Right: "arrow2Right";
|
28
|
+
wedge: "wedge";
|
29
|
+
thinTriangle: "thinTriangle";
|
30
|
+
triangle: "triangle";
|
31
|
+
triangleUp: "triangleUp";
|
32
|
+
triangleDown: "triangleDown";
|
33
|
+
triangleRight: "triangleRight";
|
34
|
+
triangleLeft: "triangleLeft";
|
35
|
+
stroke: "stroke";
|
36
|
+
star: "star";
|
37
|
+
wye: "wye";
|
38
|
+
rect: "rect";
|
39
|
+
arrowLeft: "arrowLeft";
|
40
|
+
arrowRight: "arrowRight";
|
41
|
+
rectRound: "rectRound";
|
42
|
+
roundLine: "roundLine";
|
43
|
+
}>>>;
|
44
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
45
|
+
left: "left";
|
46
|
+
leftTop: "leftTop";
|
47
|
+
leftBottom: "leftBottom";
|
48
|
+
lt: "lt";
|
49
|
+
lb: "lb";
|
50
|
+
top: "top";
|
51
|
+
topLeft: "topLeft";
|
52
|
+
topRight: "topRight";
|
53
|
+
tl: "tl";
|
54
|
+
tr: "tr";
|
55
|
+
right: "right";
|
56
|
+
rightTop: "rightTop";
|
57
|
+
rightBottom: "rightBottom";
|
58
|
+
rt: "rt";
|
59
|
+
rb: "rb";
|
60
|
+
bottom: "bottom";
|
61
|
+
bottomLeft: "bottomLeft";
|
62
|
+
bottomRight: "bottomRight";
|
63
|
+
bl: "bl";
|
64
|
+
br: "br";
|
65
|
+
}>>>;
|
66
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
67
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
68
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
18
69
|
}, z.core.$strip>>;
|
19
70
|
}, z.core.$strip>>;
|
20
71
|
vtable: z.ZodOptional<z.ZodObject<{
|
@@ -757,6 +808,57 @@ export declare const zCustomTheme: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodO
|
|
757
808
|
}, z.core.$strip>>;
|
758
809
|
legend: z.ZodOptional<z.ZodObject<{
|
759
810
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
811
|
+
border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
812
|
+
maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
813
|
+
shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
814
|
+
circle: "circle";
|
815
|
+
cross: "cross";
|
816
|
+
diamond: "diamond";
|
817
|
+
square: "square";
|
818
|
+
arrow: "arrow";
|
819
|
+
arrow2Left: "arrow2Left";
|
820
|
+
arrow2Right: "arrow2Right";
|
821
|
+
wedge: "wedge";
|
822
|
+
thinTriangle: "thinTriangle";
|
823
|
+
triangle: "triangle";
|
824
|
+
triangleUp: "triangleUp";
|
825
|
+
triangleDown: "triangleDown";
|
826
|
+
triangleRight: "triangleRight";
|
827
|
+
triangleLeft: "triangleLeft";
|
828
|
+
stroke: "stroke";
|
829
|
+
star: "star";
|
830
|
+
wye: "wye";
|
831
|
+
rect: "rect";
|
832
|
+
arrowLeft: "arrowLeft";
|
833
|
+
arrowRight: "arrowRight";
|
834
|
+
rectRound: "rectRound";
|
835
|
+
roundLine: "roundLine";
|
836
|
+
}>>>;
|
837
|
+
position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
838
|
+
left: "left";
|
839
|
+
leftTop: "leftTop";
|
840
|
+
leftBottom: "leftBottom";
|
841
|
+
lt: "lt";
|
842
|
+
lb: "lb";
|
843
|
+
top: "top";
|
844
|
+
topLeft: "topLeft";
|
845
|
+
topRight: "topRight";
|
846
|
+
tl: "tl";
|
847
|
+
tr: "tr";
|
848
|
+
right: "right";
|
849
|
+
rightTop: "rightTop";
|
850
|
+
rightBottom: "rightBottom";
|
851
|
+
rt: "rt";
|
852
|
+
rb: "rb";
|
853
|
+
bottom: "bottom";
|
854
|
+
bottomLeft: "bottomLeft";
|
855
|
+
bottomRight: "bottomRight";
|
856
|
+
bl: "bl";
|
857
|
+
br: "br";
|
858
|
+
}>>>;
|
859
|
+
labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
860
|
+
labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
861
|
+
labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
760
862
|
}, z.core.$strip>>;
|
761
863
|
}, z.core.$strip>>;
|
762
864
|
vtable: z.ZodOptional<z.ZodObject<{
|