@visactor/vseed 0.0.8 → 0.0.10

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.
Files changed (46) hide show
  1. package/dist/builder/builder/builder.d.ts +338 -0
  2. package/dist/dataReshape/constant.d.ts +1 -0
  3. package/dist/dataSelector/index.d.ts +1 -0
  4. package/dist/dataSelector/selector.d.ts +7 -0
  5. package/dist/index.cjs +652 -89
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.js +637 -89
  8. package/dist/index.js.map +1 -1
  9. package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +2 -0
  10. package/dist/pipeline/advanced/pipes/annotation/index.d.ts +1 -0
  11. package/dist/pipeline/advanced/pipes/index.d.ts +2 -0
  12. package/dist/pipeline/advanced/pipes/markStyle/index.d.ts +1 -0
  13. package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +2 -0
  14. package/dist/pipeline/spec/pipes/annotation/annotationPoint.d.ts +2 -0
  15. package/dist/pipeline/spec/pipes/annotation/index.d.ts +1 -0
  16. package/dist/pipeline/spec/pipes/index.d.ts +2 -0
  17. package/dist/pipeline/spec/pipes/legend/{pivotLegend.d.ts → discreteLegend.d.ts} +1 -1
  18. package/dist/pipeline/spec/pipes/legend/index.d.ts +2 -2
  19. package/dist/pipeline/spec/pipes/legend/pivotDiscreteLegend.d.ts +2 -0
  20. package/dist/pipeline/spec/pipes/{legend/legend.d.ts → markStyle/barStyle.d.ts} +1 -1
  21. package/dist/pipeline/spec/pipes/markStyle/index.d.ts +1 -0
  22. package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -1
  23. package/dist/pipeline/spec/pipes/stack/stack.d.ts +2 -2
  24. package/dist/types/advancedVSeed.d.ts +212 -0
  25. package/dist/types/chartType/area/area.d.ts +6 -1
  26. package/dist/types/chartType/areaPercent/areaPercent.d.ts +6 -1
  27. package/dist/types/chartType/bar/bar.d.ts +15 -1
  28. package/dist/types/chartType/barParallel/barParallel.d.ts +15 -1
  29. package/dist/types/chartType/barPercent/barPercent.d.ts +15 -1
  30. package/dist/types/chartType/column/column.d.ts +15 -1
  31. package/dist/types/chartType/columnParallel/columnParallel.d.ts +15 -1
  32. package/dist/types/chartType/columnPercent/columnPercent.d.ts +15 -1
  33. package/dist/types/chartType/line/line.d.ts +6 -1
  34. package/dist/types/dataSelector/index.d.ts +1 -0
  35. package/dist/types/dataSelector/selector.d.ts +34 -0
  36. package/dist/types/properties/annotation/annotation.d.ts +85 -0
  37. package/dist/types/properties/annotation/annotationPoint.d.ts +147 -0
  38. package/dist/types/properties/annotation/index.d.ts +2 -0
  39. package/dist/types/properties/baseConfig/baseConfig.d.ts +102 -0
  40. package/dist/types/properties/baseConfig/legend.d.ts +101 -4
  41. package/dist/types/properties/index.d.ts +2 -0
  42. package/dist/types/properties/markStyle/barStyle.d.ts +114 -0
  43. package/dist/types/properties/markStyle/index.d.ts +2 -0
  44. package/dist/types/properties/markStyle/markStyle.d.ts +29 -0
  45. package/dist/types/properties/theme/customTheme.d.ts +102 -0
  46. package/package.json +1 -1
