@visactor/vseed 0.0.30 → 0.0.31
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 +36 -0
- package/dist/index.cjs +330 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +177 -50
- package/dist/index.js.map +1 -1
- package/dist/pipeline/spec/chart/pipes/tooltip/index.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/tooltip/tooltipAreaRange.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipes/tooltip/tooltipDisable.d.ts +2 -0
- package/dist/types/advancedVSeed.d.ts +12 -0
- package/dist/types/chartType/area/area.d.ts +16 -4
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +16 -4
- package/dist/types/chartType/areaRange/areaRange.d.ts +16 -4
- package/dist/types/chartType/bar/bar.d.ts +16 -4
- package/dist/types/chartType/barParallel/barParallel.d.ts +16 -4
- package/dist/types/chartType/barPercent/barPercent.d.ts +16 -4
- package/dist/types/chartType/column/column.d.ts +16 -4
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +16 -4
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +16 -4
- package/dist/types/chartType/line/line.d.ts +17 -5
- package/dist/types/chartType/scatter/scatter.d.ts +12 -0
- package/dist/types/properties/analysis/analysis.d.ts +1 -1
- package/dist/types/properties/analysis/index.d.ts +1 -1
- package/dist/types/properties/analysis/{sortAxis.d.ts → sort.d.ts} +2 -2
- package/dist/types/properties/annotation/annotation.d.ts +12 -0
- package/dist/types/properties/annotation/annotationArea.d.ts +14 -17
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +2 -19
- package/dist/types/properties/annotation/annotationPoint.d.ts +0 -14
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +4 -21
- package/dist/types/properties/config/axes/axis.d.ts +1 -1
- package/dist/types/properties/config/legend/legend.d.ts +9 -10
- package/dist/types/properties/measures/measures.d.ts +6 -1
- package/dist/types/vseed.d.ts +133 -1
- package/dist/umd/index.js +257 -7946
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -15,91 +15,77 @@ export type AnnotationPoint = {
|
|
15
15
|
/**
|
16
16
|
* 文本颜色
|
17
17
|
* @description 文本颜色
|
18
|
-
* @default '#ffffff'
|
19
18
|
* @example 'red'
|
20
19
|
*/
|
21
20
|
textColor?: string;
|
22
21
|
/**
|
23
22
|
* 文本字体大小
|
24
23
|
* @description 文本字体大小
|
25
|
-
* @default 12
|
26
24
|
* @example 12
|
27
25
|
*/
|
28
26
|
textFontSize?: number;
|
29
27
|
/**
|
30
28
|
* 文本字体重量
|
31
29
|
* @description 文本字体重量
|
32
|
-
* @default 400
|
33
30
|
* @example 400
|
34
31
|
*/
|
35
32
|
textFontWeight?: number;
|
36
33
|
/**
|
37
34
|
* 文本对齐方式
|
38
35
|
* @description 文本对齐方式
|
39
|
-
* @default 'left'
|
40
36
|
* @example 'left'
|
41
37
|
*/
|
42
38
|
textAlign?: 'left' | 'right' | 'center';
|
43
39
|
/**
|
44
40
|
* 文本垂直对齐方式
|
45
41
|
* @description 文本垂直对齐方式
|
46
|
-
* @default 'middle'
|
47
42
|
* @example 'middle'
|
48
43
|
*/
|
49
44
|
textBaseline?: 'top' | 'middle' | 'bottom';
|
50
45
|
/**
|
51
46
|
* 文本Y方向的, 偏移量
|
52
|
-
* @description 文本Y方向的, 偏移量, 支持正负
|
53
|
-
* @default 0
|
54
47
|
* @example offsetY: 10
|
55
48
|
*/
|
56
49
|
offsetY?: number;
|
57
50
|
/**
|
58
51
|
* 文本X方向的, 偏移量
|
59
52
|
* @description 文本X方向的, 偏移量, 支持正负
|
60
|
-
* @default 0
|
61
53
|
* @example offsetX: -10
|
62
54
|
*/
|
63
55
|
offsetX?: number;
|
64
56
|
/**
|
65
57
|
* 背景可见
|
66
58
|
* @description 背景可见
|
67
|
-
* @default true
|
68
59
|
* @example true
|
69
60
|
*/
|
70
61
|
backgroundVisible?: boolean;
|
71
62
|
/**
|
72
63
|
* 背景颜色
|
73
64
|
* @description 背景颜色
|
74
|
-
* @default '#212121'
|
75
65
|
* @example 'red'
|
76
66
|
*/
|
77
67
|
backgroundColor?: string;
|
78
68
|
/**
|
79
69
|
* 背景边框颜色
|
80
70
|
* @description 背景边框颜色
|
81
|
-
* @default 'red'
|
82
71
|
* @example 'red'
|
83
72
|
*/
|
84
73
|
backgroundBorderColor?: string;
|
85
74
|
/**
|
86
75
|
* 背景边框宽度
|
87
76
|
* @description 背景边框宽度
|
88
|
-
* @default 1
|
89
77
|
* @example 2
|
90
78
|
*/
|
91
79
|
backgroundBorderWidth?: number;
|
92
80
|
/**
|
93
81
|
* 背景边框圆角
|
94
82
|
* @description 背景边框圆角
|
95
|
-
* @default 4
|
96
83
|
* @example 4
|
97
84
|
*/
|
98
85
|
backgroundBorderRadius?: number;
|
99
86
|
/**
|
100
87
|
* 背景内边距
|
101
88
|
* @description 背景内边距
|
102
|
-
* @default 4
|
103
89
|
* @example 4
|
104
90
|
*/
|
105
91
|
backgroundPadding?: number;
|
@@ -8,7 +8,6 @@ export type AnnotationVerticalLine = {
|
|
8
8
|
/**
|
9
9
|
* 固定的x值, 用于标注垂直线
|
10
10
|
* @description 类目轴在x方向, 则可输入维值, 数值轴在x方向, 则可输入具体的数值
|
11
|
-
* @default []
|
12
11
|
*/
|
13
12
|
xValue?: (number | string) | (number | string)[];
|
14
13
|
/**
|
@@ -21,126 +20,108 @@ export type AnnotationVerticalLine = {
|
|
21
20
|
/**
|
22
21
|
* 文本位置
|
23
22
|
* @description 标注线的标签位置(标签相对线的相对位置)。
|
24
|
-
* @default 'insideEnd'
|
25
23
|
* @example 'outsideEnd'
|
26
24
|
*/
|
27
25
|
textPosition?: 'outsideStart' | 'outsideEnd' | 'outsideMiddle' | 'insideStart' | 'insideMiddle' | 'insideEnd';
|
28
26
|
/**
|
29
27
|
* 文本颜色
|
30
28
|
* @description 文本颜色
|
31
|
-
* @default '#ffffff'
|
32
29
|
* @example 'red'
|
33
30
|
*/
|
34
31
|
textColor?: string;
|
35
32
|
/**
|
36
33
|
* 文本字体大小
|
37
34
|
* @description 文本字体大小
|
38
|
-
* @default 12
|
39
35
|
* @example 12
|
40
36
|
*/
|
41
37
|
textFontSize?: number;
|
42
38
|
/**
|
43
39
|
* 文本字体重量
|
44
40
|
* @description 文本字体重量
|
45
|
-
* @default 400
|
46
41
|
* @example 400
|
47
42
|
*/
|
48
43
|
textFontWeight?: number;
|
49
44
|
/**
|
50
45
|
* 文本对齐方式
|
51
46
|
* @description 文本对齐方式
|
52
|
-
* @default 'right'
|
53
47
|
* @example 'left'
|
54
48
|
*/
|
55
49
|
textAlign?: 'left' | 'right' | 'center';
|
56
50
|
/**
|
57
51
|
* 文本垂直对齐方式
|
58
52
|
* @description 文本垂直对齐方式
|
59
|
-
* @default 'top'
|
60
53
|
* @example 'middle'
|
61
54
|
*/
|
62
55
|
textBaseline?: 'top' | 'middle' | 'bottom';
|
63
56
|
/**
|
64
|
-
*
|
57
|
+
* 标注线Y方向的, 偏移量
|
65
58
|
* @description 文本Y方向的, 偏移量, 支持正负
|
66
|
-
* @default 0
|
67
59
|
* @example offsetY: 10
|
68
60
|
*/
|
69
61
|
offsetY?: number;
|
70
62
|
/**
|
71
|
-
*
|
63
|
+
* 标注线X方向的, 偏移量
|
72
64
|
* @description 文本X方向的, 偏移量, 支持正负
|
73
|
-
* @default 0
|
74
65
|
* @example offsetX: -10
|
75
66
|
*/
|
76
67
|
offsetX?: number;
|
77
68
|
/**
|
78
69
|
* 线可见
|
79
70
|
* @description 线可见
|
80
|
-
* @default true
|
81
71
|
* @example true
|
82
72
|
*/
|
83
73
|
lineVisible?: boolean;
|
84
74
|
/**
|
85
75
|
* 线颜色
|
86
76
|
* @description 线颜色
|
87
|
-
* @default 'red'
|
88
77
|
* @example 'red'
|
89
78
|
*/
|
90
79
|
lineColor?: string;
|
91
80
|
/**
|
92
81
|
* 线宽度
|
93
82
|
* @description 线宽度
|
94
|
-
* @default 2
|
95
83
|
* @example 2
|
96
84
|
*/
|
97
85
|
lineWidth?: number;
|
98
86
|
/**
|
99
87
|
* 线样式
|
100
88
|
* @description 线样式
|
101
|
-
* @default 'solid'
|
102
89
|
* @example 'solid'
|
103
90
|
*/
|
104
91
|
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
105
92
|
/**
|
106
93
|
* 背景可见
|
107
94
|
* @description 背景可见
|
108
|
-
* @default true
|
109
95
|
* @example true
|
110
96
|
*/
|
111
97
|
backgroundVisible?: boolean;
|
112
98
|
/**
|
113
99
|
* 背景颜色
|
114
100
|
* @description 背景颜色
|
115
|
-
* @default '#212121'
|
116
101
|
* @example 'red'
|
117
102
|
*/
|
118
103
|
backgroundColor?: string;
|
119
104
|
/**
|
120
105
|
* 背景边框颜色
|
121
106
|
* @description 背景边框颜色
|
122
|
-
* @default 'red'
|
123
107
|
* @example 'red'
|
124
108
|
*/
|
125
109
|
backgroundBorderColor?: string;
|
126
110
|
/**
|
127
111
|
* 背景边框宽度
|
128
112
|
* @description 背景边框宽度
|
129
|
-
* @default 1
|
130
113
|
* @example 2
|
131
114
|
*/
|
132
115
|
backgroundBorderWidth?: number;
|
133
116
|
/**
|
134
117
|
* 背景边框圆角
|
135
118
|
* @description 背景边框圆角
|
136
|
-
* @default 4
|
137
119
|
* @example 4
|
138
120
|
*/
|
139
121
|
backgroundBorderRadius?: number;
|
140
122
|
/**
|
141
123
|
* 背景内边距
|
142
124
|
* @description 背景内边距
|
143
|
-
* @default 4
|
144
125
|
* @example 4
|
145
126
|
*/
|
146
127
|
backgroundPadding?: number;
|
@@ -248,4 +229,6 @@ export declare const zAnnotationVerticalLine: z.ZodObject<{
|
|
248
229
|
backgroundBorderWidth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
249
230
|
backgroundBorderRadius: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
250
231
|
backgroundPadding: z.ZodOptional<z.ZodNumber>;
|
232
|
+
offsetX: z.ZodDefault<z.ZodNumber>;
|
233
|
+
offsetY: z.ZodDefault<z.ZodNumber>;
|
251
234
|
}, z.core.$strip>;
|
@@ -12,15 +12,6 @@ export type Legend = {
|
|
12
12
|
* @example border: true
|
13
13
|
*/
|
14
14
|
border?: boolean;
|
15
|
-
/**
|
16
|
-
* 图例最大列数 或 图例最大行数
|
17
|
-
* @default 1
|
18
|
-
* @description
|
19
|
-
* 如果图例在水平方向上, maxSize控制显示的列数
|
20
|
-
* 如果图例在垂直方向上, maxSize控制显示的行数
|
21
|
-
* @example maxSize: 2
|
22
|
-
*/
|
23
|
-
maxSize?: number;
|
24
15
|
/**
|
25
16
|
* 图例字体大小
|
26
17
|
* @default 12
|
@@ -47,10 +38,18 @@ export type Legend = {
|
|
47
38
|
shapeType?: 'circle' | 'cross' | 'diamond' | 'square' | 'arrow' | 'arrow2Left' | 'arrow2Right' | 'wedge' | 'thinTriangle' | 'triangle' | 'triangleUp' | 'triangleDown' | 'triangleRight' | 'triangleLeft' | 'stroke' | 'star' | 'wye' | 'rect' | 'arrowLeft' | 'arrowRight' | 'rectRound' | 'roundLine';
|
48
39
|
/**
|
49
40
|
* 图例位置
|
50
|
-
* @default '
|
41
|
+
* @default 'right'
|
51
42
|
* @example position: 'rightTop'
|
52
43
|
*/
|
53
44
|
position?: 'left' | 'leftTop' | 'leftBottom' | 'lt' | 'lb' | 'top' | 'topLeft' | 'topRight' | 'tl' | 'tr' | 'right' | 'rightTop' | 'rightBottom' | 'rt' | 'rb' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'bl' | 'br';
|
45
|
+
/**
|
46
|
+
* @description 存在大量图例时, 最大列数 或 图例最大行数
|
47
|
+
* 如果position为水平方向(bottom, bottomLeft, bottomRight, bl, br, top, topLeft, topRight, tl, tr), maxSize控制显示的列数
|
48
|
+
* 如果position为垂直方向(left, leftTop, leftBottom, lt, lb, right, rightTop, rightBottom, rt, rb), maxSize控制显示的行数
|
49
|
+
* @example maxSize: 2
|
50
|
+
* @default 1
|
51
|
+
*/
|
52
|
+
maxSize?: number;
|
54
53
|
};
|
55
54
|
export declare const zLegend: z.ZodObject<{
|
56
55
|
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -11,7 +11,12 @@ export type Measure = {
|
|
11
11
|
*/
|
12
12
|
alias?: string;
|
13
13
|
/**
|
14
|
-
* @description
|
14
|
+
* @description 自动数值格式化
|
15
|
+
* 开启后, 图表的数据标签、提示信息, 会根据指标的数值, 自动根据语言环境, 选择合适的格式化方式
|
16
|
+
* 格式化规则为设置为十进制数值, 开启compact notation, 最小0位小数, 最大2位小数, 自动四舍五入, 使用浏览器提供的 Intl.NumberFormatOptions 实现该逻辑.
|
17
|
+
* 例如:
|
18
|
+
* 当locale为zh-CN: 749740.264会被自动格式化为74.45万
|
19
|
+
* 当locale为en-US: 749740.264会被自动格式化为744.5K
|
15
20
|
* @default true
|
16
21
|
*/
|
17
22
|
autoFormat?: boolean;
|