@@ -0,0 +1,147 @@
1
+ import { type Selector, type Selectors } from '../../dataSelector';
2
+ import { z } from 'zod';
3
+ export type AnnotationPoint = {
4
+ /**
5
+ * 依赖选择的数据, 进行数据标记.
6
+ */
7
+ selector: Selector | Selectors;
8
+ /**
9
+ * 标注的文本
10
+ * @description 标注的文本
11
+ * @default ''
12
+ * @example '标注文本'
13
+ */
14
+ text?: string | string[];
15
+ /**
16
+ * 文本颜色
17
+ * @description 文本颜色
18
+ * @default '#ffffff'
19
+ * @example 'red'
20
+ */
21
+ textColor?: string;
22
+ /**
23
+ * 文本字体大小
24
+ * @description 文本字体大小
25
+ * @default 12
26
+ * @example 12
27
+ */
28
+ textFontSize?: number;
29
+ /**
30
+ * 文本字体重量
31
+ * @description 文本字体重量
32
+ * @default 400
33
+ * @example 400
34
+ */
35
+ textFontWeight?: number;
36
+ /**
37
+ * 文本对齐方式
38
+ * @description 文本对齐方式
39
+ * @default 'left'
40
+ * @example 'left'
41
+ */
42
+ textAlign?: 'left' | 'right' | 'center';
43
+ /**
44
+ * 文本垂直对齐方式
45
+ * @description 文本垂直对齐方式
46
+ * @default 'middle'
47
+ * @example 'middle'
48
+ */
49
+ textBaseline?: 'top' | 'middle' | 'bottom';
50
+ /**
51
+ * 文本Y方向的, 偏移量
52
+ * @description 文本Y方向的, 偏移量, 支持正负
53
+ * @default 0
54
+ * @example offsetY: 10
55
+ */
56
+ offsetY?: number;
57
+ /**
58
+ * 文本X方向的, 偏移量
59
+ * @description 文本X方向的, 偏移量, 支持正负
60
+ * @default 0
61
+ * @example offsetX: -10
62
+ */
63
+ offsetX?: number;
64
+ /**
65
+ * 背景可见
66
+ * @description 背景可见
67
+ * @default true
68
+ * @example true
69
+ */
70
+ backgroundVisible?: boolean;
71
+ /**
72
+ * 背景颜色
73
+ * @description 背景颜色
74
+ * @default '#212121'
75
+ * @example 'red'
76
+ */
77
+ backgroundColor?: string;
78
+ /**
79
+ * 背景边框颜色
80
+ * @description 背景边框颜色
81
+ * @default 'red'
82
+ * @example 'red'
83
+ */
84
+ backgroundBorderColor?: string;
85
+ /**
86
+ * 背景边框宽度
87
+ * @description 背景边框宽度
88
+ * @default 1
89
+ * @example 2
90
+ */
91
+ backgroundBorderWidth?: number;
92
+ /**
93
+ * 背景边框圆角
94
+ * @description 背景边框圆角
95
+ * @default 4
96
+ * @example 4
97
+ */
98
+ backgroundBorderRadius?: number;
99
+ /**
100
+ * 背景内边距
101
+ * @description 背景内边距
102
+ * @default 4
103
+ * @example 4
104
+ */
105
+ backgroundPadding?: number;
106
+ };
107
+ export declare const zAnnotationPoint: z.ZodObject<{
108
+ selector: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
109
+ field: z.ZodString;
110
+ operator: z.ZodString;
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.ZodString;
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.ZodString;
119
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
120
+ }, z.core.$strip>, z.ZodObject<{
121
+ field: z.ZodString;
122
+ operator: z.ZodString;
123
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
124
+ }, z.core.$strip>]>>]>;
125
+ text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>;
126
+ textColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
127
+ textFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
128
+ textFontWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
129
+ textAlign: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
130
+ left: "left";
131
+ right: "right";
132
+ center: "center";
133
+ }>>>;
134
+ textBaseline: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
135
+ top: "top";
136
+ bottom: "bottom";
137
+ middle: "middle";
138
+ }>>>;
139
+ backgroundVisible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
140
+ backgroundColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
141
+ backgroundBorderColor: z.ZodOptional<z.ZodString>;
142
+ backgroundBorderWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
143
+ backgroundBorderRadius: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
144
+ backgroundPadding: z.ZodOptional<z.ZodNumber>;
145
+ offsetY: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
146
+ offsetX: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
147
+ }, z.core.$strip>;
@@ -0,0 +1,2 @@
1
+ export * from './annotationPoint';
2
+ export * from './annotation';
@@ -13,6 +13,57 @@ declare const zVChartBaseConfig: z.ZodObject<{
13
13
  }, z.core.$strip>>;
14
14
  legend: z.ZodOptional<z.ZodObject<{
15
15
  enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
+ border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
+ maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
18
+ shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
19
+ circle: "circle";
20
+ cross: "cross";
21
+ diamond: "diamond";
22
+ square: "square";
23
+ arrow: "arrow";
24
+ arrow2Left: "arrow2Left";
25
+ arrow2Right: "arrow2Right";
26
+ wedge: "wedge";
27
+ thinTriangle: "thinTriangle";
28
+ triangle: "triangle";
29
+ triangleUp: "triangleUp";
30
+ triangleDown: "triangleDown";
31
+ triangleRight: "triangleRight";
32
+ triangleLeft: "triangleLeft";
33
+ stroke: "stroke";
34
+ star: "star";
35
+ wye: "wye";
36
+ rect: "rect";
37
+ arrowLeft: "arrowLeft";
38
+ arrowRight: "arrowRight";
39
+ rectRound: "rectRound";
40
+ roundLine: "roundLine";
41
+ }>>>;
42
+ position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
43
+ left: "left";
44
+ leftTop: "leftTop";
45
+ leftBottom: "leftBottom";
46
+ lt: "lt";
47
+ lb: "lb";
48
+ top: "top";
49
+ topLeft: "topLeft";
50
+ topRight: "topRight";
51
+ tl: "tl";
52
+ tr: "tr";
53
+ right: "right";
54
+ rightTop: "rightTop";
55
+ rightBottom: "rightBottom";
56
+ rt: "rt";
57
+ rb: "rb";
58
+ bottom: "bottom";
59
+ bottomLeft: "bottomLeft";
60
+ bottomRight: "bottomRight";
61
+ bl: "bl";
62
+ br: "br";
63
+ }>>>;
64
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
65
+ labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
66
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
16
67
  }, z.core.$strip>>;
17
68
  }, z.core.$strip>;
18
69
  declare const zVTableBaseConfig: z.ZodObject<{
@@ -33,6 +84,57 @@ export declare const zBaseConfig: z.ZodObject<{
33
84
  }, z.core.$strip>>;
34
85
  legend: z.ZodOptional<z.ZodObject<{
35
86
  enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
87
+ border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
88
+ maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
89
+ shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
90
+ circle: "circle";
91
+ cross: "cross";
92
+ diamond: "diamond";
93
+ square: "square";
94
+ arrow: "arrow";
95
+ arrow2Left: "arrow2Left";
96
+ arrow2Right: "arrow2Right";
97
+ wedge: "wedge";
98
+ thinTriangle: "thinTriangle";
99
+ triangle: "triangle";
100
+ triangleUp: "triangleUp";
101
+ triangleDown: "triangleDown";
102
+ triangleRight: "triangleRight";
103
+ triangleLeft: "triangleLeft";
104
+ stroke: "stroke";
105
+ star: "star";
106
+ wye: "wye";
107
+ rect: "rect";
108
+ arrowLeft: "arrowLeft";
109
+ arrowRight: "arrowRight";
110
+ rectRound: "rectRound";
111
+ roundLine: "roundLine";
112
+ }>>>;
113
+ position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
114
+ left: "left";
115
+ leftTop: "leftTop";
116
+ leftBottom: "leftBottom";
117
+ lt: "lt";
118
+ lb: "lb";
119
+ top: "top";
120
+ topLeft: "topLeft";
121
+ topRight: "topRight";
122
+ tl: "tl";
123
+ tr: "tr";
124
+ right: "right";
125
+ rightTop: "rightTop";
126
+ rightBottom: "rightBottom";
127
+ rt: "rt";
128
+ rb: "rb";
129
+ bottom: "bottom";
130
+ bottomLeft: "bottomLeft";
131
+ bottomRight: "bottomRight";
132
+ bl: "bl";
133
+ br: "br";
134
+ }>>>;
135
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
136
+ labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
137
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
36
138
  }, z.core.$strip>>;
37
139
  }, z.core.$strip>>;
38
140
  vtable: z.ZodOptional<z.ZodObject<{
@@ -1,11 +1,108 @@
1
1
  import { z } from 'zod';
2
- export declare const zLegend: z.ZodObject<{
3
- enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4
- }, z.core.$strip>;
5
2
  export type Legend = {
6
3
  /**
7
4
  * 图例功能是否开启
8
5
  * @default true
6
+ * @example enable: true
7
+ */
8
+ enable?: boolean;
9
+ /**
10
+ * 图例边框是否开启
11
+ * @default true
12
+ * @example border: true
9
13
  */
10
- enable: boolean;
14
+ border?: boolean;
15
+ /**
16
+ * 图例最大列数 或 图例最大行数
17
+ * @default 1
18
+ * @description
19
+ * 如果图例在水平方向上, maxSize控制显示的列数
20
+ * 如果图例在垂直方向上, maxSize控制显示的行数
21
+ * @example maxSize: 2
22
+ */
23
+ maxSize?: number;
24
+ /**
25
+ * 图例字体大小
26
+ * @default 12
27
+ * @example labelFontSize: 10
28
+ */
29
+ labelFontSize?: number;
30
+ /**
31
+ * 图例字体颜色
32
+ * @default '#fff'
33
+ * @example labelFontColor: '#212121'
34
+ */
35
+ labelFontColor?: string;
36
+ /**
37
+ * 图例字体粗细
38
+ * @default 400
39
+ * @example labelFontWeight: 400
40
+ */
41
+ labelFontWeight?: number | string;
42
+ /**
43
+ * 图例形状
44
+ * @default 'rectRound'
45
+ * @example shapeType: 'circle'
46
+ */
47
+ shapeType?: 'circle' | 'cross' | 'diamond' | 'square' | 'arrow' | 'arrow2Left' | 'arrow2Right' | 'wedge' | 'thinTriangle' | 'triangle' | 'triangleUp' | 'triangleDown' | 'triangleRight' | 'triangleLeft' | 'stroke' | 'star' | 'wye' | 'rect' | 'arrowLeft' | 'arrowRight' | 'rectRound' | 'roundLine';
48
+ /**
49
+ * 图例位置
50
+ * @default 'top'
51
+ * @example position: 'rightTop'
52
+ */
53
+ position?: 'left' | 'leftTop' | 'leftBottom' | 'lt' | 'lb' | 'top' | 'topLeft' | 'topRight' | 'tl' | 'tr' | 'right' | 'rightTop' | 'rightBottom' | 'rt' | 'rb' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'bl' | 'br';
11
54
  };
55
+ export declare const zLegend: z.ZodObject<{
56
+ enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
57
+ border: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
58
+ maxSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
59
+ shapeType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
60
+ circle: "circle";
61
+ cross: "cross";
62
+ diamond: "diamond";
63
+ square: "square";
64
+ arrow: "arrow";
65
+ arrow2Left: "arrow2Left";
66
+ arrow2Right: "arrow2Right";
67
+ wedge: "wedge";
68
+ thinTriangle: "thinTriangle";
69
+ triangle: "triangle";
70
+ triangleUp: "triangleUp";
71
+ triangleDown: "triangleDown";
72
+ triangleRight: "triangleRight";
73
+ triangleLeft: "triangleLeft";
74
+ stroke: "stroke";
75
+ star: "star";
76
+ wye: "wye";
77
+ rect: "rect";
78
+ arrowLeft: "arrowLeft";
79
+ arrowRight: "arrowRight";
80
+ rectRound: "rectRound";
81
+ roundLine: "roundLine";
82
+ }>>>;
83
+ position: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
84
+ left: "left";
85
+ leftTop: "leftTop";
86
+ leftBottom: "leftBottom";
87
+ lt: "lt";
88
+ lb: "lb";
89
+ top: "top";
90
+ topLeft: "topLeft";
91
+ topRight: "topRight";
92
+ tl: "tl";
93
+ tr: "tr";
94
+ right: "right";
95
+ rightTop: "rightTop";
96
+ rightBottom: "rightBottom";
97
+ rt: "rt";
98
+ rb: "rb";
99
+ bottom: "bottom";
100
+ bottomLeft: "bottomLeft";
101
+ bottomRight: "bottomRight";
102
+ bl: "bl";
103
+ br: "br";
104
+ }>>>;
105
+ labelFontSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
106
+ labelFontColor: z.ZodOptional<z.ZodDefault<z.ZodString>>;
107
+ labelFontWeight: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
108
+ }, z.core.$strip>;
@@ -7,3 +7,5 @@ export * from './encoding';
7
7
  export * from './baseConfig';
8
8
  export * from './config';
9
9
  export * from './theme';
10
+ export * from './markStyle';
11
+ export * from './annotation';
@@ -0,0 +1,114 @@
1
+ import { z } from 'zod';
2
+ import { type Selector, type Selectors } from '../../dataSelector';
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.ZodOptional<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.ZodOptional<z.ZodString>;
109
+ barColorOpacity: z.ZodOptional<z.ZodNumber>;
110
+ barBorderColor: z.ZodOptional<z.ZodString>;
111
+ barBorderWidth: z.ZodOptional<z.ZodNumber>;
112
+ barBorderStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"solid">, z.ZodLiteral<"dashed">, z.ZodLiteral<"dotted">]>>;
113
+ barRadius: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>>;
114
+ }, z.core.$strip>;
@@ -0,0 +1,2 @@
1
+ export * from './barStyle';
2
+ export * from './markStyle';
@@ -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.ZodOptional<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.ZodOptional<z.ZodString>;
22
+ barColorOpacity: z.ZodOptional<z.ZodNumber>;
23
+ barBorderColor: z.ZodOptional<z.ZodString>;
24
+ barBorderWidth: z.ZodOptional<z.ZodNumber>;
25
+ barBorderStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"solid">, z.ZodLiteral<"dashed">, z.ZodLiteral<"dotted">]>>;
26
+ barRadius: z.ZodOptional<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<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vseed",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {