@antv/g2 4.1.46 → 4.1.49
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/CHANGELOG.md +31 -0
- package/dist/g2.min.js +18 -4
- package/dist/g2.min.js.map +1 -1
- package/esm/animate/interface.d.ts +9 -3
- package/esm/animate/interface.js.map +1 -1
- package/esm/core.d.ts +1 -1
- package/esm/core.js +1 -1
- package/esm/core.js.map +1 -1
- package/esm/geometry/label/interface.d.ts +18 -6
- package/esm/geometry/label/interface.js.map +1 -1
- package/esm/geometry/label/layout/pie/spider.js +7 -6
- package/esm/geometry/label/layout/pie/spider.js.map +1 -1
- package/esm/geometry/shape/interval/util.js +8 -6
- package/esm/geometry/shape/interval/util.js.map +1 -1
- package/esm/interface.d.ts +2159 -741
- package/esm/interface.js.map +1 -1
- package/esm/theme/style-sheet/dark.d.ts +142 -424
- package/esm/theme/style-sheet/dark.js +12 -10
- package/esm/theme/style-sheet/dark.js.map +1 -1
- package/esm/theme/style-sheet/light.d.ts +142 -420
- package/esm/theme/style-sheet/light.js +12 -10
- package/esm/theme/style-sheet/light.js.map +1 -1
- package/lib/animate/interface.d.ts +9 -3
- package/lib/animate/interface.js.map +1 -1
- package/lib/core.d.ts +1 -1
- package/lib/core.js +1 -1
- package/lib/core.js.map +1 -1
- package/lib/geometry/label/interface.d.ts +18 -6
- package/lib/geometry/label/interface.js.map +1 -1
- package/lib/geometry/label/layout/pie/spider.js +7 -6
- package/lib/geometry/label/layout/pie/spider.js.map +1 -1
- package/lib/geometry/shape/interval/util.js +8 -6
- package/lib/geometry/shape/interval/util.js.map +1 -1
- package/lib/interface.d.ts +2159 -741
- package/lib/interface.js.map +1 -1
- package/lib/theme/style-sheet/dark.d.ts +142 -424
- package/lib/theme/style-sheet/dark.js +12 -10
- package/lib/theme/style-sheet/dark.js.map +1 -1
- package/lib/theme/style-sheet/light.d.ts +142 -420
- package/lib/theme/style-sheet/light.js +12 -10
- package/lib/theme/style-sheet/light.js.map +1 -1
- package/package.json +1 -1
- package/src/animate/interface.ts +9 -3
- package/src/core.ts +1 -1
- package/src/geometry/label/interface.ts +18 -6
- package/src/geometry/label/layout/pie/spider.ts +6 -7
- package/src/geometry/shape/interval/util.ts +4 -1
- package/src/interface.ts +2160 -756
- package/src/theme/style-sheet/dark.ts +13 -21
- package/src/theme/style-sheet/light.ts +13 -21
package/esm/interface.d.ts
CHANGED
|
@@ -5,26 +5,36 @@ import { Facet } from './facet';
|
|
|
5
5
|
import Element from './geometry/element';
|
|
6
6
|
import { PaddingCalCtor } from './chart/layout/padding-cal';
|
|
7
7
|
import { LegendRadio } from '@antv/component';
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @title 通用对象
|
|
10
|
+
*/
|
|
9
11
|
export interface LooseObject {
|
|
10
12
|
[key: string]: any;
|
|
11
13
|
}
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @title 一个点位置
|
|
16
|
+
*/
|
|
13
17
|
export interface Point {
|
|
14
18
|
readonly x: number;
|
|
15
19
|
readonly y: number;
|
|
16
20
|
}
|
|
17
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* @title 画布范围
|
|
23
|
+
*/
|
|
18
24
|
export interface Region {
|
|
19
25
|
readonly start: Point;
|
|
20
26
|
readonly end: Point;
|
|
21
27
|
}
|
|
22
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* @title 画布大小
|
|
30
|
+
*/
|
|
23
31
|
export interface Size {
|
|
24
32
|
readonly width: number;
|
|
25
33
|
readonly height: number;
|
|
26
34
|
}
|
|
27
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* @title 带范围的点结构
|
|
37
|
+
*/
|
|
28
38
|
export interface RangePoint {
|
|
29
39
|
readonly x?: number | number[];
|
|
30
40
|
readonly y?: number | number[];
|
|
@@ -35,186 +45,328 @@ export interface RangePoint {
|
|
|
35
45
|
export declare type AriaOption = false | {
|
|
36
46
|
readonly label: string;
|
|
37
47
|
};
|
|
38
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* @title 用户数据经过图形映射处理后的数据结构
|
|
50
|
+
*/
|
|
39
51
|
export interface MappingDatum {
|
|
40
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* @title 原始数据
|
|
54
|
+
*/
|
|
41
55
|
_origin: Datum;
|
|
42
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* @title shape 的关键点信息
|
|
58
|
+
*/
|
|
43
59
|
points?: ShapeVertices;
|
|
44
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* @title 相对于当前 shape 的下一个 shape 的关键点信息
|
|
62
|
+
*/
|
|
45
63
|
nextPoints?: ShapeVertices;
|
|
46
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* @title x 轴的坐标
|
|
66
|
+
*/
|
|
47
67
|
x?: number[] | number;
|
|
48
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* @title y 轴的坐标
|
|
70
|
+
*/
|
|
49
71
|
y?: number[] | number;
|
|
50
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* @title 颜色
|
|
74
|
+
*/
|
|
51
75
|
color?: string;
|
|
52
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* @title 渲染的 shape 类型
|
|
78
|
+
*/
|
|
53
79
|
shape?: string | string[];
|
|
54
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* @title 大小
|
|
82
|
+
*/
|
|
55
83
|
size?: number;
|
|
56
84
|
}
|
|
57
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* @title 绘制 Shape 需要的图形、样式、关键点等信息
|
|
87
|
+
*/
|
|
58
88
|
export interface ShapeInfo {
|
|
59
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* @title x 坐标
|
|
91
|
+
*/
|
|
60
92
|
x: number | number[];
|
|
61
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* @title y 坐标
|
|
95
|
+
*/
|
|
62
96
|
y: number | number[];
|
|
63
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* @title 映射的 shape 类型
|
|
99
|
+
*/
|
|
64
100
|
shape?: string | string[];
|
|
65
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* @title size 映射值
|
|
103
|
+
*/
|
|
66
104
|
size?: number;
|
|
67
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* @title 映射的颜色值
|
|
107
|
+
*/
|
|
68
108
|
color?: string;
|
|
69
|
-
/**
|
|
109
|
+
/**
|
|
110
|
+
* @title 用户设置的图形样式
|
|
111
|
+
*/
|
|
70
112
|
style?: LooseObject;
|
|
71
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* @title 是否在极坐标下
|
|
115
|
+
*/
|
|
72
116
|
isInCircle?: boolean;
|
|
73
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* @title 对应的原始数据记录
|
|
119
|
+
*/
|
|
74
120
|
data?: Datum | Data;
|
|
75
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* @title 存储进行图形映射后的数据
|
|
123
|
+
*/
|
|
76
124
|
mappingData?: MappingDatum | MappingDatum[];
|
|
77
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* @title 构成 shape 的关键点
|
|
127
|
+
*/
|
|
78
128
|
points?: ShapeVertices;
|
|
79
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* @title 下一个数据集对应的关键点
|
|
131
|
+
*/
|
|
80
132
|
nextPoints?: ShapeVertices;
|
|
81
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* @title Geometry.Text 需要
|
|
135
|
+
*/
|
|
82
136
|
text?: string;
|
|
83
|
-
/**
|
|
137
|
+
/**
|
|
138
|
+
* @title 数据是否发生层叠
|
|
139
|
+
*/
|
|
84
140
|
isStack?: boolean;
|
|
85
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* @title 是否连接空值,只对 Path Line Area 这三种 Geometry 生效。
|
|
143
|
+
*/
|
|
86
144
|
connectNulls?: boolean;
|
|
87
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* @title shape 背景,只对 Interval Geometry 生效,目前只对 interval-rect shape 生效。
|
|
147
|
+
*/
|
|
88
148
|
background?: {
|
|
89
149
|
style?: ShapeAttrs;
|
|
90
150
|
};
|
|
91
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* @title 是否展示单个孤立的数据点,只对 Path Line Area 这三种 Geometry 生效。
|
|
153
|
+
*/
|
|
92
154
|
showSinglePoint?: boolean;
|
|
93
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* @title 默认的 shape 样式
|
|
157
|
+
*/
|
|
94
158
|
defaultStyle?: LooseObject;
|
|
95
|
-
/**
|
|
159
|
+
/**
|
|
160
|
+
* @title 自定义的数据,传入到 shapeInfo 中
|
|
161
|
+
*/
|
|
96
162
|
customInfo?: CustomOption;
|
|
97
163
|
}
|
|
98
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* @title 用户配置的动画,属性均可选
|
|
166
|
+
*/
|
|
99
167
|
export interface AnimateCfg {
|
|
100
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* @title 动画缓动函数
|
|
170
|
+
*/
|
|
101
171
|
readonly easing?: string | AnimateEasingCallback;
|
|
102
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* @title 动画执行函数
|
|
174
|
+
*/
|
|
103
175
|
readonly animation?: string;
|
|
104
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* @title 动画执行时间
|
|
178
|
+
*/
|
|
105
179
|
readonly duration?: number | AnimateDurationCallback;
|
|
106
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* @title 动画延迟时间
|
|
182
|
+
*/
|
|
107
183
|
readonly delay?: number | AnimateDelayCallback;
|
|
108
|
-
/**
|
|
184
|
+
/**
|
|
185
|
+
* @title 动画执行结束后的回调函数
|
|
186
|
+
*/
|
|
109
187
|
readonly callback?: () => any;
|
|
110
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* @title 动画是否重复
|
|
190
|
+
*/
|
|
111
191
|
readonly repeat?: boolean;
|
|
112
192
|
}
|
|
113
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* @title 传递给 G 的动画配置,duration 必须提供
|
|
195
|
+
*/
|
|
114
196
|
export interface GAnimateCfg {
|
|
115
|
-
/**
|
|
197
|
+
/**
|
|
198
|
+
* @title 动画执行时间
|
|
199
|
+
*/
|
|
116
200
|
readonly duration: number;
|
|
117
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* @title 动画缓动函数
|
|
203
|
+
*/
|
|
118
204
|
readonly easing?: string;
|
|
119
|
-
/**
|
|
205
|
+
/**
|
|
206
|
+
* @title 动画执行函数
|
|
207
|
+
*/
|
|
120
208
|
readonly animation?: string;
|
|
121
|
-
/**
|
|
209
|
+
/**
|
|
210
|
+
* @title 动画延迟时间
|
|
211
|
+
*/
|
|
122
212
|
readonly delay?: number;
|
|
123
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* @title 动画执行结束后的回调函数
|
|
215
|
+
*/
|
|
124
216
|
readonly callback?: () => any;
|
|
125
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* @title 动画是否重复
|
|
219
|
+
*/
|
|
126
220
|
readonly repeat?: boolean;
|
|
127
221
|
}
|
|
128
|
-
/**
|
|
222
|
+
/**
|
|
223
|
+
* @title 图形属性配置项定义,如 geometry.position({})
|
|
224
|
+
*/
|
|
129
225
|
export interface AttributeOption {
|
|
130
|
-
/**
|
|
226
|
+
/**
|
|
227
|
+
* @title 映射的属性字段。
|
|
228
|
+
*/
|
|
131
229
|
fields?: string[];
|
|
132
|
-
/**
|
|
230
|
+
/**
|
|
231
|
+
* @title 回调函数。
|
|
232
|
+
*/
|
|
133
233
|
callback?: (...args: any[]) => any;
|
|
134
|
-
/**
|
|
234
|
+
/**
|
|
235
|
+
* @title 指定常量映射规则。
|
|
236
|
+
*/
|
|
135
237
|
values?: any[];
|
|
136
238
|
}
|
|
137
|
-
/**
|
|
239
|
+
/**
|
|
240
|
+
* @title 数据调整配置项定义,`geometry.adjust({})`
|
|
241
|
+
*/
|
|
138
242
|
export interface AdjustOption {
|
|
139
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* @title 数据调整类型。
|
|
245
|
+
*/
|
|
140
246
|
readonly type: AdjustType;
|
|
141
247
|
/**
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* 
|
|
248
|
+
* @title 间距
|
|
249
|
+
* @description 该属性只对 'dodge' 类型生效,取 0 到 1 范围的值(相对于每个柱子宽度),用于控制一个分组中柱子之间的间距。
|
|
250
|
+
* @see 
|
|
145
251
|
*/
|
|
146
252
|
readonly marginRatio?: number;
|
|
147
253
|
/**
|
|
148
|
-
*
|
|
254
|
+
* @title 分组字段
|
|
255
|
+
* @description 该属性只对 'dodge' 类型生效,声明以哪个数据字段为分组依据。
|
|
149
256
|
*/
|
|
150
257
|
readonly dodgeBy?: string;
|
|
151
258
|
/**
|
|
152
|
-
*
|
|
259
|
+
* @title 是否反序
|
|
260
|
+
* @description 该属性只对 'stack' 类型生效,用于控制是否对数据进行反序操作。
|
|
153
261
|
*/
|
|
154
262
|
readonly reverseOrder?: boolean;
|
|
155
263
|
}
|
|
156
|
-
/**
|
|
264
|
+
/**
|
|
265
|
+
* @title `geometry.style({})` 样式配置定义
|
|
266
|
+
*/
|
|
157
267
|
export interface StyleOption {
|
|
158
|
-
/**
|
|
268
|
+
/**
|
|
269
|
+
* @title 映射的字段。
|
|
270
|
+
*/
|
|
159
271
|
readonly fields?: string[];
|
|
160
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* @title 回调函数。
|
|
274
|
+
*/
|
|
161
275
|
readonly callback?: (...args: any[]) => LooseObject;
|
|
162
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* @title 图形样式配置。
|
|
278
|
+
*/
|
|
163
279
|
readonly cfg?: LooseObject;
|
|
164
280
|
}
|
|
165
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* @title geometry.custom() custom 自定义的配置,可以传入任何数据
|
|
283
|
+
*/
|
|
166
284
|
export declare type CustomOption = any;
|
|
167
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* @title `geometry.tooltip({})` Tooltip 配置定义
|
|
287
|
+
*/
|
|
168
288
|
export interface GeometryTooltipOption {
|
|
169
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* @title 参与映射的字段。
|
|
291
|
+
*/
|
|
170
292
|
readonly fields: string[];
|
|
171
|
-
/**
|
|
293
|
+
/**
|
|
294
|
+
* @title 回调函数。
|
|
295
|
+
*/
|
|
172
296
|
readonly callback?: (...args: any[]) => LooseObject;
|
|
173
297
|
}
|
|
174
298
|
export interface GeometryLabelLayoutCfg {
|
|
175
|
-
/**
|
|
299
|
+
/**
|
|
300
|
+
* @title label 布局类型。
|
|
301
|
+
*/
|
|
176
302
|
type: string;
|
|
177
|
-
/**
|
|
303
|
+
/**
|
|
304
|
+
* @title 各个布局函数开放给用户的配置。
|
|
305
|
+
*/
|
|
178
306
|
cfg?: LooseObject;
|
|
179
307
|
}
|
|
180
|
-
/**
|
|
308
|
+
/**
|
|
309
|
+
* @title geometry.label({}) 配置属性
|
|
310
|
+
*/
|
|
181
311
|
export interface GeometryLabelCfg {
|
|
182
312
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
313
|
+
* @title 类型
|
|
314
|
+
* @description 用于声明渲染的 label 类型。当用户使用了自定义的 label 类型,需要声明具体的 type 类型,否则会使用默认的 label 类型渲染。
|
|
185
315
|
*/
|
|
186
316
|
type?: string;
|
|
187
|
-
/**
|
|
317
|
+
/**
|
|
318
|
+
* @title 相对数据点的偏移距离, polar 和 theta 坐标系下可使用百分比字符串。
|
|
319
|
+
*/
|
|
188
320
|
offset?: number | string;
|
|
189
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* @title label 相对于数据点在 X 方向的偏移距离。
|
|
323
|
+
*/
|
|
190
324
|
offsetX?: number;
|
|
191
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* @title label 相对于数据点在 Y 方向的偏移距离。
|
|
327
|
+
*/
|
|
192
328
|
offsetY?: number;
|
|
193
329
|
/**
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* 示例: https://g2.antv.vision/zh/examples/pie/basic#pie-custome-label
|
|
330
|
+
* @title 文本内容
|
|
331
|
+
* @description 展示的文本内容,如果不声明则按照参与映射的第一字段的值进行显示。当 content 为 IGroup 或者 IShape 类型时,请使用相对定位,即 x 和 y 坐标都设为 0,G2 内部会整体做最后的 label 进行定位的。
|
|
332
|
+
* @link 示例: https://g2.antv.vision/zh/examples/pie/basic#pie-custome-label
|
|
197
333
|
*/
|
|
198
334
|
content?: string | IGroup | IShape | GeometryLabelContentCallback;
|
|
199
|
-
/**
|
|
335
|
+
/**
|
|
336
|
+
* @title 文本样式
|
|
337
|
+
* @description label 文本图形属性样式。
|
|
338
|
+
*/
|
|
200
339
|
style?: LooseObject;
|
|
201
|
-
/**
|
|
340
|
+
/**
|
|
341
|
+
* @title 是否自动旋转
|
|
342
|
+
* @description label 是否自动旋转
|
|
343
|
+
* @default true
|
|
344
|
+
*/
|
|
202
345
|
autoRotate?: boolean;
|
|
203
346
|
/**
|
|
204
|
-
*
|
|
347
|
+
* @title 旋转
|
|
348
|
+
* @description 当且仅当 `autoRotate` 为 false 时生效,用于设置文本的旋转角度,**弧度制**。
|
|
205
349
|
*/
|
|
206
350
|
rotate?: number;
|
|
207
|
-
/**
|
|
351
|
+
/**
|
|
352
|
+
* @title 标签高度
|
|
353
|
+
* @description 标签高度设置,仅当标签类型 type 为 pie 时生效;也可在主题中设置 pieLabels.labelHeight
|
|
354
|
+
*/
|
|
208
355
|
labelHeight?: number;
|
|
209
356
|
/**
|
|
210
|
-
*
|
|
357
|
+
* @title 文本连接线
|
|
358
|
+
* @description 用于设置文本连接线的样式属性,null 表示不展示。
|
|
211
359
|
*/
|
|
212
360
|
labelLine?: null | boolean | {
|
|
213
361
|
style?: object;
|
|
214
362
|
};
|
|
215
|
-
/**
|
|
363
|
+
/**
|
|
364
|
+
* @title 文本放射状
|
|
365
|
+
* @description 只对极坐标下的文本生效,表示文本是否按照角度进行放射状显示,true 表示开启,false 表示关闭。
|
|
366
|
+
*/
|
|
216
367
|
labelEmit?: boolean;
|
|
217
368
|
/**
|
|
369
|
+
* @title 文本布局
|
|
218
370
|
* 文本布局类型,支持多种布局函数组合使用。
|
|
219
371
|
*
|
|
220
372
|
* 目前提供了三种:'overlap','fixedOverlap','limitInShape':
|
|
@@ -231,83 +383,141 @@ export interface GeometryLabelCfg {
|
|
|
231
383
|
*/
|
|
232
384
|
layout?: GeometryLabelLayoutCfg | GeometryLabelLayoutCfg[];
|
|
233
385
|
/**
|
|
234
|
-
*
|
|
386
|
+
* @title 背景
|
|
387
|
+
* @description 用于绘制 label 背景
|
|
235
388
|
*/
|
|
236
389
|
background?: {
|
|
237
390
|
/**
|
|
238
|
-
*
|
|
391
|
+
* @title 背景框图形属性配置
|
|
239
392
|
* - fill?: string; 背景框 填充色
|
|
240
393
|
* - stroke?: string; 背景框 描边色
|
|
241
394
|
* - lineWidth?: string; 背景框 描边宽度
|
|
242
395
|
* - radius?: number | number[]; 背景框圆角,支持整数或数组形式
|
|
243
396
|
*/
|
|
244
397
|
style?: ShapeAttrs;
|
|
245
|
-
/**
|
|
398
|
+
/**
|
|
399
|
+
* @title 背景框 内边距
|
|
400
|
+
*/
|
|
246
401
|
padding?: number | number[];
|
|
247
402
|
};
|
|
248
403
|
/**
|
|
249
|
-
*
|
|
404
|
+
* @title 位置
|
|
405
|
+
* @description 仅当 geometry 为 interval 时生效,指定当前 label 与当前图形的相对位置。
|
|
250
406
|
*/
|
|
251
407
|
position?: ((data: Datum, mappingData: MappingDatum, index: number) => IntervalGeometryLabelPosition) | IntervalGeometryLabelPosition;
|
|
252
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* @title 动画配置。
|
|
410
|
+
*/
|
|
253
411
|
animate?: AnimateOption | false | null;
|
|
254
412
|
}
|
|
255
|
-
/**
|
|
413
|
+
/**
|
|
414
|
+
* @title `geometry().label({})` 配置定义
|
|
415
|
+
*/
|
|
256
416
|
export interface LabelOption {
|
|
257
|
-
/**
|
|
417
|
+
/**
|
|
418
|
+
* @title 映射的字段。
|
|
419
|
+
*/
|
|
258
420
|
fields?: string[];
|
|
259
|
-
/**
|
|
421
|
+
/**
|
|
422
|
+
* @title 回调函数。
|
|
423
|
+
*/
|
|
260
424
|
callback?: LabelCallback;
|
|
261
425
|
cfg?: GeometryLabelCfg;
|
|
262
426
|
}
|
|
263
|
-
/**
|
|
427
|
+
/**
|
|
428
|
+
* @title Geometry 下每个 state 的配置结构
|
|
429
|
+
*/
|
|
264
430
|
export interface StateCfg {
|
|
265
|
-
/**
|
|
431
|
+
/**
|
|
432
|
+
* @title 状态样式配置。
|
|
433
|
+
*/
|
|
266
434
|
style?: object | StateStyleCallback;
|
|
267
435
|
}
|
|
268
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* @title geometry.state({}) 配置定义
|
|
438
|
+
*/
|
|
269
439
|
export interface StateOption {
|
|
270
|
-
/**
|
|
440
|
+
/**
|
|
441
|
+
* @title 默认状态样式。
|
|
442
|
+
*/
|
|
271
443
|
default?: StateCfg;
|
|
272
|
-
/**
|
|
444
|
+
/**
|
|
445
|
+
* @title active 状态配置。
|
|
446
|
+
*/
|
|
273
447
|
active?: StateCfg;
|
|
274
|
-
/**
|
|
448
|
+
/**
|
|
449
|
+
* @title inactive 状态配置。
|
|
450
|
+
*/
|
|
275
451
|
inactive?: StateCfg;
|
|
276
|
-
/**
|
|
452
|
+
/**
|
|
453
|
+
* @title selected 状态配置。
|
|
454
|
+
*/
|
|
277
455
|
selected?: StateCfg;
|
|
278
456
|
}
|
|
279
|
-
/**
|
|
457
|
+
/**
|
|
458
|
+
* @title interval label 的位置
|
|
459
|
+
*/
|
|
280
460
|
export declare type IntervalGeometryLabelPosition = 'top' | 'bottom' | 'middle' | 'left' | 'right';
|
|
281
|
-
/**
|
|
461
|
+
/**
|
|
462
|
+
* @title G2 提供的 adjust 类型
|
|
463
|
+
*/
|
|
282
464
|
export declare type AdjustType = 'stack' | 'jitter' | 'dodge' | 'symmetric';
|
|
283
|
-
/**
|
|
465
|
+
/**
|
|
466
|
+
* @title geometry.color() 图形属性回调函数定义
|
|
467
|
+
*/
|
|
284
468
|
export declare type ColorAttrCallback = (...args: any[]) => string;
|
|
285
|
-
/**
|
|
469
|
+
/**
|
|
470
|
+
* @title geometry.shape() 图形属性回调函数定义
|
|
471
|
+
*/
|
|
286
472
|
export declare type ShapeAttrCallback = (...args: any[]) => string | any[];
|
|
287
|
-
/**
|
|
473
|
+
/**
|
|
474
|
+
* @title geometry.size() 图形属性回调函数定义
|
|
475
|
+
*/
|
|
288
476
|
export declare type SizeAttrCallback = (...args: any[]) => number;
|
|
289
|
-
/**
|
|
477
|
+
/**
|
|
478
|
+
* @title geometry.tooltip() 接口回调函数定义
|
|
479
|
+
*/
|
|
290
480
|
export declare type TooltipCallback = (...args: any[]) => LooseObject;
|
|
291
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* @title geometry.style() 接口回调函数定义
|
|
483
|
+
*/
|
|
292
484
|
export declare type StyleCallback = (...args: any[]) => LooseObject;
|
|
293
|
-
/**
|
|
485
|
+
/**
|
|
486
|
+
* @title geometry.label() 接口回调函数定义
|
|
487
|
+
*/
|
|
294
488
|
export declare type LabelCallback = (...args: any[]) => GeometryLabelCfg | null | undefined;
|
|
295
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* @title geometry label 中 content 属性的回调函数类型定义
|
|
491
|
+
*/
|
|
296
492
|
export declare type GeometryLabelContentCallback = (data: Datum, mappingData: MappingDatum, index: number) => string | IShape | IGroup;
|
|
297
|
-
/**
|
|
493
|
+
/**
|
|
494
|
+
* @title state 下 style 回调函数定义
|
|
495
|
+
*/
|
|
298
496
|
export declare type StateStyleCallback = (element: Element) => LooseObject;
|
|
299
|
-
/**
|
|
497
|
+
/**
|
|
498
|
+
* @title 获取 shape marker 时需要的信息
|
|
499
|
+
*/
|
|
300
500
|
export interface ShapeMarkerCfg {
|
|
301
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* @title 颜色。
|
|
503
|
+
*/
|
|
302
504
|
color: string;
|
|
303
|
-
/**
|
|
505
|
+
/**
|
|
506
|
+
* @title 是否是极坐标。
|
|
507
|
+
*/
|
|
304
508
|
isInPolar: boolean;
|
|
305
509
|
}
|
|
306
|
-
/**
|
|
510
|
+
/**
|
|
511
|
+
* @title 图形 marker 的配置信息。
|
|
512
|
+
*/
|
|
307
513
|
export interface ShapeMarkerAttrs {
|
|
308
|
-
/**
|
|
514
|
+
/**
|
|
515
|
+
* @title marker 的形状。
|
|
516
|
+
*/
|
|
309
517
|
symbol: string | ShapeMarkerSymbol;
|
|
310
518
|
/**
|
|
519
|
+
* @title marker 样式
|
|
520
|
+
* @description
|
|
311
521
|
* marker 的样式,`ShapeAttrs` 属性结构如下:
|
|
312
522
|
*
|
|
313
523
|
* ```ts
|
|
@@ -372,160 +582,296 @@ export interface ShapeMarkerAttrs {
|
|
|
372
582
|
* }
|
|
373
583
|
* ```
|
|
374
584
|
*
|
|
375
|
-
*
|
|
585
|
+
* @link https://github.com/antvis/g/blob/28e3178b616573e0fa6d59694f1aaca2baaa9766/packages/g-base/src/types.ts#L37|ShapeAttrs
|
|
376
586
|
*/
|
|
377
587
|
style: ShapeAttrs;
|
|
378
588
|
}
|
|
379
|
-
/**
|
|
589
|
+
/**
|
|
590
|
+
* @title shape 关键点信息
|
|
591
|
+
*/
|
|
380
592
|
export interface ShapePoint {
|
|
381
|
-
/**
|
|
593
|
+
/**
|
|
594
|
+
* @title 数据点映射后对应 x 的值。
|
|
595
|
+
*/
|
|
382
596
|
readonly x: number | number[];
|
|
383
|
-
/**
|
|
597
|
+
/**
|
|
598
|
+
* @title 数据点映射后对应 y 的值。
|
|
599
|
+
*/
|
|
384
600
|
readonly y?: number | number[];
|
|
385
|
-
/**
|
|
601
|
+
/**
|
|
602
|
+
* @title 数据在 y 方向的最小值。
|
|
603
|
+
*/
|
|
386
604
|
readonly y0?: number;
|
|
605
|
+
/**
|
|
606
|
+
* @title 大小
|
|
607
|
+
*/
|
|
387
608
|
size?: number;
|
|
388
609
|
}
|
|
389
|
-
/**
|
|
610
|
+
/**
|
|
611
|
+
* @title 小提琴图 shape 关键点信息
|
|
612
|
+
*/
|
|
390
613
|
export declare type ViolinShapePoint = ShapePoint & {
|
|
391
614
|
_size?: number[];
|
|
392
615
|
};
|
|
393
|
-
/**
|
|
616
|
+
/**
|
|
617
|
+
* @title 注册 ShapeFactory 需要实现的接口。
|
|
618
|
+
*/
|
|
394
619
|
export interface RegisterShapeFactory {
|
|
395
|
-
/**
|
|
620
|
+
/**
|
|
621
|
+
* @title 默认的 shape 类型。
|
|
622
|
+
*/
|
|
396
623
|
readonly defaultShapeType: string;
|
|
397
|
-
/**
|
|
624
|
+
/**
|
|
625
|
+
* @title 返回绘制 shape 所有的关键点集合。
|
|
626
|
+
*/
|
|
398
627
|
readonly getDefaultPoints?: (pointInfo: ShapePoint) => Point[];
|
|
399
|
-
/**
|
|
628
|
+
/**
|
|
629
|
+
* @title 获取 shape 的默认绘制样式
|
|
630
|
+
*/
|
|
400
631
|
readonly getDefaultStyle?: (geometryTheme: LooseObject) => LooseObject;
|
|
401
|
-
/**
|
|
632
|
+
/**
|
|
633
|
+
* @title 获取 shape 对应的缩略图配置。
|
|
634
|
+
*/
|
|
402
635
|
readonly getMarker?: (shapeType: string, markerCfg: ShapeMarkerCfg) => ShapeMarkerAttrs;
|
|
403
|
-
/**
|
|
636
|
+
/**
|
|
637
|
+
* @title 创建具体的 G.Shape 实例。
|
|
638
|
+
*/
|
|
404
639
|
readonly drawShape?: (shapeType: string, cfg: ShapeInfo, container: IGroup) => IShape | IGroup;
|
|
405
640
|
}
|
|
406
|
-
/**
|
|
641
|
+
/**
|
|
642
|
+
* @title 注册具体 shape 需要实现的接口。
|
|
643
|
+
*/
|
|
407
644
|
export interface RegisterShape {
|
|
408
|
-
/**
|
|
645
|
+
/**
|
|
646
|
+
* @title 计算绘制需要的关键点,在注册具体的 shape 时由开发者自己定义。
|
|
647
|
+
*/
|
|
409
648
|
readonly getPoints?: (pointInfo: ShapePoint) => Point[];
|
|
410
|
-
/**
|
|
649
|
+
/**
|
|
650
|
+
* @title 获取 shape 对应的缩略图样式配置,在注册具体的 shape 时由开发者自己定义。
|
|
651
|
+
*/
|
|
411
652
|
readonly getMarker?: (markerCfg: ShapeMarkerCfg) => ShapeMarkerAttrs;
|
|
412
|
-
/**
|
|
653
|
+
/**
|
|
654
|
+
* @title 绘制函数。
|
|
655
|
+
*/
|
|
413
656
|
readonly draw: (cfg: ShapeInfo, container: IGroup) => IShape | IGroup | void;
|
|
414
657
|
}
|
|
415
|
-
/**
|
|
658
|
+
/**
|
|
659
|
+
* @title Shape 接口定义。
|
|
660
|
+
*/
|
|
416
661
|
export interface Shape extends RegisterShape {
|
|
417
|
-
/**
|
|
662
|
+
/**
|
|
663
|
+
* @title 坐标系对象。
|
|
664
|
+
*/
|
|
418
665
|
coordinate: Coordinate;
|
|
419
|
-
/**
|
|
666
|
+
/**
|
|
667
|
+
* @title 工具函数,将 0~1 path 转化成实际画布 path。
|
|
668
|
+
*/
|
|
420
669
|
parsePath: (path: any) => PathCommand[];
|
|
421
|
-
/**
|
|
670
|
+
/**
|
|
671
|
+
* @title 工具函数,0~1 的坐标点转换成实际画布坐标点。
|
|
672
|
+
*/
|
|
422
673
|
parsePoint: (point: Point) => Point;
|
|
423
|
-
/**
|
|
674
|
+
/**
|
|
675
|
+
* @title 工具函数,0~1 的坐标点集合转换成实际画布坐标点集合。
|
|
676
|
+
*/
|
|
424
677
|
parsePoints: (points: Point[]) => Point[];
|
|
425
678
|
}
|
|
426
|
-
/**
|
|
679
|
+
/**
|
|
680
|
+
* @title ShapeFactory 接口定义。
|
|
681
|
+
*/
|
|
427
682
|
export interface ShapeFactory extends RegisterShapeFactory {
|
|
428
|
-
/**
|
|
683
|
+
/**
|
|
684
|
+
* @title 工厂名。
|
|
685
|
+
*/
|
|
429
686
|
geometryType: string;
|
|
430
|
-
/**
|
|
687
|
+
/**
|
|
688
|
+
* @title 坐标系对象。
|
|
689
|
+
*/
|
|
431
690
|
coordinate: Coordinate;
|
|
432
|
-
/**
|
|
691
|
+
/**
|
|
692
|
+
* @title ShapeFactory 下所有的主题样式。
|
|
693
|
+
*/
|
|
433
694
|
theme: LooseObject;
|
|
434
|
-
/**
|
|
695
|
+
/**
|
|
696
|
+
* @title 根据名称获取具体的 shape 对象。
|
|
697
|
+
*/
|
|
435
698
|
getShape: (shapeType: string | string[]) => Shape;
|
|
436
|
-
/**
|
|
699
|
+
/**
|
|
700
|
+
* @title 获取构成 shape 的关键点。
|
|
701
|
+
*/
|
|
437
702
|
getShapePoints: (shapeType: string | string[], pointInfo: ShapePoint) => Point[];
|
|
438
703
|
}
|
|
439
|
-
/**
|
|
704
|
+
/**
|
|
705
|
+
* @title 自定义 Shape marker 的函数
|
|
706
|
+
*/
|
|
440
707
|
export declare type ShapeMarkerSymbol = (x: number, y: number, r: number) => PathCommand[];
|
|
441
|
-
/**
|
|
708
|
+
/**
|
|
709
|
+
* @title Annotation position 回调函数
|
|
710
|
+
*/
|
|
442
711
|
export declare type AnnotationPositionCallback = (xScales: Scale[] | Record<string, Scale>, yScales: Scale[] | Record<string, Scale>) => [number | string, number | string];
|
|
443
|
-
/**
|
|
444
|
-
|
|
445
|
-
|
|
712
|
+
/**
|
|
713
|
+
* @title Annotation 位置相关属性的类型定义
|
|
714
|
+
*/
|
|
715
|
+
export declare type AnnotationPosition = [number | string, number | string] | Record<string, number | string> | AnnotationPositionCallback;
|
|
716
|
+
/**
|
|
717
|
+
* @title Annotation 定义的通用属性,chart.annotation().line({})
|
|
718
|
+
*/
|
|
446
719
|
export interface AnnotationBaseOption {
|
|
720
|
+
/**
|
|
721
|
+
* @title 类型
|
|
722
|
+
*/
|
|
447
723
|
readonly type?: string;
|
|
448
|
-
/**
|
|
724
|
+
/**
|
|
725
|
+
* @title 是否顶层
|
|
726
|
+
* @description 指定 annotation 是否绘制在 canvas 最上层,默认为 false, 即绘制在最下层
|
|
727
|
+
*/
|
|
449
728
|
readonly top?: boolean;
|
|
450
|
-
/**
|
|
729
|
+
/**
|
|
730
|
+
* @title 是否进行动画
|
|
731
|
+
*/
|
|
451
732
|
readonly animate?: boolean;
|
|
452
|
-
/**
|
|
733
|
+
/**
|
|
734
|
+
* @title 动画参数配置
|
|
735
|
+
* @description 当且仅当 `animate` 属性为 true,即动画开启时生效。
|
|
736
|
+
*/
|
|
453
737
|
readonly animateOption?: ComponentAnimateOption;
|
|
454
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* @title x 方向的偏移量
|
|
740
|
+
*/
|
|
455
741
|
readonly offsetX?: number;
|
|
456
|
-
/**
|
|
742
|
+
/**
|
|
743
|
+
* @title y 方向的偏移量
|
|
744
|
+
*/
|
|
457
745
|
readonly offsetY?: number;
|
|
458
746
|
}
|
|
459
|
-
/**
|
|
747
|
+
/**
|
|
748
|
+
* @title 使用 RegionPosition 定位的组件配置
|
|
749
|
+
*/
|
|
460
750
|
export interface RegionPositionBaseOption extends AnnotationBaseOption {
|
|
461
|
-
/**
|
|
751
|
+
/**
|
|
752
|
+
* @title 起始位置
|
|
753
|
+
*/
|
|
462
754
|
readonly start: AnnotationPosition;
|
|
463
|
-
/**
|
|
755
|
+
/**
|
|
756
|
+
* @title 结束位置
|
|
757
|
+
*/
|
|
464
758
|
readonly end: AnnotationPosition;
|
|
465
|
-
/**
|
|
759
|
+
/**
|
|
760
|
+
* @title 图形样式属性
|
|
761
|
+
*/
|
|
466
762
|
readonly style?: ShapeAttrs;
|
|
467
763
|
}
|
|
468
|
-
/**
|
|
764
|
+
/**
|
|
765
|
+
* @title 使用 PointPosition 定位的组件配置
|
|
766
|
+
*/
|
|
469
767
|
export interface PointPositionBaseOption extends AnnotationBaseOption {
|
|
470
|
-
/**
|
|
768
|
+
/**
|
|
769
|
+
* @title Point 定位位置
|
|
770
|
+
*/
|
|
471
771
|
readonly position: AnnotationPosition;
|
|
472
772
|
}
|
|
473
|
-
/**
|
|
773
|
+
/**
|
|
774
|
+
* @title 使用 Image Annotation 组件的配置定义
|
|
775
|
+
*/
|
|
474
776
|
export interface ImageOption extends RegionPositionBaseOption {
|
|
475
|
-
/**
|
|
777
|
+
/**
|
|
778
|
+
* @title 图片路径
|
|
779
|
+
*/
|
|
476
780
|
readonly src: string;
|
|
477
781
|
}
|
|
478
|
-
/**
|
|
782
|
+
/**
|
|
783
|
+
* @title 使用 Line Annotation 组件的配置定义
|
|
784
|
+
*/
|
|
479
785
|
export interface LineOption extends RegionPositionBaseOption {
|
|
480
|
-
/**
|
|
786
|
+
/**
|
|
787
|
+
* @title 文本配置定义
|
|
788
|
+
*/
|
|
481
789
|
readonly text?: LineAnnotationTextCfg;
|
|
482
790
|
}
|
|
483
|
-
/**
|
|
791
|
+
/**
|
|
792
|
+
* @title 使用 Arc Annotation 组件的配置定义
|
|
793
|
+
*/
|
|
484
794
|
export declare type ArcOption = RegionPositionBaseOption;
|
|
485
|
-
/**
|
|
795
|
+
/**
|
|
796
|
+
* @title 使用 Region Annotation 组件的配置定义
|
|
797
|
+
*/
|
|
486
798
|
export declare type RegionOption = RegionPositionBaseOption;
|
|
487
|
-
/**
|
|
799
|
+
/**
|
|
800
|
+
* @title 使用 Text Annotation 组件的配置定义
|
|
801
|
+
*/
|
|
488
802
|
export interface TextOption extends PointPositionBaseOption, Omit<EnhancedTextCfg, 'content'> {
|
|
489
803
|
content?: string | number | ((filteredData: object[]) => string | number);
|
|
490
804
|
}
|
|
491
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* @title 使用 DataMarker Annotation 组件的配置定义
|
|
807
|
+
*/
|
|
492
808
|
export interface DataMarkerOption extends PointPositionBaseOption {
|
|
493
|
-
/**
|
|
809
|
+
/**
|
|
810
|
+
* @title point 设置
|
|
811
|
+
*/
|
|
494
812
|
readonly point?: null | {
|
|
495
813
|
style?: ShapeAttrs;
|
|
496
814
|
};
|
|
497
|
-
/**
|
|
815
|
+
/**
|
|
816
|
+
* @title line 设置
|
|
817
|
+
*/
|
|
498
818
|
readonly line?: null | {
|
|
499
819
|
style?: ShapeAttrs;
|
|
500
820
|
length?: number;
|
|
501
821
|
};
|
|
502
|
-
/**
|
|
822
|
+
/**
|
|
823
|
+
* @title text 设置
|
|
824
|
+
*/
|
|
503
825
|
readonly text: null | EnhancedTextCfg;
|
|
504
|
-
/**
|
|
826
|
+
/**
|
|
827
|
+
* @title 文本超出绘制区域时,是否自动调节文本方向,默认为 true
|
|
828
|
+
*/
|
|
505
829
|
readonly autoAdjust?: boolean;
|
|
506
|
-
/**
|
|
830
|
+
/**
|
|
831
|
+
* @title 朝向,默认为 upward,可选值为 'upward' 或者 'downward'
|
|
832
|
+
*/
|
|
507
833
|
readonly direction?: 'upward' | 'downward';
|
|
508
834
|
}
|
|
509
|
-
/**
|
|
835
|
+
/**
|
|
836
|
+
* @title 使用 DataRegion Annotation 组件的配置定义
|
|
837
|
+
*/
|
|
510
838
|
export interface DataRegionOption extends RegionPositionBaseOption {
|
|
511
|
-
/**
|
|
839
|
+
/**
|
|
840
|
+
* @title line长度,default为 0
|
|
841
|
+
*/
|
|
512
842
|
readonly lineLength?: number;
|
|
513
|
-
/**
|
|
843
|
+
/**
|
|
844
|
+
* @title 标注区间的配置
|
|
845
|
+
*/
|
|
514
846
|
readonly region?: null | {
|
|
515
847
|
style?: ShapeAttrs;
|
|
516
848
|
};
|
|
517
|
-
/**
|
|
849
|
+
/**
|
|
850
|
+
* @title 文本的配置
|
|
851
|
+
*/
|
|
518
852
|
readonly text?: null | EnhancedTextCfg;
|
|
519
853
|
}
|
|
520
|
-
/**
|
|
854
|
+
/**
|
|
855
|
+
* @title 使用 RegionFilter Annotation 组件的配置定义
|
|
856
|
+
*/
|
|
521
857
|
export interface RegionFilterOption extends RegionPositionBaseOption {
|
|
522
|
-
/**
|
|
858
|
+
/**
|
|
859
|
+
* @title 染色色值
|
|
860
|
+
*/
|
|
523
861
|
readonly color: string;
|
|
862
|
+
/**
|
|
863
|
+
* @title 适用场景
|
|
864
|
+
* @description 可选,设定regionFilter只对特定geom类型起作用,如apply:['area']
|
|
865
|
+
*/
|
|
524
866
|
readonly apply?: string[];
|
|
525
867
|
}
|
|
526
|
-
/**
|
|
868
|
+
/**
|
|
869
|
+
* @title Shape Annotation 的配置
|
|
870
|
+
*/
|
|
527
871
|
export interface ShapeAnnotationOption extends AnnotationBaseOption {
|
|
528
|
-
/**
|
|
872
|
+
/**
|
|
873
|
+
* @title 自定义 Annotation 绘制函数
|
|
874
|
+
*/
|
|
529
875
|
render: (container: IGroup, view: View, helpers: {
|
|
530
876
|
parsePosition: (position: [string | number, string | number] | Datum) => Point;
|
|
531
877
|
}) => void;
|
|
@@ -534,20 +880,34 @@ export interface ShapeAnnotationOption extends AnnotationBaseOption {
|
|
|
534
880
|
* Html Annotation 配置
|
|
535
881
|
*/
|
|
536
882
|
export interface HtmlAnnotationOption extends PointPositionBaseOption {
|
|
537
|
-
/**
|
|
883
|
+
/**
|
|
884
|
+
* @title 容器元素
|
|
885
|
+
*/
|
|
538
886
|
container?: string | HTMLElement;
|
|
539
|
-
/**
|
|
887
|
+
/**
|
|
888
|
+
* @title 自定义 HTML DOM 元素
|
|
889
|
+
*/
|
|
540
890
|
html: string | HTMLElement | ((container: HTMLElement, view: View) => void | string | HTMLElement);
|
|
541
|
-
/**
|
|
891
|
+
/**
|
|
892
|
+
* @title X 方向对齐
|
|
893
|
+
*/
|
|
542
894
|
alignX?: 'left' | 'middle' | 'right';
|
|
543
|
-
/**
|
|
895
|
+
/**
|
|
896
|
+
* @title Y 方向对齐
|
|
897
|
+
*/
|
|
544
898
|
alignY?: 'top' | 'middle' | 'bottom';
|
|
545
|
-
/**
|
|
899
|
+
/**
|
|
900
|
+
* @title X 方向偏移
|
|
901
|
+
*/
|
|
546
902
|
offsetX?: number;
|
|
547
|
-
/**
|
|
903
|
+
/**
|
|
904
|
+
* @title Y 方向偏移
|
|
905
|
+
*/
|
|
548
906
|
offsetY?: number;
|
|
549
907
|
}
|
|
550
|
-
/**
|
|
908
|
+
/**
|
|
909
|
+
* @title Tooltip 内容框的 css 样式定义
|
|
910
|
+
*/
|
|
551
911
|
export interface TooltipDomStyles {
|
|
552
912
|
'g2-tooltip'?: LooseObject;
|
|
553
913
|
'g2-tooltip-title'?: LooseObject;
|
|
@@ -557,32 +917,54 @@ export interface TooltipDomStyles {
|
|
|
557
917
|
'g2-tooltip-value'?: LooseObject;
|
|
558
918
|
'g2-tooltip-name'?: LooseObject;
|
|
559
919
|
}
|
|
560
|
-
/**
|
|
920
|
+
/**
|
|
921
|
+
* @title 目前组件动画允许的参数配置
|
|
922
|
+
*/
|
|
561
923
|
export interface ComponentAnimateCfg {
|
|
562
|
-
/**
|
|
924
|
+
/**
|
|
925
|
+
* @title 动画执行时间
|
|
926
|
+
*/
|
|
563
927
|
readonly duration?: number;
|
|
564
|
-
/**
|
|
928
|
+
/**
|
|
929
|
+
* @title 动画缓动函数
|
|
930
|
+
*/
|
|
565
931
|
readonly easing?: string;
|
|
566
|
-
/**
|
|
932
|
+
/**
|
|
933
|
+
* @title 动画延迟时间
|
|
934
|
+
*/
|
|
567
935
|
readonly delay?: number;
|
|
568
936
|
}
|
|
569
|
-
/**
|
|
937
|
+
/**
|
|
938
|
+
* @title 组件各个动画类型配置
|
|
939
|
+
*/
|
|
570
940
|
export interface ComponentAnimateOption {
|
|
571
|
-
/**
|
|
941
|
+
/**
|
|
942
|
+
* @title 初入场动画配置
|
|
943
|
+
*/
|
|
572
944
|
appear?: ComponentAnimateCfg;
|
|
573
|
-
/**
|
|
945
|
+
/**
|
|
946
|
+
* @title 更新动画配置
|
|
947
|
+
*/
|
|
574
948
|
update?: ComponentAnimateCfg;
|
|
575
|
-
/**
|
|
949
|
+
/**
|
|
950
|
+
* @title 更新后新入场的动画配置
|
|
951
|
+
*/
|
|
576
952
|
enter?: ComponentAnimateCfg;
|
|
577
|
-
/**
|
|
953
|
+
/**
|
|
954
|
+
* @title 离场动画配置
|
|
955
|
+
*/
|
|
578
956
|
leave?: ComponentAnimateCfg;
|
|
579
957
|
}
|
|
580
|
-
/**
|
|
958
|
+
/**
|
|
959
|
+
* @title 列定义配置项
|
|
960
|
+
*/
|
|
581
961
|
export interface ScaleOption extends ScaleConfig {
|
|
582
|
-
/**
|
|
962
|
+
/**
|
|
963
|
+
* @title 声明度量类型。
|
|
964
|
+
*/
|
|
583
965
|
type?: ScaleType;
|
|
584
966
|
/**
|
|
585
|
-
* 同步 scale
|
|
967
|
+
* @title 同步 scale
|
|
586
968
|
*
|
|
587
969
|
* @example
|
|
588
970
|
* ```ts
|
|
@@ -598,15 +980,17 @@ export interface ScaleOption extends ScaleConfig {
|
|
|
598
980
|
*/
|
|
599
981
|
sync?: boolean | string;
|
|
600
982
|
/**
|
|
601
|
-
*
|
|
983
|
+
* @title 是否显示最后日期
|
|
984
|
+
* @description 只对 type: 'time' 的 scale 生效,强制显示最后的日期 tick。
|
|
602
985
|
*/
|
|
603
986
|
showLast?: boolean;
|
|
604
987
|
/**
|
|
988
|
+
* @title 唯一 ID
|
|
989
|
+
* @description
|
|
605
990
|
* 用于声明使用数据记录中的哪些字段来组成一条数据的唯一 id(如有多个字段,则使用 '-' 连接)。
|
|
606
991
|
* 数据 id 用于标识 Element 图形元素,应用于 Geometry 中的图形元素 Element 更新。
|
|
607
992
|
* 默认 G2 内部会有一套 ID 生成规则,如果不能满足用户需求,用户既可以使用该属性配置 id。
|
|
608
993
|
* @example
|
|
609
|
-
*
|
|
610
994
|
* 下面的例子中,声明了将 'x' 和 'y' 字段的数值来作为每条数据记录的 id,即下面数据两条数据的 id 分别为:'1-23' 和 '2-2'。
|
|
611
995
|
* ```ts
|
|
612
996
|
* const data = [
|
|
@@ -622,63 +1006,117 @@ export interface ScaleOption extends ScaleConfig {
|
|
|
622
1006
|
*/
|
|
623
1007
|
key?: boolean;
|
|
624
1008
|
}
|
|
625
|
-
/**
|
|
1009
|
+
/**
|
|
1010
|
+
* @title Geometry 动画参数配置。geometry.animate()
|
|
1011
|
+
*/
|
|
626
1012
|
export interface AnimateOption {
|
|
627
|
-
/**
|
|
1013
|
+
/**
|
|
1014
|
+
* @title chart 初始化渲染时的入场动画,false/null 表示关闭入场动画。
|
|
1015
|
+
*/
|
|
628
1016
|
appear?: AnimateCfg | false | null;
|
|
629
|
-
/**
|
|
1017
|
+
/**
|
|
1018
|
+
* @title chart 发生更新时,新增元素的入场动画,false/null 表示关闭入场动画。
|
|
1019
|
+
*/
|
|
630
1020
|
enter?: AnimateCfg | false | null;
|
|
631
|
-
/**
|
|
1021
|
+
/**
|
|
1022
|
+
* @title 更新动画配置,false/null 表示关闭更新动画。
|
|
1023
|
+
*/
|
|
632
1024
|
update?: AnimateCfg | false | null;
|
|
633
|
-
/**
|
|
1025
|
+
/**
|
|
1026
|
+
* @title 销毁动画配置,false/null 表示关闭销毁动画。
|
|
1027
|
+
*/
|
|
634
1028
|
leave?: AnimateCfg | false | null;
|
|
635
1029
|
}
|
|
636
|
-
/**
|
|
1030
|
+
/**
|
|
1031
|
+
* @title 用于配置项式声明交互行为
|
|
1032
|
+
*/
|
|
637
1033
|
export interface InteractionOption {
|
|
638
|
-
/**
|
|
1034
|
+
/**
|
|
1035
|
+
* @title 交互名称
|
|
1036
|
+
*/
|
|
639
1037
|
type: string;
|
|
640
|
-
/**
|
|
1038
|
+
/**
|
|
1039
|
+
* @title 交互配置
|
|
1040
|
+
*/
|
|
641
1041
|
cfg?: LooseObject;
|
|
642
1042
|
}
|
|
643
|
-
/**
|
|
1043
|
+
/**
|
|
1044
|
+
* @title 用于配置项式的 Geometry 创建方式
|
|
1045
|
+
*/
|
|
644
1046
|
export interface GeometryOption {
|
|
645
|
-
/**
|
|
1047
|
+
/**
|
|
1048
|
+
* @title Geometry 的类型。
|
|
1049
|
+
*/
|
|
646
1050
|
type?: 'interval' | 'line' | 'path' | 'point' | 'area' | 'polygon' | 'schema' | 'edge' | 'heatmap' | string;
|
|
647
|
-
/**
|
|
1051
|
+
/**
|
|
1052
|
+
* @title position 通道映射规则,对应 `geometry.position()`。
|
|
1053
|
+
*/
|
|
648
1054
|
position?: string | AttributeOption;
|
|
649
|
-
/**
|
|
1055
|
+
/**
|
|
1056
|
+
* @title color 通道映射规则,对应 `geometry.color()`。
|
|
1057
|
+
*/
|
|
650
1058
|
color?: string | AttributeOption;
|
|
651
|
-
/**
|
|
1059
|
+
/**
|
|
1060
|
+
* @title shape 通道映射规则,对应 `geometry.shape()`。
|
|
1061
|
+
*/
|
|
652
1062
|
shape?: string | AttributeOption;
|
|
653
|
-
/**
|
|
1063
|
+
/**
|
|
1064
|
+
* @title size 通道映射规则,对应 `geometry.size()`。
|
|
1065
|
+
*/
|
|
654
1066
|
size?: number | string | AttributeOption;
|
|
655
|
-
/**
|
|
1067
|
+
/**
|
|
1068
|
+
* @title adjust 数据调整方式,对应 `geometry.adjust()`。
|
|
1069
|
+
*/
|
|
656
1070
|
adjust?: string | string[] | AdjustOption | AdjustOption[];
|
|
657
|
-
/**
|
|
1071
|
+
/**
|
|
1072
|
+
* @title style 样式配置,对应 `geometry.size()`。
|
|
1073
|
+
*/
|
|
658
1074
|
style?: StyleOption | LooseObject;
|
|
659
|
-
/**
|
|
1075
|
+
/**
|
|
1076
|
+
* @title tooltip 配置,对应 `geometry.tooltip()`。
|
|
1077
|
+
*/
|
|
660
1078
|
tooltip?: GeometryTooltipOption | boolean | string;
|
|
661
|
-
/**
|
|
1079
|
+
/**
|
|
1080
|
+
* @title Geometry 动画配置,对应 `geometry.animate()`。
|
|
1081
|
+
*/
|
|
662
1082
|
animate?: AnimateOption | boolean;
|
|
663
|
-
/**
|
|
1083
|
+
/**
|
|
1084
|
+
* @title Label 配置,对应 `geometry.label()`。
|
|
1085
|
+
*/
|
|
664
1086
|
label?: LabelOption | false | string;
|
|
665
|
-
/**
|
|
1087
|
+
/**
|
|
1088
|
+
* @title state 样式配置,对应 `geometry.state()`。
|
|
1089
|
+
*/
|
|
666
1090
|
state?: StateOption;
|
|
667
|
-
/**
|
|
1091
|
+
/**
|
|
1092
|
+
* @title 其他配置
|
|
1093
|
+
*/
|
|
668
1094
|
cfg?: {
|
|
669
|
-
/**
|
|
1095
|
+
/**
|
|
1096
|
+
* @title 是否对数据进行排序
|
|
1097
|
+
*/
|
|
670
1098
|
sortable?: boolean;
|
|
671
|
-
/**
|
|
1099
|
+
/**
|
|
1100
|
+
* @title 是否可见
|
|
1101
|
+
*/
|
|
672
1102
|
visible?: boolean;
|
|
673
|
-
/**
|
|
1103
|
+
/**
|
|
1104
|
+
* @title 是否连接空值,仅对 'line', 'area' 和 'path' 生效
|
|
1105
|
+
*/
|
|
674
1106
|
connectNulls?: boolean;
|
|
675
1107
|
};
|
|
676
1108
|
}
|
|
677
|
-
/**
|
|
1109
|
+
/**
|
|
1110
|
+
* @title 用于配置型式的 View 声明方式
|
|
1111
|
+
*/
|
|
678
1112
|
export interface ViewOption {
|
|
679
|
-
/**
|
|
1113
|
+
/**
|
|
1114
|
+
* @title view 的唯一表示 ID
|
|
1115
|
+
*/
|
|
680
1116
|
readonly id?: string;
|
|
681
|
-
/**
|
|
1117
|
+
/**
|
|
1118
|
+
* @title view 的绘制范围,起始点为左上角。
|
|
1119
|
+
*/
|
|
682
1120
|
readonly region?: Region;
|
|
683
1121
|
/**
|
|
684
1122
|
* 设置图表的内边距,使用方式参考 CSS 盒模型。
|
|
@@ -690,96 +1128,146 @@ export interface ViewOption {
|
|
|
690
1128
|
* 2. padding: [ 10, 30, 30 ]
|
|
691
1129
|
*/
|
|
692
1130
|
readonly padding?: ViewPadding;
|
|
693
|
-
/**
|
|
1131
|
+
/**
|
|
1132
|
+
* @title 设置主题。
|
|
1133
|
+
*/
|
|
694
1134
|
readonly theme?: LooseObject | string;
|
|
695
|
-
/**
|
|
1135
|
+
/**
|
|
1136
|
+
* @title 是否可见。
|
|
1137
|
+
*/
|
|
696
1138
|
readonly visible?: boolean;
|
|
697
1139
|
/**
|
|
698
1140
|
* 图表组件、图形映射等相关的配置。
|
|
699
1141
|
*/
|
|
700
1142
|
readonly options?: Options;
|
|
701
1143
|
}
|
|
702
|
-
/**
|
|
1144
|
+
/**
|
|
1145
|
+
* @title Chart 构造方法的入参
|
|
1146
|
+
*/
|
|
703
1147
|
export interface ChartCfg extends Omit<ViewCfg, 'parent' | 'canvas' | 'foregroundGroup' | 'middleGroup' | 'backgroundGroup' | 'region'> {
|
|
704
|
-
/**
|
|
1148
|
+
/**
|
|
1149
|
+
* @title 指定 chart 绘制的 DOM,可以传入 DOM id,也可以直接传入 dom 实例。
|
|
1150
|
+
*/
|
|
705
1151
|
readonly container: string | HTMLElement;
|
|
706
|
-
/**
|
|
1152
|
+
/**
|
|
1153
|
+
* @title 图表宽度。
|
|
1154
|
+
*/
|
|
707
1155
|
readonly width?: number;
|
|
708
|
-
/**
|
|
1156
|
+
/**
|
|
1157
|
+
* @title 图表高度。
|
|
1158
|
+
*/
|
|
709
1159
|
readonly height?: number;
|
|
710
1160
|
/**
|
|
711
|
-
*
|
|
712
|
-
*
|
|
1161
|
+
* @title 否自适应容器宽高
|
|
1162
|
+
* @description
|
|
1163
|
+
* 图表是否自适应容器宽高,默认为 false,用户需要手动设置 width 和 height。当 `autoFit: true` 时,
|
|
1164
|
+
* 会自动取图表容器的宽高,如果用户设置了 height,那么会以用户设置的 height 为准。
|
|
1165
|
+
* @default false
|
|
713
1166
|
*/
|
|
714
1167
|
readonly autoFit?: boolean;
|
|
715
|
-
/**
|
|
1168
|
+
/**
|
|
1169
|
+
* @title 渲染引擎
|
|
1170
|
+
* @default "canvas"
|
|
1171
|
+
*/
|
|
716
1172
|
readonly renderer?: Renderer;
|
|
717
|
-
/**
|
|
1173
|
+
/**
|
|
1174
|
+
* @title 像素比
|
|
1175
|
+
* @description 设置设备像素比,默认取浏览器的值 `window.devicePixelRatio`。
|
|
1176
|
+
*/
|
|
718
1177
|
readonly pixelRatio?: number;
|
|
719
1178
|
/**
|
|
720
|
-
*
|
|
1179
|
+
* @title 是否开启局部刷新
|
|
1180
|
+
* @default true
|
|
721
1181
|
*/
|
|
722
1182
|
readonly localRefresh?: boolean;
|
|
723
|
-
/**
|
|
1183
|
+
/**
|
|
1184
|
+
* @title 是否支持 CSS transform
|
|
1185
|
+
* @description 开启后图表的交互以及事件将在页面设置了 css transform 属性时生效,默认关闭。
|
|
1186
|
+
* @default false
|
|
1187
|
+
*/
|
|
724
1188
|
readonly supportCSSTransform?: boolean;
|
|
725
1189
|
/**
|
|
726
|
-
* 配置图表默认交互,仅支持字符串形式。
|
|
1190
|
+
* @title 配置图表默认交互,仅支持字符串形式。
|
|
727
1191
|
*/
|
|
728
1192
|
readonly defaultInteractions?: string[];
|
|
729
1193
|
}
|
|
730
1194
|
export declare type SyncViewPaddingFn = (chart: View, views: View[], PC: PaddingCalCtor) => void;
|
|
731
|
-
/**
|
|
1195
|
+
/**
|
|
1196
|
+
* @title View 构造参数
|
|
1197
|
+
*/
|
|
732
1198
|
export interface ViewCfg {
|
|
733
|
-
/**
|
|
1199
|
+
/**
|
|
1200
|
+
* @title View id,可以由外部传入
|
|
1201
|
+
*/
|
|
734
1202
|
readonly id?: string;
|
|
735
|
-
/**
|
|
1203
|
+
/**
|
|
1204
|
+
* @title 当前 view 的父级 view。
|
|
1205
|
+
*/
|
|
736
1206
|
readonly parent: View;
|
|
737
|
-
/**
|
|
1207
|
+
/**
|
|
1208
|
+
* @title canvas 实例。
|
|
1209
|
+
*/
|
|
738
1210
|
readonly canvas: ICanvas;
|
|
739
|
-
/**
|
|
1211
|
+
/**
|
|
1212
|
+
* @title 前景层
|
|
1213
|
+
*/
|
|
740
1214
|
readonly foregroundGroup: IGroup;
|
|
741
|
-
/**
|
|
1215
|
+
/**
|
|
1216
|
+
* @title 中间层
|
|
1217
|
+
*/
|
|
742
1218
|
readonly middleGroup: IGroup;
|
|
743
|
-
/**
|
|
1219
|
+
/**
|
|
1220
|
+
* @title 背景层
|
|
1221
|
+
*/
|
|
744
1222
|
readonly backgroundGroup: IGroup;
|
|
745
|
-
/**
|
|
1223
|
+
/**
|
|
1224
|
+
* @title view 的绘制范围
|
|
1225
|
+
*/
|
|
746
1226
|
readonly region?: Region;
|
|
747
|
-
/**
|
|
1227
|
+
/**
|
|
1228
|
+
* @title 是否对超出坐标系范围的 Geometry 进行剪切
|
|
1229
|
+
*/
|
|
748
1230
|
readonly limitInPlot?: boolean;
|
|
749
1231
|
/**
|
|
750
|
-
*
|
|
751
|
-
*
|
|
752
|
-
* 
|
|
753
|
-
*
|
|
1232
|
+
* @title 内边距
|
|
1233
|
+
* @description 设置图表的内边距,使用方式参考 CSS 盒模型,下图黄色区域即为 padding 的范围。
|
|
1234
|
+
* @see 
|
|
754
1235
|
* @example
|
|
755
1236
|
* 1. padding: 20
|
|
756
1237
|
* 2. padding: [ 10, 30, 30 ]
|
|
757
1238
|
*/
|
|
758
1239
|
readonly padding?: ViewPadding;
|
|
759
1240
|
/**
|
|
760
|
-
*
|
|
1241
|
+
* @title 额外边距
|
|
1242
|
+
* @description 设置图表的内边距在padding的基础上增加appendPadding的调整。
|
|
761
1243
|
* @example
|
|
762
1244
|
* 1. padding: 20
|
|
763
1245
|
* 2. padding: [ 10, 30, 30 ]
|
|
764
1246
|
*/
|
|
765
1247
|
readonly appendPadding?: ViewAppendPadding;
|
|
766
1248
|
/**
|
|
767
|
-
* 是否同步子 view 的 padding
|
|
768
|
-
*
|
|
1249
|
+
* @title 是否同步子 view 的 padding
|
|
1250
|
+
* @description 是否同步子 view 的 padding,可以是 boolean / SyncViewPaddingFn
|
|
1251
|
+
* @example
|
|
769
1252
|
* view1 的 padding 10
|
|
770
1253
|
* view2 的 padding 20
|
|
771
|
-
*
|
|
1254
|
+
* 那么两个子 view 的 padding 统一变成最大的 20.
|
|
772
1255
|
*
|
|
773
1256
|
* 如果是 Funcion,则使用自定义的方式去计算子 view 的 padding,这个函数中去修改所有的 views autoPadding 值
|
|
774
1257
|
*/
|
|
775
1258
|
readonly syncViewPadding?: boolean | SyncViewPaddingFn;
|
|
776
|
-
/**
|
|
1259
|
+
/**
|
|
1260
|
+
* @title 主题
|
|
1261
|
+
* @description 设置 view 实例主题
|
|
1262
|
+
*/
|
|
777
1263
|
readonly theme?: LooseObject | string;
|
|
778
1264
|
/**
|
|
779
|
-
* 图表组件、图形映射等相关的配置。
|
|
1265
|
+
* @title 图表组件、图形映射等相关的配置。
|
|
780
1266
|
*/
|
|
781
1267
|
readonly options?: Options;
|
|
782
|
-
/**
|
|
1268
|
+
/**
|
|
1269
|
+
* @title 是否可见
|
|
1270
|
+
*/
|
|
783
1271
|
readonly visible?: boolean;
|
|
784
1272
|
}
|
|
785
1273
|
/**
|
|
@@ -794,32 +1282,48 @@ export interface ComponentOption {
|
|
|
794
1282
|
readonly type: COMPONENT_TYPE;
|
|
795
1283
|
readonly extra?: any;
|
|
796
1284
|
}
|
|
797
|
-
/**
|
|
1285
|
+
/**
|
|
1286
|
+
* @title Legend marker 的配置结构
|
|
1287
|
+
*/
|
|
798
1288
|
export interface MarkerCfg extends LegendMarkerCfg {
|
|
799
|
-
/**
|
|
1289
|
+
/**
|
|
1290
|
+
* @title 配置图例 marker 的 symbol 形状。
|
|
1291
|
+
*/
|
|
800
1292
|
symbol?: Marker | MarkerCallback;
|
|
801
1293
|
style?: ShapeAttrs | ((style: ShapeAttrs) => ShapeAttrs);
|
|
802
1294
|
}
|
|
803
|
-
/**
|
|
1295
|
+
/**
|
|
1296
|
+
* @title Legend item 各个图例项的数据结构
|
|
1297
|
+
*/
|
|
804
1298
|
export interface LegendItem {
|
|
805
1299
|
/**
|
|
806
1300
|
* 唯一值,用于动画或者查找
|
|
807
1301
|
*/
|
|
808
1302
|
id?: string;
|
|
809
|
-
/**
|
|
1303
|
+
/**
|
|
1304
|
+
* @title 名称
|
|
1305
|
+
*/
|
|
810
1306
|
name: string;
|
|
811
|
-
/**
|
|
1307
|
+
/**
|
|
1308
|
+
* @title 值
|
|
1309
|
+
*/
|
|
812
1310
|
value: any;
|
|
813
|
-
/**
|
|
1311
|
+
/**
|
|
1312
|
+
* @title 图形标记
|
|
1313
|
+
*/
|
|
814
1314
|
marker?: MarkerCfg | ((name: string, index: number, item: {
|
|
815
1315
|
name: string;
|
|
816
1316
|
value: string;
|
|
817
1317
|
} & MarkerCfg) => MarkerCfg);
|
|
818
|
-
/**
|
|
1318
|
+
/**
|
|
1319
|
+
* @title 初始是否处于未激活状态
|
|
1320
|
+
*/
|
|
819
1321
|
unchecked?: boolean;
|
|
820
1322
|
}
|
|
821
1323
|
export interface G2LegendTitleCfg extends LegendTitleCfg {
|
|
822
|
-
/**
|
|
1324
|
+
/**
|
|
1325
|
+
* @title title 文本显示内容
|
|
1326
|
+
*/
|
|
823
1327
|
text?: string;
|
|
824
1328
|
}
|
|
825
1329
|
/**
|
|
@@ -827,16 +1331,19 @@ export interface G2LegendTitleCfg extends LegendTitleCfg {
|
|
|
827
1331
|
*/
|
|
828
1332
|
export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
829
1333
|
/**
|
|
830
|
-
*
|
|
1334
|
+
* @title 是否为自定义图例
|
|
1335
|
+
* @description 当该属性为 true 时,需要声明 items 属性。
|
|
831
1336
|
*/
|
|
832
1337
|
readonly custom?: boolean;
|
|
833
1338
|
/**
|
|
834
|
-
*
|
|
1339
|
+
* @title 布局
|
|
1340
|
+
* @description 布局方式: horizontal,vertical
|
|
835
1341
|
*/
|
|
836
1342
|
layout?: 'horizontal' | 'vertical';
|
|
837
1343
|
/**
|
|
838
|
-
*
|
|
839
|
-
*
|
|
1344
|
+
* @title 图例标题配置
|
|
1345
|
+
* @description 默认不展示。
|
|
1346
|
+
* @example
|
|
840
1347
|
* 属性结构如下:
|
|
841
1348
|
*
|
|
842
1349
|
* ```ts
|
|
@@ -846,12 +1353,12 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
846
1353
|
* }
|
|
847
1354
|
* ```
|
|
848
1355
|
*
|
|
849
|
-
*
|
|
1356
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L639|LegendTitleCfg
|
|
850
1357
|
*/
|
|
851
1358
|
title?: G2LegendTitleCfg;
|
|
852
1359
|
/**
|
|
853
|
-
* 背景框配置项。
|
|
854
|
-
*
|
|
1360
|
+
* @title 背景框配置项。
|
|
1361
|
+
* @example
|
|
855
1362
|
* 属性结构如下:
|
|
856
1363
|
*
|
|
857
1364
|
* ```ts
|
|
@@ -864,35 +1371,50 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
864
1371
|
* 详见 {@link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L652|LegendBackgroundCfg}
|
|
865
1372
|
*/
|
|
866
1373
|
background?: LegendBackgroundCfg;
|
|
867
|
-
/**
|
|
1374
|
+
/**
|
|
1375
|
+
* @title 图例的位置。
|
|
1376
|
+
*/
|
|
868
1377
|
position?: 'top' | 'top-left' | 'top-right' | 'right' | 'right-top' | 'right-bottom' | 'left' | 'left-top' | 'left-bottom' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
869
|
-
/**
|
|
1378
|
+
/**
|
|
1379
|
+
* @title 动画开关,默认关闭。
|
|
1380
|
+
*/
|
|
870
1381
|
animate?: boolean;
|
|
871
|
-
/**
|
|
1382
|
+
/**
|
|
1383
|
+
* @title 动画
|
|
1384
|
+
* @description 动画参数配置,当且仅当 `animate` 属性为 true,即动画开启时生效。
|
|
1385
|
+
*/
|
|
872
1386
|
animateOption?: ComponentAnimateOption;
|
|
873
1387
|
/**
|
|
874
|
-
*
|
|
1388
|
+
* @title 水平间距
|
|
1389
|
+
* @description **分类图例适用**,控制图例项水平方向的间距。
|
|
875
1390
|
*/
|
|
876
1391
|
itemSpacing?: number;
|
|
877
1392
|
/**
|
|
878
|
-
*
|
|
1393
|
+
* @title 垂直间距
|
|
1394
|
+
* @description **分类图例适用**,控制图例项垂直方向的间距。
|
|
879
1395
|
*/
|
|
880
1396
|
itemMarginBottom?: number;
|
|
881
1397
|
/**
|
|
1398
|
+
* @title 图例项的最大宽度
|
|
1399
|
+
* @description
|
|
882
1400
|
* **分类图例适用**,图例项的最大宽度,超出则自动缩略。
|
|
883
1401
|
* `maxItemWidth` 可以是像素值;
|
|
884
1402
|
* 也可以是相对值(取 0 到 1 范围的数值),代表占图表宽度的多少
|
|
885
1403
|
*/
|
|
886
1404
|
maxItemWidth?: number;
|
|
887
1405
|
/**
|
|
888
|
-
*
|
|
1406
|
+
* @title 图例项的宽度
|
|
1407
|
+
* @description **分类图例适用**,图例项的宽度, 默认为 null,自动计算。
|
|
889
1408
|
*/
|
|
890
1409
|
itemWidth?: number;
|
|
891
1410
|
/**
|
|
892
|
-
*
|
|
1411
|
+
* @title 图例项的高度
|
|
1412
|
+
* @description **分类图例适用**,图例的高度,默认为 null。
|
|
893
1413
|
*/
|
|
894
1414
|
itemHeight?: number;
|
|
895
1415
|
/**
|
|
1416
|
+
* @title 图例项 name
|
|
1417
|
+
* @description
|
|
896
1418
|
* **分类图例适用**,图例项 name 文本的配置。
|
|
897
1419
|
* 属性结构如下:
|
|
898
1420
|
*
|
|
@@ -904,10 +1426,12 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
904
1426
|
* }
|
|
905
1427
|
* ```
|
|
906
1428
|
*
|
|
907
|
-
*
|
|
1429
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L665|LegendItemNameCfg
|
|
908
1430
|
*/
|
|
909
1431
|
itemName?: LegendItemNameCfg;
|
|
910
1432
|
/**
|
|
1433
|
+
* @title 图例项 value
|
|
1434
|
+
* @description
|
|
911
1435
|
* **分类图例适用**,图例项 value 附加值的配置项。
|
|
912
1436
|
* 属性结构如下:
|
|
913
1437
|
*
|
|
@@ -919,65 +1443,80 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
919
1443
|
* }
|
|
920
1444
|
* ```
|
|
921
1445
|
*
|
|
922
|
-
*
|
|
1446
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L685|LegendItemValueCfg
|
|
923
1447
|
*/
|
|
924
1448
|
itemValue?: LegendItemValueCfg;
|
|
925
1449
|
/**
|
|
926
|
-
*
|
|
1450
|
+
* @title 最大宽度
|
|
1451
|
+
* @description **分类图例适用**,图例项最大宽度设置。
|
|
927
1452
|
*/
|
|
928
1453
|
maxWidth?: number;
|
|
929
1454
|
/**
|
|
930
|
-
*
|
|
1455
|
+
* @title 最大高度
|
|
1456
|
+
* @description **分类图例适用**,图例项最大高度设置。
|
|
931
1457
|
*/
|
|
932
1458
|
maxHeight?: number;
|
|
933
1459
|
/**
|
|
934
|
-
*
|
|
1460
|
+
* @title 最大宽度比例
|
|
1461
|
+
* @description **分类图例适用**,图例项最大宽度比例(以 view 的 bbox 宽度为参照,默认 0.25)。
|
|
935
1462
|
*/
|
|
936
1463
|
maxWidthRatio?: number;
|
|
937
1464
|
/**
|
|
938
|
-
*
|
|
1465
|
+
* @title 最大高度比例
|
|
1466
|
+
* @description **分类图例适用**,图例项最大高度比例(以 view 的 bbox 高度为参照,默认 0.25)。
|
|
939
1467
|
*/
|
|
940
1468
|
maxHeightRatio?: number;
|
|
941
1469
|
/**
|
|
942
|
-
*
|
|
1470
|
+
* @title 图例项的 marker
|
|
1471
|
+
* @description **分类图例适用**,图例项的 marker 图标的配置。
|
|
943
1472
|
*/
|
|
944
1473
|
marker?: MarkerCfg | ((name: string, index: number, item: {
|
|
945
1474
|
name: string;
|
|
946
1475
|
value: string;
|
|
947
1476
|
} & MarkerCfg) => MarkerCfg);
|
|
948
1477
|
/**
|
|
949
|
-
*
|
|
1478
|
+
* @title 是否进行分页
|
|
1479
|
+
* @description **适用于分类图例**,当图例项过多时是否进行分页。
|
|
950
1480
|
*/
|
|
951
1481
|
flipPage?: boolean;
|
|
952
1482
|
/**
|
|
953
|
-
*
|
|
1483
|
+
* @title 分页器的样式
|
|
1484
|
+
* @description **适用于分类图例**,图例分页器的样式设置。
|
|
954
1485
|
*/
|
|
955
1486
|
pageNavigator?: LegendPageNavigatorCfg;
|
|
956
1487
|
/**
|
|
957
|
-
*
|
|
1488
|
+
* @title 图例项
|
|
1489
|
+
* @description **分类图例适用**,用户自己配置图例项的内容。
|
|
958
1490
|
*/
|
|
959
1491
|
items?: LegendItem[];
|
|
960
1492
|
/**
|
|
961
|
-
*
|
|
1493
|
+
* @title 反选
|
|
1494
|
+
* @description **分类图里适用**,用来配置正反选功能
|
|
962
1495
|
*/
|
|
963
1496
|
radio?: LegendRadio;
|
|
964
1497
|
/**
|
|
965
|
-
*
|
|
1498
|
+
* @title 是否逆序
|
|
1499
|
+
* @description **分类图例适用**,是否将图例项逆序展示。
|
|
966
1500
|
*/
|
|
967
1501
|
reversed?: boolean;
|
|
968
1502
|
/**
|
|
969
|
-
*
|
|
1503
|
+
* @title 最小值
|
|
1504
|
+
* @description **连续图例适用**,选择范围的最小值。
|
|
970
1505
|
*/
|
|
971
1506
|
min?: number;
|
|
972
1507
|
/**
|
|
973
|
-
*
|
|
1508
|
+
* @title 最大
|
|
1509
|
+
* @description **连续图例适用**,选择范围的最大值。
|
|
974
1510
|
*/
|
|
975
1511
|
max?: number;
|
|
976
1512
|
/**
|
|
977
|
-
*
|
|
1513
|
+
* @title value
|
|
1514
|
+
* @description **连续图例适用**,选择的值。
|
|
978
1515
|
*/
|
|
979
1516
|
value?: number[];
|
|
980
1517
|
/**
|
|
1518
|
+
* @title 色块样式
|
|
1519
|
+
* @description
|
|
981
1520
|
* **连续图例适用**,选择范围的色块样式配置项。
|
|
982
1521
|
* 属性结构如下:
|
|
983
1522
|
*
|
|
@@ -987,10 +1526,12 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
987
1526
|
* }
|
|
988
1527
|
* ```
|
|
989
1528
|
*
|
|
990
|
-
*
|
|
1529
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L574|ContinueLegendTrackCfg
|
|
991
1530
|
*/
|
|
992
1531
|
track?: ContinueLegendTrackCfg;
|
|
993
1532
|
/**
|
|
1533
|
+
* @title 滑轨(背景
|
|
1534
|
+
* @description
|
|
994
1535
|
* **连续图例适用**,图例滑轨(背景)的样式配置项。
|
|
995
1536
|
* 属性结构如下:
|
|
996
1537
|
*
|
|
@@ -1003,10 +1544,12 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
1003
1544
|
* }
|
|
1004
1545
|
* ```
|
|
1005
1546
|
*
|
|
1006
|
-
*
|
|
1547
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L595|ContinueLegendRailCfg
|
|
1007
1548
|
*/
|
|
1008
1549
|
rail?: ContinueLegendRailCfg;
|
|
1009
1550
|
/**
|
|
1551
|
+
* @title 文本
|
|
1552
|
+
* @description
|
|
1010
1553
|
* **连续图例适用**,文本的配置项。
|
|
1011
1554
|
* 属性结构如下:
|
|
1012
1555
|
*
|
|
@@ -1021,11 +1564,12 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
1021
1564
|
* style?: ShapeAttrs; // 文本样式
|
|
1022
1565
|
* }
|
|
1023
1566
|
* ```
|
|
1024
|
-
*
|
|
1025
|
-
* 详见 {@link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L618|ContinueLegendLabelCfg}
|
|
1567
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L618|ContinueLegendLabelCfg
|
|
1026
1568
|
*/
|
|
1027
1569
|
label?: ContinueLegendLabelCfg;
|
|
1028
1570
|
/**
|
|
1571
|
+
* @title 滑块
|
|
1572
|
+
* @description
|
|
1029
1573
|
* **连续图例适用**,滑块的配置项。
|
|
1030
1574
|
* 属性结构如下:
|
|
1031
1575
|
*
|
|
@@ -1036,18 +1580,25 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
1036
1580
|
* }
|
|
1037
1581
|
* ```
|
|
1038
1582
|
*
|
|
1039
|
-
*
|
|
1583
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L582|ContinueLegendTrackCfg
|
|
1040
1584
|
*/
|
|
1041
1585
|
handler?: ContinueLegendHandlerCfg;
|
|
1042
1586
|
/**
|
|
1043
|
-
*
|
|
1587
|
+
* @title 是否可滑动
|
|
1588
|
+
* @description **连续图例适用**,滑块是否可以滑动。
|
|
1044
1589
|
*/
|
|
1045
1590
|
slidable?: boolean;
|
|
1046
|
-
/**
|
|
1591
|
+
/**
|
|
1592
|
+
* @title 图例 x 方向的偏移。
|
|
1593
|
+
*/
|
|
1047
1594
|
offsetX?: number;
|
|
1048
|
-
/**
|
|
1595
|
+
/**
|
|
1596
|
+
* @title 图例 y 方向的偏移。
|
|
1597
|
+
*/
|
|
1049
1598
|
offsetY?: number;
|
|
1050
|
-
/**
|
|
1599
|
+
/**
|
|
1600
|
+
* @title 图例在四个方向的偏移量
|
|
1601
|
+
*/
|
|
1051
1602
|
padding?: number[];
|
|
1052
1603
|
/**
|
|
1053
1604
|
* 图例高亮状态,false 表示默认置灰,无或 true 表示高亮
|
|
@@ -1060,7 +1611,9 @@ export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
|
1060
1611
|
* Tooltip Crosshairs 的文本数据结构。
|
|
1061
1612
|
*/
|
|
1062
1613
|
export interface TooltipCrosshairsText extends CrosshairTextCfg {
|
|
1063
|
-
/**
|
|
1614
|
+
/**
|
|
1615
|
+
* @title crosshairs 文本内容
|
|
1616
|
+
*/
|
|
1064
1617
|
content?: string;
|
|
1065
1618
|
}
|
|
1066
1619
|
/**
|
|
@@ -1072,9 +1625,13 @@ export interface TooltipCrosshairsText extends CrosshairTextCfg {
|
|
|
1072
1625
|
* @returns 返回当前 crosshairs 对应的辅助线文本配置
|
|
1073
1626
|
*/
|
|
1074
1627
|
export declare type TooltipCrosshairsTextCallback = (type: string, defaultContent: any, items: any[], currentPoint: Point) => TooltipCrosshairsText;
|
|
1075
|
-
/**
|
|
1628
|
+
/**
|
|
1629
|
+
* @title Tooltip crosshairs 配置结构
|
|
1630
|
+
*/
|
|
1076
1631
|
export interface TooltipCrosshairs {
|
|
1077
1632
|
/**
|
|
1633
|
+
* @title 类型
|
|
1634
|
+
* @description
|
|
1078
1635
|
* crosshairs 的类型: `x` 表示 x 轴上的辅助线,`y` 表示 y 轴上的辅助项。
|
|
1079
1636
|
* 以下是在不同坐标系下,crosshairs 各个类型的表现:
|
|
1080
1637
|
*
|
|
@@ -1085,7 +1642,8 @@ export interface TooltipCrosshairs {
|
|
|
1085
1642
|
*/
|
|
1086
1643
|
type?: 'x' | 'y' | 'xy';
|
|
1087
1644
|
/**
|
|
1088
|
-
* 辅助线的样式配置。
|
|
1645
|
+
* @title 辅助线的样式配置。
|
|
1646
|
+
* @description
|
|
1089
1647
|
* 属性结构如下:
|
|
1090
1648
|
*
|
|
1091
1649
|
* ```ts
|
|
@@ -1094,15 +1652,17 @@ export interface TooltipCrosshairs {
|
|
|
1094
1652
|
* }
|
|
1095
1653
|
* ```
|
|
1096
1654
|
*
|
|
1097
|
-
*
|
|
1655
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L1177|CrosshairLineCfg
|
|
1098
1656
|
*/
|
|
1099
1657
|
line?: CrosshairLineCfg;
|
|
1100
1658
|
/**
|
|
1101
|
-
*
|
|
1659
|
+
* @title 文本
|
|
1660
|
+
* @description 辅助线文本配置,支持回调。
|
|
1102
1661
|
*/
|
|
1103
1662
|
text?: TooltipCrosshairsText | TooltipCrosshairsTextCallback;
|
|
1104
1663
|
/**
|
|
1105
|
-
* 辅助线文本背景配置。
|
|
1664
|
+
* @title 辅助线文本背景配置。
|
|
1665
|
+
* @description
|
|
1106
1666
|
* 属性结构如下:
|
|
1107
1667
|
*
|
|
1108
1668
|
* ```ts
|
|
@@ -1112,86 +1672,160 @@ export interface TooltipCrosshairs {
|
|
|
1112
1672
|
* }
|
|
1113
1673
|
* ```
|
|
1114
1674
|
*
|
|
1115
|
-
*
|
|
1675
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L1185|CrosshairTextBackgroundCfg
|
|
1116
1676
|
*/
|
|
1117
1677
|
textBackground?: CrosshairTextBackgroundCfg;
|
|
1118
|
-
/**
|
|
1678
|
+
/**
|
|
1679
|
+
* @title 辅助线是否跟随鼠标移动
|
|
1680
|
+
* @description 即定位到数据点
|
|
1681
|
+
* @default false
|
|
1682
|
+
*/
|
|
1119
1683
|
follow?: boolean;
|
|
1120
1684
|
}
|
|
1121
1685
|
export declare type TooltipTitle = string | ((title: string, datum: Datum) => string);
|
|
1122
1686
|
export declare type TooltipItem = {
|
|
1123
|
-
/**
|
|
1687
|
+
/**
|
|
1688
|
+
* @title 原始数据
|
|
1689
|
+
*/
|
|
1124
1690
|
readonly data: Datum;
|
|
1125
|
-
/**
|
|
1691
|
+
/**
|
|
1692
|
+
* @title 映射之后的数据
|
|
1693
|
+
*/
|
|
1126
1694
|
readonly mappingData: Datum;
|
|
1127
|
-
/**
|
|
1695
|
+
/**
|
|
1696
|
+
* @title tooltip item 中名称
|
|
1697
|
+
*/
|
|
1128
1698
|
readonly name: string;
|
|
1129
|
-
/**
|
|
1130
|
-
|
|
1131
|
-
|
|
1699
|
+
/**
|
|
1700
|
+
* @title tooltip item 中值
|
|
1701
|
+
*/
|
|
1702
|
+
readonly value: string | number;
|
|
1703
|
+
/**
|
|
1704
|
+
* @title tooltip item 中颜色
|
|
1705
|
+
*/
|
|
1132
1706
|
readonly color: string;
|
|
1133
|
-
/**
|
|
1707
|
+
/**
|
|
1708
|
+
* @title tooltip item 中图标类型
|
|
1709
|
+
*/
|
|
1134
1710
|
readonly marker: string;
|
|
1135
1711
|
};
|
|
1136
|
-
/**
|
|
1712
|
+
/**
|
|
1713
|
+
* @title chart.tooltip() 接口配置属性
|
|
1714
|
+
*/
|
|
1137
1715
|
export interface TooltipCfg {
|
|
1138
1716
|
/**
|
|
1139
|
-
* 设置 tooltip 内容框是否跟随鼠标移动。
|
|
1140
|
-
* 默认为 true,跟随鼠标移动,false 则固定位置不随鼠标移动。
|
|
1717
|
+
* @title 设置 tooltip 内容框是否跟随鼠标移动。
|
|
1718
|
+
* @description 默认为 true,跟随鼠标移动,false 则固定位置不随鼠标移动。
|
|
1719
|
+
* @default true
|
|
1141
1720
|
*/
|
|
1142
1721
|
follow?: boolean;
|
|
1143
|
-
/**
|
|
1722
|
+
/**
|
|
1723
|
+
* @title tooltip 是否允许鼠标滑入
|
|
1724
|
+
* @default false
|
|
1725
|
+
*/
|
|
1144
1726
|
enterable?: boolean;
|
|
1145
|
-
/**
|
|
1727
|
+
/**
|
|
1728
|
+
* @title tooltip 显示延迟(ms)
|
|
1729
|
+
* @description 默认为 16ms,建议在 enterable = true 的时候才设置
|
|
1730
|
+
* @default "16ms"
|
|
1731
|
+
*/
|
|
1146
1732
|
showDelay?: number;
|
|
1147
|
-
/**
|
|
1733
|
+
/**
|
|
1734
|
+
* @title 是否展示 tooltip 标题。
|
|
1735
|
+
*/
|
|
1148
1736
|
showTitle?: boolean;
|
|
1149
1737
|
/**
|
|
1738
|
+
* @title 标题
|
|
1739
|
+
* @description
|
|
1150
1740
|
* 设置 tooltip 的标题内容:如果值为数据字段名,则会展示数据中对应该字段的数值,如果数据中不存在该字段,则直接展示 title 值。
|
|
1151
1741
|
* 同时支持传入方法,回调的方式返回字符串
|
|
1152
1742
|
*/
|
|
1153
1743
|
title?: TooltipTitle;
|
|
1154
|
-
/**
|
|
1744
|
+
/**
|
|
1745
|
+
* @title 设置 tooltip 的固定展示位置,相对于数据点。
|
|
1746
|
+
*/
|
|
1155
1747
|
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
1156
|
-
/**
|
|
1748
|
+
/**
|
|
1749
|
+
* @title 是否合并当前点对应的所有数据
|
|
1750
|
+
* @description true 表示合并当前点对应的所有数据并展示,false 表示只展示离当前点最逼近的数据内容。
|
|
1751
|
+
*/
|
|
1157
1752
|
shared?: boolean;
|
|
1158
|
-
/**
|
|
1753
|
+
/**
|
|
1754
|
+
* @title 是否展示 crosshairs。
|
|
1755
|
+
*/
|
|
1159
1756
|
showCrosshairs?: boolean;
|
|
1160
|
-
/**
|
|
1757
|
+
/**
|
|
1758
|
+
* @title 交叉线
|
|
1759
|
+
* @description 配置 tooltip 的 crosshairs,当且仅当 `showCrosshairs` 为 true 时生效。
|
|
1760
|
+
*/
|
|
1161
1761
|
crosshairs?: TooltipCrosshairs;
|
|
1162
|
-
/**
|
|
1762
|
+
/**
|
|
1763
|
+
* @title 是否渲染 tooltipMarkers。
|
|
1764
|
+
*/
|
|
1163
1765
|
showMarkers?: boolean;
|
|
1164
|
-
/**
|
|
1766
|
+
/**
|
|
1767
|
+
* @title tooltipMarker 的样式配置。
|
|
1768
|
+
*/
|
|
1165
1769
|
marker?: object;
|
|
1166
|
-
/**
|
|
1770
|
+
/**
|
|
1771
|
+
* @title 是否展示 tooltip 内容框
|
|
1772
|
+
*/
|
|
1167
1773
|
showContent?: boolean | ((datum: Datum) => boolean);
|
|
1168
|
-
/**
|
|
1774
|
+
/**
|
|
1775
|
+
* @title 自定义 tooltip 的容器。
|
|
1776
|
+
*/
|
|
1169
1777
|
container?: string | HTMLElement;
|
|
1170
|
-
/**
|
|
1778
|
+
/**
|
|
1779
|
+
* @title 图例容器的模板
|
|
1780
|
+
* @description 用于指定图例容器的模板,自定义模板时必须包含各个 dom 节点的 class。
|
|
1781
|
+
*/
|
|
1171
1782
|
containerTpl?: string;
|
|
1172
|
-
/**
|
|
1783
|
+
/**
|
|
1784
|
+
* @title 默认模板
|
|
1785
|
+
* @description 每项记录的默认模板,自定义模板时必须包含各个 dom 节点的 class。
|
|
1786
|
+
*/
|
|
1173
1787
|
itemTpl?: string;
|
|
1174
|
-
/**
|
|
1788
|
+
/**
|
|
1789
|
+
* @title dom 样式
|
|
1790
|
+
* @description 传入各个 dom 的样式。
|
|
1791
|
+
*/
|
|
1175
1792
|
domStyles?: TooltipDomStyles;
|
|
1176
|
-
/**
|
|
1793
|
+
/**
|
|
1794
|
+
* @title tooltip 偏移量。
|
|
1795
|
+
*/
|
|
1177
1796
|
offset?: number;
|
|
1178
|
-
/**
|
|
1797
|
+
/**
|
|
1798
|
+
* @title 是否将 tooltip items 逆序
|
|
1799
|
+
*/
|
|
1179
1800
|
reversed?: boolean;
|
|
1180
|
-
/**
|
|
1801
|
+
/**
|
|
1802
|
+
* @title 是否显示空值的 tooltip 项目
|
|
1803
|
+
*/
|
|
1181
1804
|
showNil?: boolean;
|
|
1182
|
-
/**
|
|
1805
|
+
/**
|
|
1806
|
+
* @description 在 tooltip 渲染之前,对最终的 items 进行自定义处理(比如排序、过滤、格式化等)
|
|
1807
|
+
*/
|
|
1183
1808
|
customItems?: (originalItems: TooltipItem[]) => TooltipItem[];
|
|
1184
|
-
/**
|
|
1809
|
+
/**
|
|
1810
|
+
* @title 自定义模板
|
|
1811
|
+
*/
|
|
1185
1812
|
customContent?: (title: string, data: any[]) => string | HTMLElement;
|
|
1186
1813
|
}
|
|
1187
|
-
/**
|
|
1814
|
+
/**
|
|
1815
|
+
* @title 坐标系配置
|
|
1816
|
+
*/
|
|
1188
1817
|
export interface CoordinateOption {
|
|
1189
|
-
/**
|
|
1818
|
+
/**
|
|
1819
|
+
* @title 坐标系类型
|
|
1820
|
+
*/
|
|
1190
1821
|
type?: 'polar' | 'theta' | 'rect' | 'cartesian' | 'helix';
|
|
1191
|
-
/**
|
|
1822
|
+
/**
|
|
1823
|
+
* @title 坐标系配置项,目前常用于极坐标。
|
|
1824
|
+
*/
|
|
1192
1825
|
cfg?: CoordinateCfg;
|
|
1193
1826
|
/**
|
|
1194
|
-
*
|
|
1827
|
+
* @title 坐标系变换
|
|
1828
|
+
* @description
|
|
1195
1829
|
* 1. rotate 表示旋转,使用弧度制。
|
|
1196
1830
|
* 2. scale 表示沿着 x 和 y 方向的缩放比率。
|
|
1197
1831
|
* 3. reflect 表示沿 x 方向镜像或者沿 y 轴方向映射。
|
|
@@ -1199,29 +1833,38 @@ export interface CoordinateOption {
|
|
|
1199
1833
|
*/
|
|
1200
1834
|
actions?: CoordinateActions[];
|
|
1201
1835
|
}
|
|
1202
|
-
/**
|
|
1836
|
+
/**
|
|
1837
|
+
* @title 极坐标系支持的配置属性
|
|
1838
|
+
*/
|
|
1203
1839
|
export interface CoordinateCfg {
|
|
1204
1840
|
/**
|
|
1205
|
-
*
|
|
1841
|
+
* @title 起始弧度
|
|
1842
|
+
* @description 用于极坐标,配置起始弧度。
|
|
1206
1843
|
*/
|
|
1207
1844
|
startAngle?: number;
|
|
1208
1845
|
/**
|
|
1209
|
-
*
|
|
1846
|
+
* @title 结束弧度
|
|
1847
|
+
* @description 用于极坐标,配置结束弧度。
|
|
1210
1848
|
*/
|
|
1211
1849
|
endAngle?: number;
|
|
1212
1850
|
/**
|
|
1213
|
-
*
|
|
1851
|
+
* @title 半径
|
|
1852
|
+
* @description 用于极坐标,配置极坐标半径,0 - 1 范围的数值。
|
|
1214
1853
|
*/
|
|
1215
1854
|
radius?: number;
|
|
1216
1855
|
/**
|
|
1217
|
-
*
|
|
1856
|
+
* @title 内半径
|
|
1857
|
+
* @description 用于极坐标,极坐标内半径,0 -1 范围的数值。
|
|
1218
1858
|
*/
|
|
1219
1859
|
innerRadius?: number;
|
|
1220
1860
|
}
|
|
1221
|
-
/**
|
|
1861
|
+
/**
|
|
1862
|
+
* @title 坐标轴网格线的配置属性
|
|
1863
|
+
*/
|
|
1222
1864
|
export interface AxisGridCfg {
|
|
1223
1865
|
/**
|
|
1224
|
-
*
|
|
1866
|
+
* @title 线的样式
|
|
1867
|
+
* @description
|
|
1225
1868
|
* 属性结构如下:
|
|
1226
1869
|
*
|
|
1227
1870
|
* ```ts
|
|
@@ -1231,34 +1874,42 @@ export interface AxisGridCfg {
|
|
|
1231
1874
|
* }
|
|
1232
1875
|
* ```
|
|
1233
1876
|
*
|
|
1234
|
-
*
|
|
1877
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L407|GridLineCfg
|
|
1235
1878
|
*/
|
|
1236
1879
|
line?: GridLineCfg;
|
|
1237
1880
|
/**
|
|
1238
|
-
* 两个栅格线间的填充色。
|
|
1881
|
+
* @title 两个栅格线间的填充色。
|
|
1239
1882
|
*/
|
|
1240
1883
|
alternateColor?: string | string[];
|
|
1241
1884
|
/**
|
|
1242
|
-
*
|
|
1885
|
+
* @title 是否关闭
|
|
1886
|
+
* @description 对于 circle 是否关闭 grid。
|
|
1243
1887
|
*/
|
|
1244
1888
|
closed?: boolean;
|
|
1245
1889
|
/**
|
|
1246
|
-
*
|
|
1247
|
-
*
|
|
1890
|
+
* @title 是否同刻度线对齐
|
|
1891
|
+
* @description 如果值为 false,则会显示在两个刻度中间。
|
|
1892
|
+
* @see 
|
|
1248
1893
|
*/
|
|
1249
1894
|
alignTick?: boolean;
|
|
1250
1895
|
}
|
|
1251
|
-
/**
|
|
1896
|
+
/**
|
|
1897
|
+
* @title 坐标轴配置属性,chart.axis()
|
|
1898
|
+
*/
|
|
1252
1899
|
export interface AxisCfg {
|
|
1253
1900
|
/**
|
|
1254
|
-
*
|
|
1901
|
+
* @title 是否渲染在画布顶层
|
|
1902
|
+
* @description 防止部分图形中,需要将 axis 显示在图形上面,避免被图形遮挡
|
|
1255
1903
|
*/
|
|
1256
1904
|
top?: boolean;
|
|
1257
1905
|
/**
|
|
1258
|
-
*
|
|
1906
|
+
* @title 坐标轴的位置
|
|
1907
|
+
* @description 适用于直角坐标系,设置坐标轴的位置。
|
|
1259
1908
|
*/
|
|
1260
1909
|
position?: 'top' | 'bottom' | 'right' | 'left';
|
|
1261
1910
|
/**
|
|
1911
|
+
* @title 轴线
|
|
1912
|
+
* @description
|
|
1262
1913
|
* 坐标轴线的配置项,null 表示不展示。
|
|
1263
1914
|
* 属性结构如下:
|
|
1264
1915
|
*
|
|
@@ -1268,10 +1919,12 @@ export interface AxisCfg {
|
|
|
1268
1919
|
* }
|
|
1269
1920
|
* ```
|
|
1270
1921
|
*
|
|
1271
|
-
*
|
|
1922
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L91|AxisLineCfg
|
|
1272
1923
|
*/
|
|
1273
1924
|
line?: AxisLineCfg | null;
|
|
1274
1925
|
/**
|
|
1926
|
+
* @title 刻度线线
|
|
1927
|
+
* @description
|
|
1275
1928
|
* 坐标轴刻度线线的配置项,null 表示不展示。
|
|
1276
1929
|
* 属性结构如下:
|
|
1277
1930
|
*
|
|
@@ -1283,10 +1936,12 @@ export interface AxisCfg {
|
|
|
1283
1936
|
* }
|
|
1284
1937
|
* ```
|
|
1285
1938
|
*
|
|
1286
|
-
*
|
|
1939
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L103|AxisTickLineCfg
|
|
1287
1940
|
*/
|
|
1288
1941
|
tickLine?: AxisTickLineCfg | null;
|
|
1289
1942
|
/**
|
|
1943
|
+
* @title 子刻度线
|
|
1944
|
+
* @description
|
|
1290
1945
|
* 坐标轴子刻度线的配置项,null 表示不展示。
|
|
1291
1946
|
* 属性结构如下:
|
|
1292
1947
|
*
|
|
@@ -1298,10 +1953,12 @@ export interface AxisCfg {
|
|
|
1298
1953
|
* }
|
|
1299
1954
|
* ```
|
|
1300
1955
|
*
|
|
1301
|
-
*
|
|
1956
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L169|AxisSubTickLineCfg
|
|
1302
1957
|
*/
|
|
1303
1958
|
subTickLine?: AxisSubTickLineCfg | null;
|
|
1304
1959
|
/**
|
|
1960
|
+
* @title 标题
|
|
1961
|
+
* @description
|
|
1305
1962
|
* 标题的配置项,null 表示不展示。
|
|
1306
1963
|
* 属性结构如下:
|
|
1307
1964
|
*
|
|
@@ -1313,10 +1970,12 @@ export interface AxisCfg {
|
|
|
1313
1970
|
* }
|
|
1314
1971
|
* ```
|
|
1315
1972
|
*
|
|
1316
|
-
*
|
|
1973
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L191|AxisTitleCfg
|
|
1317
1974
|
*/
|
|
1318
1975
|
title?: AxisTitleCfg | null;
|
|
1319
1976
|
/**
|
|
1977
|
+
* @title 文本标签
|
|
1978
|
+
* @description
|
|
1320
1979
|
* 文本标签的配置项,null 表示不展示。
|
|
1321
1980
|
* 属性结构如下:
|
|
1322
1981
|
*
|
|
@@ -1339,18 +1998,31 @@ export interface AxisCfg {
|
|
|
1339
1998
|
* }
|
|
1340
1999
|
* ```
|
|
1341
2000
|
*
|
|
1342
|
-
*
|
|
2001
|
+
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L127|AxisLabelCfg
|
|
1343
2002
|
*/
|
|
1344
2003
|
label?: AxisLabelCfg | null;
|
|
1345
|
-
/**
|
|
2004
|
+
/**
|
|
2005
|
+
* @title 网格线
|
|
2006
|
+
* @description 坐标轴网格线的配置项,null 表示不展示。
|
|
2007
|
+
*/
|
|
1346
2008
|
grid?: AxisGridCfg | null;
|
|
1347
|
-
/**
|
|
2009
|
+
/**
|
|
2010
|
+
* @title 动画
|
|
2011
|
+
* @default true
|
|
2012
|
+
*/
|
|
1348
2013
|
animate?: boolean;
|
|
1349
|
-
/**
|
|
2014
|
+
/**
|
|
2015
|
+
* @title 动画参数
|
|
2016
|
+
*/
|
|
1350
2017
|
animateOption?: ComponentAnimateOption;
|
|
1351
|
-
/**
|
|
2018
|
+
/**
|
|
2019
|
+
* @title 坐标轴 label 的方向
|
|
2020
|
+
* @description 标记坐标轴 label 的方向,左侧为 1,右侧为 -1。
|
|
2021
|
+
*/
|
|
1352
2022
|
verticalFactor?: number;
|
|
1353
2023
|
/**
|
|
2024
|
+
* @title 坐标轴垂直方向的最大限制长度
|
|
2025
|
+
* @description
|
|
1354
2026
|
* 配置坐标轴垂直方向的最大限制长度,对文本自适应有很大影响。
|
|
1355
2027
|
* 1. 可以直接设置像素值,如 100;
|
|
1356
2028
|
* 2. 也可设置绝对值,如 0.2,如果是 x 轴,则相对于图表的高度,如果是 y 轴,则相对于图表的宽度
|
|
@@ -1360,38 +2032,64 @@ export interface AxisCfg {
|
|
|
1360
2032
|
verticalLimitLength?: number;
|
|
1361
2033
|
}
|
|
1362
2034
|
export interface SliderCfg {
|
|
1363
|
-
/**
|
|
2035
|
+
/**
|
|
2036
|
+
* @title slider 高度
|
|
2037
|
+
*/
|
|
1364
2038
|
readonly height?: number;
|
|
1365
|
-
/**
|
|
2039
|
+
/**
|
|
2040
|
+
* @title 滑块背景区域配置
|
|
2041
|
+
*/
|
|
1366
2042
|
readonly trendCfg?: Omit<TrendCfg, 'data'> & {
|
|
1367
2043
|
data?: number[];
|
|
1368
2044
|
};
|
|
1369
|
-
/**
|
|
2045
|
+
/**
|
|
2046
|
+
* @title 滑块背景样式
|
|
2047
|
+
*/
|
|
1370
2048
|
readonly backgroundStyle?: any;
|
|
1371
|
-
/**
|
|
2049
|
+
/**
|
|
2050
|
+
* @title 滑块前景样式
|
|
2051
|
+
*/
|
|
1372
2052
|
readonly foregroundStyle?: any;
|
|
1373
|
-
/**
|
|
2053
|
+
/**
|
|
2054
|
+
* @title 滑块两个操作块样式
|
|
2055
|
+
*/
|
|
1374
2056
|
readonly handlerStyle?: any;
|
|
1375
|
-
/**
|
|
2057
|
+
/**
|
|
2058
|
+
* @title 文本样式
|
|
2059
|
+
*/
|
|
1376
2060
|
readonly textStyle?: any;
|
|
1377
|
-
/**
|
|
2061
|
+
/**
|
|
2062
|
+
* @title 允许滑动位置的最小值
|
|
2063
|
+
*/
|
|
1378
2064
|
readonly minLimit?: number;
|
|
1379
|
-
/**
|
|
2065
|
+
/**
|
|
2066
|
+
* @title 允许滑动位置的最大值
|
|
2067
|
+
*/
|
|
1380
2068
|
readonly maxLimit?: number;
|
|
1381
|
-
/**
|
|
2069
|
+
/**
|
|
2070
|
+
* @title 滑块初始化的起始位置
|
|
2071
|
+
*/
|
|
1382
2072
|
readonly start?: number;
|
|
1383
|
-
/**
|
|
2073
|
+
/**
|
|
2074
|
+
* @title 滑块初始化的结束位置
|
|
2075
|
+
*/
|
|
1384
2076
|
readonly end?: number;
|
|
1385
|
-
/**
|
|
2077
|
+
/**
|
|
2078
|
+
* @title 布局的 padding
|
|
2079
|
+
*/
|
|
1386
2080
|
readonly padding?: number[];
|
|
1387
|
-
/**
|
|
2081
|
+
/**
|
|
2082
|
+
* @title 滑块文本格式化函数
|
|
2083
|
+
*/
|
|
1388
2084
|
formatter?: (val: any, datum: Datum, idx: number) => any;
|
|
1389
2085
|
}
|
|
1390
2086
|
/**
|
|
1391
2087
|
* 事件 payload
|
|
1392
2088
|
*/
|
|
1393
2089
|
export declare type EventPayload = LooseObject & {
|
|
1394
|
-
/**
|
|
2090
|
+
/**
|
|
2091
|
+
* @title 触发事件的来源
|
|
2092
|
+
*/
|
|
1395
2093
|
source?: string;
|
|
1396
2094
|
};
|
|
1397
2095
|
export declare type EventCallback = (event: LooseObject) => void;
|
|
@@ -1406,90 +2104,169 @@ export interface EventCfg {
|
|
|
1406
2104
|
* 缩略轴的配置项
|
|
1407
2105
|
*/
|
|
1408
2106
|
export declare type SliderOption = SliderCfg | boolean;
|
|
1409
|
-
/**
|
|
2107
|
+
/**
|
|
2108
|
+
* @title 滚动条组件配置项
|
|
2109
|
+
*/
|
|
1410
2110
|
export interface ScrollbarCfg {
|
|
1411
|
-
/**
|
|
2111
|
+
/**
|
|
2112
|
+
* @title 滚动条类型,默认 horizontal
|
|
2113
|
+
*/
|
|
1412
2114
|
type?: 'horizontal' | 'vertical';
|
|
1413
|
-
/**
|
|
2115
|
+
/**
|
|
2116
|
+
* @title 宽度,在 vertical 下生效
|
|
2117
|
+
*/
|
|
1414
2118
|
width?: number;
|
|
1415
|
-
/**
|
|
2119
|
+
/**
|
|
2120
|
+
* @title 高度,在 horizontal 下生效
|
|
2121
|
+
*/
|
|
1416
2122
|
height?: number;
|
|
1417
|
-
/**
|
|
2123
|
+
/**
|
|
2124
|
+
* @title 可选 padding
|
|
2125
|
+
*/
|
|
1418
2126
|
padding?: Padding;
|
|
1419
|
-
/**
|
|
2127
|
+
/**
|
|
2128
|
+
* @title 对应水平滚动条,为 X 轴每个分类字段的宽度;对于垂直滚动条,为 X 轴每个分类字段的高度
|
|
2129
|
+
*/
|
|
1420
2130
|
categorySize?: number;
|
|
1421
|
-
/**
|
|
2131
|
+
/**
|
|
2132
|
+
* @title 滚动的时候是否开启动画,默认跟随 view 中 animate 配置
|
|
2133
|
+
*/
|
|
1422
2134
|
animate?: boolean;
|
|
1423
|
-
/**
|
|
2135
|
+
/**
|
|
2136
|
+
* @title 主题样式设置, 暂不提供 hover 高亮滑块样式配置
|
|
2137
|
+
*/
|
|
1424
2138
|
style?: {
|
|
1425
|
-
/**
|
|
2139
|
+
/**
|
|
2140
|
+
* @title 滑道颜色
|
|
2141
|
+
*/
|
|
1426
2142
|
trackColor?: string;
|
|
1427
|
-
/**
|
|
2143
|
+
/**
|
|
2144
|
+
* @title 滑块颜色
|
|
2145
|
+
*/
|
|
1428
2146
|
thumbColor?: string;
|
|
1429
|
-
/**
|
|
2147
|
+
/**
|
|
2148
|
+
* @title 滑块高亮样式,对应主题的 hover.style.thumbColor
|
|
2149
|
+
*/
|
|
1430
2150
|
thumbHighlightColor?: string;
|
|
2151
|
+
/**
|
|
2152
|
+
* @title 是否圆角
|
|
2153
|
+
*/
|
|
1431
2154
|
lineCap?: string;
|
|
1432
2155
|
};
|
|
1433
2156
|
}
|
|
1434
|
-
/**
|
|
2157
|
+
/**
|
|
2158
|
+
* @title 滚动条配置
|
|
2159
|
+
*/
|
|
1435
2160
|
export declare type ScrollbarOption = ScrollbarCfg | boolean;
|
|
1436
|
-
/**
|
|
2161
|
+
/**
|
|
2162
|
+
* @title 配置项声明式
|
|
2163
|
+
*/
|
|
1437
2164
|
export interface Options {
|
|
1438
|
-
/**
|
|
2165
|
+
/**
|
|
2166
|
+
* @title 数据源配置。
|
|
2167
|
+
*/
|
|
1439
2168
|
readonly data?: Data;
|
|
1440
|
-
/**
|
|
2169
|
+
/**
|
|
2170
|
+
* @title 设置数据过滤条件,以 data 中的数据属性为 key。
|
|
2171
|
+
*/
|
|
1441
2172
|
readonly filters?: Record<string, FilterCondition>;
|
|
1442
|
-
/**
|
|
2173
|
+
/**
|
|
2174
|
+
* @title 坐标轴配置,以 data 中的数据属性为 key。
|
|
2175
|
+
*/
|
|
1443
2176
|
readonly axes?: Record<string, AxisOption> | boolean;
|
|
1444
|
-
/**
|
|
2177
|
+
/**
|
|
2178
|
+
* @title 图例配置,以 data 中的数据属性为 key。
|
|
2179
|
+
*/
|
|
1445
2180
|
readonly legends?: AllLegendsOptions;
|
|
1446
|
-
/**
|
|
2181
|
+
/**
|
|
2182
|
+
* @title 列定义配置,用于配置数值的类型等,以 data 中的数据属性为 key。
|
|
2183
|
+
*/
|
|
1447
2184
|
readonly scales?: Record<string, ScaleOption>;
|
|
1448
|
-
/**
|
|
2185
|
+
/**
|
|
2186
|
+
* @title Tooltip 配置。
|
|
2187
|
+
*/
|
|
1449
2188
|
readonly tooltip?: TooltipOption;
|
|
1450
|
-
/**
|
|
2189
|
+
/**
|
|
2190
|
+
* @title 坐标系配置。
|
|
2191
|
+
*/
|
|
1451
2192
|
readonly coordinate?: CoordinateOption;
|
|
1452
|
-
/**
|
|
2193
|
+
/**
|
|
2194
|
+
* @title 静态辅助元素声明。
|
|
2195
|
+
*/
|
|
1453
2196
|
readonly annotations?: (ArcOption | RegionFilterOption | ImageOption | LineOption | TextOption | RegionOption | DataMarkerOption | DataRegionOption)[];
|
|
1454
|
-
/**
|
|
2197
|
+
/**
|
|
2198
|
+
* @title Geometry 配置
|
|
2199
|
+
*/
|
|
1455
2200
|
readonly geometries?: GeometryOption[];
|
|
1456
|
-
/**
|
|
2201
|
+
/**
|
|
2202
|
+
* @title 开启/关闭动画,默认开启
|
|
2203
|
+
*/
|
|
1457
2204
|
readonly animate?: boolean;
|
|
1458
|
-
/**
|
|
2205
|
+
/**
|
|
2206
|
+
* @title 配置需要使用的交互行为
|
|
2207
|
+
*/
|
|
1459
2208
|
readonly interactions?: InteractionOption[];
|
|
1460
|
-
/**
|
|
2209
|
+
/**
|
|
2210
|
+
* @title 事件配置
|
|
2211
|
+
*/
|
|
1461
2212
|
readonly events?: EventCfg;
|
|
1462
|
-
/**
|
|
2213
|
+
/**
|
|
2214
|
+
* @title 缩略轴的配置
|
|
2215
|
+
*/
|
|
1463
2216
|
readonly slider?: SliderOption;
|
|
1464
|
-
/**
|
|
2217
|
+
/**
|
|
2218
|
+
* @title 滚动条配置
|
|
2219
|
+
*/
|
|
1465
2220
|
readonly scrollbar?: ScrollbarOption;
|
|
1466
|
-
/**
|
|
2221
|
+
/**
|
|
2222
|
+
* @title 子 View
|
|
2223
|
+
*/
|
|
1467
2224
|
readonly views?: ViewOption[];
|
|
1468
|
-
/**
|
|
2225
|
+
/**
|
|
2226
|
+
* @title 分面
|
|
2227
|
+
*/
|
|
1469
2228
|
readonly facets?: (RectCfg | MirrorCfg | CircleCfg | ListCfg | TreeCfg)[];
|
|
1470
|
-
/**
|
|
2229
|
+
/**
|
|
2230
|
+
* @title 其他自定义的 option
|
|
2231
|
+
*/
|
|
1471
2232
|
readonly [name: string]: any;
|
|
1472
2233
|
}
|
|
1473
|
-
/**
|
|
2234
|
+
/**
|
|
2235
|
+
* @title 支持的 Marker 类型
|
|
2236
|
+
*/
|
|
1474
2237
|
export declare type Marker = 'circle' | 'square' | 'diamond' | 'triangle' | 'triangle-down' | 'hexagon' | 'bowtie' | 'cross' | 'tick' | 'plus' | 'hyphen' | 'line';
|
|
1475
|
-
/**
|
|
2238
|
+
/**
|
|
2239
|
+
* @title 自定义 Marker 的回调函数定义
|
|
2240
|
+
*/
|
|
1476
2241
|
export declare type MarkerCallback = (x: number, y: number, r: number) => PathCommand[];
|
|
1477
|
-
/**
|
|
2242
|
+
/**
|
|
2243
|
+
* @title chart.tooltip() 参数类型
|
|
2244
|
+
*/
|
|
1478
2245
|
export declare type TooltipOption = TooltipCfg | boolean;
|
|
1479
2246
|
export declare type FilterCondition = (value: any, datum: Datum, idx?: number) => boolean;
|
|
1480
|
-
/**
|
|
2247
|
+
/**
|
|
2248
|
+
* @title chart.axis() 参数类型
|
|
2249
|
+
*/
|
|
1481
2250
|
export declare type AxisOption = AxisCfg | boolean;
|
|
1482
|
-
/**
|
|
2251
|
+
/**
|
|
2252
|
+
* @title chart.legend() 参数类型
|
|
2253
|
+
*/
|
|
1483
2254
|
export declare type LegendOption = LegendCfg | boolean;
|
|
1484
|
-
/**
|
|
2255
|
+
/**
|
|
2256
|
+
* @title Options 中 legends 的配置定义
|
|
2257
|
+
*/
|
|
1485
2258
|
export declare type AllLegendsOptions = LegendCfg | Record<string, LegendOption> | boolean;
|
|
1486
|
-
/**
|
|
2259
|
+
/**
|
|
2260
|
+
* @title G2 支持的度量类型
|
|
2261
|
+
*/
|
|
1487
2262
|
export declare type ScaleType = 'linear' | 'cat' | 'category' | 'identity' | 'log' | 'pow' | 'time' | 'timeCat' | 'quantize' | 'quantile';
|
|
1488
2263
|
export declare type CoordinateRotate = ['rotate', number];
|
|
1489
2264
|
export declare type CoordinateReflect = ['reflect', 'x' | 'y'];
|
|
1490
2265
|
export declare type CoordinateScale = ['scale', number, number];
|
|
1491
2266
|
export declare type CoordinateTranspose = ['transpose'];
|
|
1492
|
-
/**
|
|
2267
|
+
/**
|
|
2268
|
+
* @title 坐标系支持的 action 配置
|
|
2269
|
+
*/
|
|
1493
2270
|
export declare type CoordinateActions = CoordinateRotate | CoordinateReflect | CoordinateScale | CoordinateTranspose;
|
|
1494
2271
|
export declare type FacetCtor = new (view: View, cfg: any) => Facet;
|
|
1495
2272
|
export interface Condition {
|
|
@@ -1502,99 +2279,174 @@ export declare type FacetDataFilter = (data: Datum[]) => boolean;
|
|
|
1502
2279
|
* 默认的基础配置
|
|
1503
2280
|
*/
|
|
1504
2281
|
export interface FacetCfg<D> {
|
|
1505
|
-
/**
|
|
2282
|
+
/**
|
|
2283
|
+
* @title 布局类型。
|
|
2284
|
+
*/
|
|
1506
2285
|
readonly type?: string;
|
|
1507
|
-
/**
|
|
2286
|
+
/**
|
|
2287
|
+
* @title view 创建回调。
|
|
2288
|
+
*/
|
|
1508
2289
|
readonly eachView: (innerView: View, facet?: D) => any;
|
|
1509
|
-
/**
|
|
2290
|
+
/**
|
|
2291
|
+
* @title 分面 view 之间的间隔, 百分比或像素值
|
|
2292
|
+
*/
|
|
1510
2293
|
readonly spacing?: [number | string, number | string];
|
|
1511
|
-
/**
|
|
2294
|
+
/**
|
|
2295
|
+
* @title facet view padding。
|
|
2296
|
+
*/
|
|
1512
2297
|
readonly padding?: ViewPadding;
|
|
1513
|
-
/**
|
|
2298
|
+
/**
|
|
2299
|
+
* @title 是否显示标题。
|
|
2300
|
+
*/
|
|
1514
2301
|
readonly showTitle?: boolean;
|
|
1515
|
-
/**
|
|
2302
|
+
/**
|
|
2303
|
+
* @title facet 数据划分维度。
|
|
2304
|
+
*/
|
|
1516
2305
|
readonly fields: string[];
|
|
1517
2306
|
}
|
|
1518
2307
|
/**
|
|
1519
2308
|
* Facet title 配置项
|
|
1520
2309
|
*/
|
|
1521
2310
|
export interface FacetTitle {
|
|
1522
|
-
/**
|
|
2311
|
+
/**
|
|
2312
|
+
* @title x 方向偏移。
|
|
2313
|
+
*/
|
|
1523
2314
|
readonly offsetX?: number;
|
|
1524
|
-
/**
|
|
2315
|
+
/**
|
|
2316
|
+
* @title y 方向偏移。
|
|
2317
|
+
*/
|
|
1525
2318
|
readonly offsetY?: number;
|
|
1526
|
-
/**
|
|
2319
|
+
/**
|
|
2320
|
+
* @title 文本样式。
|
|
2321
|
+
*/
|
|
1527
2322
|
readonly style?: object;
|
|
2323
|
+
/**
|
|
2324
|
+
* @title 格式化
|
|
2325
|
+
*/
|
|
1528
2326
|
readonly formatter?: (val: any) => any;
|
|
1529
2327
|
}
|
|
1530
2328
|
/**
|
|
1531
2329
|
* 分面数据
|
|
1532
2330
|
*/
|
|
1533
2331
|
export interface FacetData {
|
|
1534
|
-
/**
|
|
2332
|
+
/**
|
|
2333
|
+
* @title 分面类型。
|
|
2334
|
+
*/
|
|
1535
2335
|
readonly type: string;
|
|
1536
|
-
/**
|
|
2336
|
+
/**
|
|
2337
|
+
* @title 当前分面子 view 的数据。
|
|
2338
|
+
*/
|
|
1537
2339
|
readonly data: object[];
|
|
1538
|
-
/**
|
|
2340
|
+
/**
|
|
2341
|
+
* @title 当前分面子 view 的范围。
|
|
2342
|
+
*/
|
|
1539
2343
|
readonly region: Region;
|
|
1540
|
-
/**
|
|
2344
|
+
/**
|
|
2345
|
+
* @title 当前分面子 view 的 padding。
|
|
2346
|
+
*/
|
|
1541
2347
|
readonly padding?: number;
|
|
1542
|
-
/**
|
|
2348
|
+
/**
|
|
2349
|
+
* @title 当前 facet 对应生成的 view。
|
|
2350
|
+
*/
|
|
1543
2351
|
view?: View;
|
|
1544
|
-
/**
|
|
2352
|
+
/**
|
|
2353
|
+
* @title 分面行字段。
|
|
2354
|
+
*/
|
|
1545
2355
|
readonly rowField: string;
|
|
1546
|
-
/**
|
|
2356
|
+
/**
|
|
2357
|
+
* @title 分面列字段。
|
|
2358
|
+
*/
|
|
1547
2359
|
readonly columnField: string;
|
|
1548
|
-
/**
|
|
2360
|
+
/**
|
|
2361
|
+
* @title 当前行分面的枚举值。
|
|
2362
|
+
*/
|
|
1549
2363
|
readonly rowValue: string;
|
|
1550
|
-
/**
|
|
2364
|
+
/**
|
|
2365
|
+
* @title 当前列分面的枚举值。
|
|
2366
|
+
*/
|
|
1551
2367
|
readonly columnValue: string;
|
|
1552
|
-
/**
|
|
2368
|
+
/**
|
|
2369
|
+
* @title 当前行索引。
|
|
2370
|
+
*/
|
|
1553
2371
|
readonly rowIndex: number;
|
|
1554
|
-
/**
|
|
2372
|
+
/**
|
|
2373
|
+
* @title 当前列索引。
|
|
2374
|
+
*/
|
|
1555
2375
|
readonly columnIndex: number;
|
|
1556
|
-
/**
|
|
2376
|
+
/**
|
|
2377
|
+
* @title 当前行字段的枚举值长度。
|
|
2378
|
+
*/
|
|
1557
2379
|
readonly rowValuesLength: number;
|
|
1558
|
-
/**
|
|
2380
|
+
/**
|
|
2381
|
+
* @title 当前列字段的枚举值长度。
|
|
2382
|
+
*/
|
|
1559
2383
|
readonly columnValuesLength: number;
|
|
1560
2384
|
}
|
|
1561
|
-
/**
|
|
2385
|
+
/**
|
|
2386
|
+
* @title rect 分面类型配置
|
|
2387
|
+
*/
|
|
1562
2388
|
export interface RectCfg extends FacetCfg<RectData> {
|
|
1563
|
-
/**
|
|
2389
|
+
/**
|
|
2390
|
+
* @title 行标题的样式。
|
|
2391
|
+
*/
|
|
1564
2392
|
readonly columnTitle?: FacetTitle;
|
|
1565
|
-
/**
|
|
2393
|
+
/**
|
|
2394
|
+
* @title 列标题的样式。
|
|
2395
|
+
*/
|
|
1566
2396
|
readonly rowTitle?: FacetTitle;
|
|
1567
2397
|
}
|
|
1568
2398
|
export declare type RectData = FacetData;
|
|
1569
|
-
/**
|
|
2399
|
+
/**
|
|
2400
|
+
* @title mirror 分面类型配置
|
|
2401
|
+
*/
|
|
1570
2402
|
export interface MirrorCfg extends FacetCfg<MirrorData> {
|
|
1571
|
-
/**
|
|
2403
|
+
/**
|
|
2404
|
+
* @title 是否转置。
|
|
2405
|
+
*/
|
|
1572
2406
|
readonly transpose?: boolean;
|
|
1573
|
-
/**
|
|
2407
|
+
/**
|
|
2408
|
+
* @title 标题样式。
|
|
2409
|
+
*/
|
|
1574
2410
|
readonly title?: FacetTitle;
|
|
1575
2411
|
}
|
|
1576
2412
|
export declare type MirrorData = FacetData;
|
|
1577
|
-
/**
|
|
2413
|
+
/**
|
|
2414
|
+
* @title list 分面类型配置
|
|
2415
|
+
*/
|
|
1578
2416
|
export interface ListCfg extends FacetCfg<ListData> {
|
|
1579
|
-
/**
|
|
2417
|
+
/**
|
|
2418
|
+
* @title 指定每行可显示分面的个数,超出时会自动换行。
|
|
2419
|
+
*/
|
|
1580
2420
|
readonly cols?: number;
|
|
1581
|
-
/**
|
|
2421
|
+
/**
|
|
2422
|
+
* @title 每个分面标题配置。
|
|
2423
|
+
*/
|
|
1582
2424
|
readonly title?: FacetTitle;
|
|
1583
2425
|
}
|
|
1584
2426
|
export interface ListData extends FacetData {
|
|
1585
2427
|
readonly total?: number;
|
|
1586
2428
|
}
|
|
1587
|
-
/**
|
|
2429
|
+
/**
|
|
2430
|
+
* @title matrix 分面类型配置
|
|
2431
|
+
*/
|
|
1588
2432
|
export interface MatrixCfg extends FacetCfg<MirrorData> {
|
|
1589
|
-
/**
|
|
2433
|
+
/**
|
|
2434
|
+
* @title 列标题的样式
|
|
2435
|
+
*/
|
|
1590
2436
|
readonly columnTitle?: FacetTitle;
|
|
1591
|
-
/**
|
|
2437
|
+
/**
|
|
2438
|
+
* @title 列标题的样式
|
|
2439
|
+
*/
|
|
1592
2440
|
readonly rowTitle?: FacetTitle;
|
|
1593
2441
|
}
|
|
1594
2442
|
export declare type MatrixData = FacetData;
|
|
1595
|
-
/**
|
|
2443
|
+
/**
|
|
2444
|
+
* @title circle 分面类型配置
|
|
2445
|
+
*/
|
|
1596
2446
|
export interface CircleCfg extends FacetCfg<CircleData> {
|
|
1597
|
-
/**
|
|
2447
|
+
/**
|
|
2448
|
+
* @title 分面标题配置。
|
|
2449
|
+
*/
|
|
1598
2450
|
readonly title?: FacetTitle;
|
|
1599
2451
|
}
|
|
1600
2452
|
export declare type CircleData = FacetData;
|
|
@@ -1602,7 +2454,9 @@ export interface Line {
|
|
|
1602
2454
|
readonly style?: ShapeAttrs;
|
|
1603
2455
|
readonly smooth?: boolean;
|
|
1604
2456
|
}
|
|
1605
|
-
/**
|
|
2457
|
+
/**
|
|
2458
|
+
* @title tree 分面类型配置
|
|
2459
|
+
*/
|
|
1606
2460
|
export interface TreeCfg extends FacetCfg<TreeData> {
|
|
1607
2461
|
readonly line?: Line;
|
|
1608
2462
|
readonly title?: FacetTitle;
|
|
@@ -1615,557 +2469,1105 @@ export interface TreeData extends FacetData {
|
|
|
1615
2469
|
* facet object map
|
|
1616
2470
|
*/
|
|
1617
2471
|
export interface FacetCfgMap {
|
|
1618
|
-
/**
|
|
2472
|
+
/**
|
|
2473
|
+
* @title rect 类型分面配置
|
|
2474
|
+
*/
|
|
1619
2475
|
readonly rect: RectCfg;
|
|
1620
|
-
/**
|
|
2476
|
+
/**
|
|
2477
|
+
* @title mirror 类型分面配置
|
|
2478
|
+
*/
|
|
1621
2479
|
readonly mirror: MirrorCfg;
|
|
1622
|
-
/**
|
|
2480
|
+
/**
|
|
2481
|
+
* @title list 类型分面配置
|
|
2482
|
+
*/
|
|
1623
2483
|
readonly list: ListCfg;
|
|
1624
|
-
/**
|
|
2484
|
+
/**
|
|
2485
|
+
* @title matrix 类型分面配置
|
|
2486
|
+
*/
|
|
1625
2487
|
readonly matrix: MatrixCfg;
|
|
1626
|
-
/**
|
|
1627
|
-
|
|
1628
|
-
|
|
2488
|
+
/**
|
|
2489
|
+
* @title circle 类型分面配置
|
|
2490
|
+
*/
|
|
2491
|
+
readonly circle: CircleCfg;
|
|
2492
|
+
/**
|
|
2493
|
+
* @title tree 类型分面配置
|
|
2494
|
+
*/
|
|
1629
2495
|
readonly tree: TreeCfg;
|
|
1630
2496
|
}
|
|
1631
2497
|
export interface StyleSheet {
|
|
1632
|
-
/**
|
|
2498
|
+
/**
|
|
2499
|
+
* @title 背景色
|
|
2500
|
+
*/
|
|
1633
2501
|
backgroundColor?: string;
|
|
1634
|
-
/**
|
|
2502
|
+
/**
|
|
2503
|
+
* @title 主题色
|
|
2504
|
+
*/
|
|
1635
2505
|
brandColor?: string;
|
|
1636
|
-
/**
|
|
2506
|
+
/**
|
|
2507
|
+
* @title 辅助色
|
|
2508
|
+
*/
|
|
1637
2509
|
subColor?: string;
|
|
1638
|
-
/**
|
|
2510
|
+
/**
|
|
2511
|
+
* @title 分类色板 1,在数据量小于等于 10 时使用
|
|
2512
|
+
*/
|
|
1639
2513
|
paletteQualitative10?: string[];
|
|
1640
|
-
/**
|
|
2514
|
+
/**
|
|
2515
|
+
* @title 分类色板 2,在数据量大于 10 时使用
|
|
2516
|
+
*/
|
|
1641
2517
|
paletteQualitative20?: string[];
|
|
1642
|
-
/**
|
|
2518
|
+
/**
|
|
2519
|
+
* @title 语义色
|
|
2520
|
+
*/
|
|
1643
2521
|
paletteSemanticRed?: string;
|
|
1644
|
-
/**
|
|
2522
|
+
/**
|
|
2523
|
+
* @title 语义色
|
|
2524
|
+
*/
|
|
1645
2525
|
paletteSemanticGreen?: string;
|
|
1646
|
-
/**
|
|
2526
|
+
/**
|
|
2527
|
+
* @title 语义色
|
|
2528
|
+
*/
|
|
1647
2529
|
paletteSemanticYellow?: string;
|
|
1648
|
-
/**
|
|
2530
|
+
/**
|
|
2531
|
+
* @title (单色)顺序色板
|
|
2532
|
+
*/
|
|
1649
2533
|
paletteSequence?: string[];
|
|
1650
|
-
/**
|
|
2534
|
+
/**
|
|
2535
|
+
* @title 字体
|
|
2536
|
+
*/
|
|
1651
2537
|
fontFamily?: string;
|
|
1652
|
-
/**
|
|
2538
|
+
/**
|
|
2539
|
+
* @title 坐标轴线颜色
|
|
2540
|
+
*/
|
|
1653
2541
|
axisLineBorderColor?: string;
|
|
1654
|
-
/**
|
|
2542
|
+
/**
|
|
2543
|
+
* @title 坐标轴线粗细
|
|
2544
|
+
*/
|
|
1655
2545
|
axisLineBorder?: number;
|
|
1656
|
-
/**
|
|
2546
|
+
/**
|
|
2547
|
+
* @title 坐标轴线 lineDash 设置
|
|
2548
|
+
*/
|
|
1657
2549
|
axisLineDash?: number[];
|
|
1658
|
-
/**
|
|
2550
|
+
/**
|
|
2551
|
+
* @title 坐标轴标题颜色
|
|
2552
|
+
*/
|
|
1659
2553
|
axisTitleTextFillColor?: string;
|
|
1660
|
-
/**
|
|
2554
|
+
/**
|
|
2555
|
+
* @title 坐标轴标题文本字体大小
|
|
2556
|
+
*/
|
|
1661
2557
|
axisTitleTextFontSize?: number;
|
|
1662
|
-
/**
|
|
2558
|
+
/**
|
|
2559
|
+
* @title 坐标轴标题文本行高
|
|
2560
|
+
*/
|
|
1663
2561
|
axisTitleTextLineHeight?: number;
|
|
1664
|
-
/**
|
|
2562
|
+
/**
|
|
2563
|
+
* @title 坐标轴标题文本字体粗细
|
|
2564
|
+
*/
|
|
1665
2565
|
axisTitleTextFontWeight?: number | string;
|
|
1666
|
-
/**
|
|
2566
|
+
/**
|
|
2567
|
+
* @title 坐标轴标题距离坐标轴文本的间距
|
|
2568
|
+
*/
|
|
1667
2569
|
axisTitleSpacing?: number;
|
|
1668
|
-
/**
|
|
2570
|
+
/**
|
|
2571
|
+
* @title 坐标轴刻度线颜色
|
|
2572
|
+
*/
|
|
1669
2573
|
axisTickLineBorderColor?: string;
|
|
1670
|
-
/**
|
|
2574
|
+
/**
|
|
2575
|
+
* @title 坐标轴刻度线长度
|
|
2576
|
+
*/
|
|
1671
2577
|
axisTickLineLength?: number;
|
|
1672
|
-
/**
|
|
2578
|
+
/**
|
|
2579
|
+
* @title 坐标轴刻度线粗细
|
|
2580
|
+
*/
|
|
1673
2581
|
axisTickLineBorder?: number;
|
|
1674
|
-
/**
|
|
2582
|
+
/**
|
|
2583
|
+
* @title 坐标轴次刻度线颜色
|
|
2584
|
+
*/
|
|
1675
2585
|
axisSubTickLineBorderColor?: string;
|
|
1676
|
-
/**
|
|
2586
|
+
/**
|
|
2587
|
+
* @title 坐标轴次刻度线长度
|
|
2588
|
+
*/
|
|
1677
2589
|
axisSubTickLineLength?: number;
|
|
1678
|
-
/**
|
|
2590
|
+
/**
|
|
2591
|
+
* @title 坐标轴次刻度线粗细
|
|
2592
|
+
*/
|
|
1679
2593
|
axisSubTickLineBorder?: number;
|
|
1680
|
-
/**
|
|
2594
|
+
/**
|
|
2595
|
+
* @title 坐标轴刻度文本颜色
|
|
2596
|
+
*/
|
|
1681
2597
|
axisLabelFillColor?: string;
|
|
1682
|
-
/**
|
|
2598
|
+
/**
|
|
2599
|
+
* @title 坐标轴刻度文本字体大小
|
|
2600
|
+
*/
|
|
1683
2601
|
axisLabelFontSize?: number;
|
|
1684
|
-
/**
|
|
2602
|
+
/**
|
|
2603
|
+
* @title 坐标轴刻度文本行高
|
|
2604
|
+
*/
|
|
1685
2605
|
axisLabelLineHeight?: number;
|
|
1686
|
-
/**
|
|
2606
|
+
/**
|
|
2607
|
+
* @title 坐标轴刻度文本字体粗细
|
|
2608
|
+
*/
|
|
1687
2609
|
axisLabelFontWeight?: number | string;
|
|
1688
|
-
/**
|
|
2610
|
+
/**
|
|
2611
|
+
* @title 坐标轴刻度文本距离坐标轴线的间距
|
|
2612
|
+
*/
|
|
1689
2613
|
axisLabelOffset: number;
|
|
1690
|
-
/**
|
|
2614
|
+
/**
|
|
2615
|
+
* @title 坐标轴网格线颜色
|
|
2616
|
+
*/
|
|
1691
2617
|
axisGridBorderColor?: string;
|
|
1692
|
-
/**
|
|
2618
|
+
/**
|
|
2619
|
+
* @title 坐标轴网格线粗细
|
|
2620
|
+
*/
|
|
1693
2621
|
axisGridBorder?: number;
|
|
1694
|
-
/**
|
|
2622
|
+
/**
|
|
2623
|
+
* @title 坐标轴网格线虚线设置
|
|
2624
|
+
*/
|
|
1695
2625
|
axisGridLineDash?: number[];
|
|
1696
|
-
/**
|
|
2626
|
+
/**
|
|
2627
|
+
* @title 图例标题颜色
|
|
2628
|
+
*/
|
|
1697
2629
|
legendTitleTextFillColor?: string;
|
|
1698
|
-
/**
|
|
2630
|
+
/**
|
|
2631
|
+
* @title 图例标题文本字体大小
|
|
2632
|
+
*/
|
|
1699
2633
|
legendTitleTextFontSize?: number;
|
|
1700
|
-
/**
|
|
2634
|
+
/**
|
|
2635
|
+
* @title 图例标题文本行高
|
|
2636
|
+
*/
|
|
1701
2637
|
legendTitleTextLineHeight?: number;
|
|
1702
|
-
/**
|
|
2638
|
+
/**
|
|
2639
|
+
* @title 图例标题文本字体粗细
|
|
2640
|
+
*/
|
|
1703
2641
|
legendTitleTextFontWeight?: number | string;
|
|
1704
|
-
/**
|
|
2642
|
+
/**
|
|
2643
|
+
* @title 图例 marker 颜色
|
|
2644
|
+
*/
|
|
1705
2645
|
legendMarkerColor?: string;
|
|
1706
|
-
/**
|
|
2646
|
+
/**
|
|
2647
|
+
* @title 图例 marker 距离图例文本的间距
|
|
2648
|
+
*/
|
|
1707
2649
|
legendMarkerSpacing?: number;
|
|
1708
|
-
/**
|
|
2650
|
+
/**
|
|
2651
|
+
* @title 图例 marker 默认半径大小
|
|
2652
|
+
*/
|
|
1709
2653
|
legendMarkerSize?: number;
|
|
1710
|
-
/**
|
|
2654
|
+
/**
|
|
2655
|
+
* @title 图例 'circle' marker 半径
|
|
2656
|
+
*/
|
|
1711
2657
|
legendCircleMarkerSize?: number;
|
|
1712
|
-
/**
|
|
2658
|
+
/**
|
|
2659
|
+
* @title 图例 'square' marker 半径
|
|
2660
|
+
*/
|
|
1713
2661
|
legendSquareMarkerSize?: number;
|
|
1714
|
-
/**
|
|
2662
|
+
/**
|
|
2663
|
+
* @title 图例 'line' marker 半径
|
|
2664
|
+
*/
|
|
1715
2665
|
legendLineMarkerSize?: number;
|
|
1716
|
-
/**
|
|
2666
|
+
/**
|
|
2667
|
+
* @title 图例项文本颜色
|
|
2668
|
+
*/
|
|
1717
2669
|
legendItemNameFillColor?: string;
|
|
1718
|
-
/**
|
|
2670
|
+
/**
|
|
2671
|
+
* @title 图例项文本字体大小
|
|
2672
|
+
*/
|
|
1719
2673
|
legendItemNameFontSize?: number;
|
|
1720
|
-
/**
|
|
2674
|
+
/**
|
|
2675
|
+
* @title 图例项文本行高
|
|
2676
|
+
*/
|
|
1721
2677
|
legendItemNameLineHeight?: number;
|
|
1722
|
-
/**
|
|
2678
|
+
/**
|
|
2679
|
+
* @title 图例项粗细
|
|
2680
|
+
*/
|
|
1723
2681
|
legendItemNameFontWeight?: number | string;
|
|
1724
|
-
/**
|
|
2682
|
+
/**
|
|
2683
|
+
* @title 图例项之间的水平间距
|
|
2684
|
+
*/
|
|
1725
2685
|
legendItemSpacing?: number;
|
|
1726
|
-
/**
|
|
2686
|
+
/**
|
|
2687
|
+
* @title 图例项垂直方向的间隔
|
|
2688
|
+
*/
|
|
1727
2689
|
legendItemMarginBottom?: number;
|
|
1728
|
-
/**
|
|
2690
|
+
/**
|
|
2691
|
+
* @title 图例与图表绘图区域的偏移距离
|
|
2692
|
+
*/
|
|
1729
2693
|
legendPadding?: number[];
|
|
1730
|
-
/**
|
|
2694
|
+
/**
|
|
2695
|
+
* @title 水平布局的图例与绘图区域偏移距离
|
|
2696
|
+
*/
|
|
1731
2697
|
legendHorizontalPadding?: number[];
|
|
1732
|
-
/**
|
|
2698
|
+
/**
|
|
2699
|
+
* @title 垂直布局的图例与绘图区域偏移距离
|
|
2700
|
+
*/
|
|
1733
2701
|
legendVerticalPadding?: number[];
|
|
1734
|
-
/**
|
|
2702
|
+
/**
|
|
2703
|
+
* @title 图例分页器 marker 大小
|
|
2704
|
+
*/
|
|
1735
2705
|
legendPageNavigatorMarkerSize: number;
|
|
1736
|
-
/**
|
|
2706
|
+
/**
|
|
2707
|
+
* @title 图例分页器 marker 非激活状态填充色
|
|
2708
|
+
*/
|
|
1737
2709
|
legendPageNavigatorMarkerInactiveFillColor: string;
|
|
1738
|
-
/**
|
|
2710
|
+
/**
|
|
2711
|
+
* @title 图例分页器 marker 非激活状态填充色透明度
|
|
2712
|
+
*/
|
|
1739
2713
|
legendPageNavigatorMarkerInactiveFillOpacity: number;
|
|
1740
|
-
/**
|
|
2714
|
+
/**
|
|
2715
|
+
* @title 图例分页器 marker 填充色
|
|
2716
|
+
*/
|
|
1741
2717
|
legendPageNavigatorMarkerFillColor: string;
|
|
1742
|
-
/**
|
|
2718
|
+
/**
|
|
2719
|
+
* @title 图例分页器 marker 填充色透明度
|
|
2720
|
+
*/
|
|
1743
2721
|
legendPageNavigatorMarkerFillOpacity: number;
|
|
1744
|
-
/**
|
|
2722
|
+
/**
|
|
2723
|
+
* @title 图例分页器文本颜色
|
|
2724
|
+
*/
|
|
1745
2725
|
legendPageNavigatorTextFillColor: string;
|
|
1746
|
-
/**
|
|
2726
|
+
/**
|
|
2727
|
+
* @title 图例分页器文本字体大小
|
|
2728
|
+
*/
|
|
1747
2729
|
legendPageNavigatorTextFontSize: number;
|
|
1748
|
-
/**
|
|
2730
|
+
/**
|
|
2731
|
+
* @title 连续图例滑块填充色
|
|
2732
|
+
*/
|
|
1749
2733
|
sliderRailFillColor?: string;
|
|
1750
|
-
/**
|
|
2734
|
+
/**
|
|
2735
|
+
* @title 连续图例滑块边框粗细
|
|
2736
|
+
*/
|
|
1751
2737
|
sliderRailBorder?: number;
|
|
1752
|
-
/**
|
|
2738
|
+
/**
|
|
2739
|
+
* @title 连续图例滑块边框颜色
|
|
2740
|
+
*/
|
|
1753
2741
|
sliderRailBorderColor?: string;
|
|
1754
|
-
/**
|
|
2742
|
+
/**
|
|
2743
|
+
* @title 连续图例滑块宽度
|
|
2744
|
+
*/
|
|
1755
2745
|
sliderRailWidth?: number;
|
|
1756
|
-
/**
|
|
2746
|
+
/**
|
|
2747
|
+
* @title 连续图例滑块高度
|
|
2748
|
+
*/
|
|
1757
2749
|
sliderRailHeight?: number;
|
|
1758
|
-
/**
|
|
2750
|
+
/**
|
|
2751
|
+
* @title 连续图例文本颜色
|
|
2752
|
+
*/
|
|
1759
2753
|
sliderLabelTextFillColor?: string;
|
|
1760
|
-
/**
|
|
2754
|
+
/**
|
|
2755
|
+
* @title 连续图例文本字体大小
|
|
2756
|
+
*/
|
|
1761
2757
|
sliderLabelTextFontSize?: number;
|
|
1762
|
-
/**
|
|
2758
|
+
/**
|
|
2759
|
+
* @title 连续图例文本行高
|
|
2760
|
+
*/
|
|
1763
2761
|
sliderLabelTextLineHeight?: number;
|
|
1764
|
-
/**
|
|
2762
|
+
/**
|
|
2763
|
+
* @title 连续图例文本字体粗细
|
|
2764
|
+
*/
|
|
1765
2765
|
sliderLabelTextFontWeight?: number | string;
|
|
1766
|
-
/**
|
|
2766
|
+
/**
|
|
2767
|
+
* @title 连续图例滑块颜色
|
|
2768
|
+
*/
|
|
1767
2769
|
sliderHandlerFillColor?: string;
|
|
1768
|
-
/**
|
|
2770
|
+
/**
|
|
2771
|
+
* @title 连续图例滑块宽度
|
|
2772
|
+
*/
|
|
1769
2773
|
sliderHandlerWidth?: number;
|
|
1770
|
-
/**
|
|
2774
|
+
/**
|
|
2775
|
+
* @title 连续图例滑块高度
|
|
2776
|
+
*/
|
|
1771
2777
|
sliderHandlerHeight?: number;
|
|
1772
|
-
/**
|
|
2778
|
+
/**
|
|
2779
|
+
* @title 连续图例滑块边框粗细
|
|
2780
|
+
*/
|
|
1773
2781
|
sliderHandlerBorder?: number;
|
|
1774
|
-
/**
|
|
2782
|
+
/**
|
|
2783
|
+
* @title 连续图例滑块边框颜色
|
|
2784
|
+
*/
|
|
1775
2785
|
sliderHandlerBorderColor?: string;
|
|
1776
|
-
/**
|
|
2786
|
+
/**
|
|
2787
|
+
* @title arc 图形标注描边颜色
|
|
2788
|
+
*/
|
|
1777
2789
|
annotationArcBorderColor?: string;
|
|
1778
|
-
/**
|
|
2790
|
+
/**
|
|
2791
|
+
* @title arc 图形标注粗细
|
|
2792
|
+
*/
|
|
1779
2793
|
annotationArcBorder?: number;
|
|
1780
|
-
/**
|
|
2794
|
+
/**
|
|
2795
|
+
* @title line 图形标注颜色
|
|
2796
|
+
*/
|
|
1781
2797
|
annotationLineBorderColor?: string;
|
|
1782
|
-
/**
|
|
2798
|
+
/**
|
|
2799
|
+
* @title line 图形标注粗细
|
|
2800
|
+
*/
|
|
1783
2801
|
annotationLineBorder?: number;
|
|
1784
|
-
/**
|
|
2802
|
+
/**
|
|
2803
|
+
* @title lube 图形标注的虚线间隔
|
|
2804
|
+
*/
|
|
1785
2805
|
annotationLineDash?: number[];
|
|
1786
|
-
/**
|
|
2806
|
+
/**
|
|
2807
|
+
* @title text 图形标注文本颜色
|
|
2808
|
+
*/
|
|
1787
2809
|
annotationTextFillColor?: string;
|
|
1788
|
-
/**
|
|
2810
|
+
/**
|
|
2811
|
+
* @title text 图形标注文本字体大小
|
|
2812
|
+
*/
|
|
1789
2813
|
annotationTextFontSize?: number;
|
|
1790
|
-
/**
|
|
2814
|
+
/**
|
|
2815
|
+
* @title text 图形标注文本行高
|
|
2816
|
+
*/
|
|
1791
2817
|
annotationTextLineHeight?: number;
|
|
1792
|
-
/**
|
|
2818
|
+
/**
|
|
2819
|
+
* @title text 图形标注文本字体粗细
|
|
2820
|
+
*/
|
|
1793
2821
|
annotationTextFontWeight?: number | string;
|
|
1794
|
-
/**
|
|
2822
|
+
/**
|
|
2823
|
+
* @title text 图形标注文本边框颜色
|
|
2824
|
+
*/
|
|
1795
2825
|
annotationTextBorderColor?: string;
|
|
1796
|
-
/**
|
|
2826
|
+
/**
|
|
2827
|
+
* @title text 图形标注文本边框粗细
|
|
2828
|
+
*/
|
|
1797
2829
|
annotationTextBorder?: number;
|
|
1798
|
-
/**
|
|
2830
|
+
/**
|
|
2831
|
+
* @title region 图形标注填充颜色
|
|
2832
|
+
*/
|
|
1799
2833
|
annotationRegionFillColor?: string;
|
|
1800
|
-
/**
|
|
2834
|
+
/**
|
|
2835
|
+
* @title region 图形标注填充颜色透明色
|
|
2836
|
+
*/
|
|
1801
2837
|
annotationRegionFillOpacity?: number;
|
|
1802
|
-
/**
|
|
2838
|
+
/**
|
|
2839
|
+
* @title region 图形标注描边粗细
|
|
2840
|
+
*/
|
|
1803
2841
|
annotationRegionBorder?: number;
|
|
1804
|
-
/**
|
|
2842
|
+
/**
|
|
2843
|
+
* @title region 图形标注描边颜色
|
|
2844
|
+
*/
|
|
1805
2845
|
annotationRegionBorderColor?: string;
|
|
1806
|
-
/**
|
|
2846
|
+
/**
|
|
2847
|
+
* @title dataMarker 图形标注的连接线长度
|
|
2848
|
+
*/
|
|
1807
2849
|
annotationDataMarkerLineLength?: number;
|
|
1808
|
-
/**
|
|
2850
|
+
/**
|
|
2851
|
+
* @title tooltip crosshairs 辅助线颜色
|
|
2852
|
+
*/
|
|
1809
2853
|
tooltipCrosshairsBorderColor?: string;
|
|
1810
|
-
/**
|
|
2854
|
+
/**
|
|
2855
|
+
* @title tooltip crosshairs 辅助线粗细
|
|
2856
|
+
*/
|
|
1811
2857
|
tooltipCrosshairsBorder?: number;
|
|
1812
|
-
/**
|
|
2858
|
+
/**
|
|
2859
|
+
* @title tooltip crosshairs 辅助线虚线间隔
|
|
2860
|
+
*/
|
|
1813
2861
|
tooltipCrosshairsLineDash?: number[];
|
|
1814
|
-
/**
|
|
2862
|
+
/**
|
|
2863
|
+
* @title tooltip 内容框背景色
|
|
2864
|
+
*/
|
|
1815
2865
|
tooltipContainerFillColor?: string;
|
|
1816
|
-
/**
|
|
2866
|
+
/**
|
|
2867
|
+
* @title tooltip 内容框背景透明度
|
|
2868
|
+
*/
|
|
1817
2869
|
tooltipContainerFillOpacity?: number;
|
|
1818
|
-
/**
|
|
2870
|
+
/**
|
|
2871
|
+
* @title tooltip 内容框阴影
|
|
2872
|
+
*/
|
|
1819
2873
|
tooltipContainerShadow?: string;
|
|
1820
|
-
/**
|
|
2874
|
+
/**
|
|
2875
|
+
* @title tooltip 内容框圆角
|
|
2876
|
+
*/
|
|
1821
2877
|
tooltipContainerBorderRadius?: number;
|
|
1822
|
-
/**
|
|
2878
|
+
/**
|
|
2879
|
+
* @title tooltip 文本颜色
|
|
2880
|
+
*/
|
|
1823
2881
|
tooltipTextFillColor?: string;
|
|
1824
|
-
/**
|
|
2882
|
+
/**
|
|
2883
|
+
* @title tooltip 文本字体大小
|
|
2884
|
+
*/
|
|
1825
2885
|
tooltipTextFontSize?: number;
|
|
1826
|
-
/**
|
|
2886
|
+
/**
|
|
2887
|
+
* @title tooltip 文本行高
|
|
2888
|
+
*/
|
|
1827
2889
|
tooltipTextLineHeight?: number;
|
|
1828
|
-
/**
|
|
2890
|
+
/**
|
|
2891
|
+
* @title tooltip 文本字体粗细
|
|
2892
|
+
*/
|
|
1829
2893
|
tooltipTextFontWeight?: number | string;
|
|
1830
|
-
/**
|
|
2894
|
+
/**
|
|
2895
|
+
* @title Geometry label 文本颜色
|
|
2896
|
+
*/
|
|
1831
2897
|
labelFillColor?: string;
|
|
1832
|
-
/**
|
|
2898
|
+
/**
|
|
2899
|
+
* @title Geometry label 暗色文本颜色
|
|
2900
|
+
*/
|
|
1833
2901
|
labelFillColorDark?: string;
|
|
1834
|
-
/**
|
|
2902
|
+
/**
|
|
2903
|
+
* @title Geometry label 亮色文本颜色
|
|
2904
|
+
*/
|
|
1835
2905
|
labelFillColorLight?: string;
|
|
1836
|
-
/**
|
|
2906
|
+
/**
|
|
2907
|
+
* @title Geometry label 文本字体大小
|
|
2908
|
+
*/
|
|
1837
2909
|
labelFontSize?: number;
|
|
1838
|
-
/**
|
|
2910
|
+
/**
|
|
2911
|
+
* @title Geometry label 文本行高
|
|
2912
|
+
*/
|
|
1839
2913
|
labelLineHeight?: number;
|
|
1840
|
-
/**
|
|
2914
|
+
/**
|
|
2915
|
+
* @title Geometry label 文本字体粗细
|
|
2916
|
+
*/
|
|
1841
2917
|
labelFontWeight?: number | string;
|
|
1842
|
-
/**
|
|
2918
|
+
/**
|
|
2919
|
+
* @title Geometry label 文本描边颜色
|
|
2920
|
+
*/
|
|
1843
2921
|
labelBorderColor?: string;
|
|
1844
|
-
/**
|
|
2922
|
+
/**
|
|
2923
|
+
* @title Geometry label 文本描边粗细
|
|
2924
|
+
*/
|
|
1845
2925
|
labelBorder?: number;
|
|
1846
|
-
/**
|
|
2926
|
+
/**
|
|
2927
|
+
* @title Geometry innerLabel 文本颜色
|
|
2928
|
+
*/
|
|
1847
2929
|
innerLabelFillColor?: string;
|
|
1848
|
-
/**
|
|
2930
|
+
/**
|
|
2931
|
+
* @title Geometry innerLabel 文本字体大小
|
|
2932
|
+
*/
|
|
1849
2933
|
innerLabelFontSize?: number;
|
|
1850
|
-
/**
|
|
2934
|
+
/**
|
|
2935
|
+
* @title Geometry innerLabel 文本行高
|
|
2936
|
+
*/
|
|
1851
2937
|
innerLabelLineHeight?: number;
|
|
1852
|
-
/**
|
|
2938
|
+
/**
|
|
2939
|
+
* @title Geometry innerLabel 文本字体粗细
|
|
2940
|
+
*/
|
|
1853
2941
|
innerLabelFontWeight?: number | string;
|
|
1854
|
-
/**
|
|
2942
|
+
/**
|
|
2943
|
+
* @title Geometry innerLabel 文本描边颜色
|
|
2944
|
+
*/
|
|
1855
2945
|
innerLabelBorderColor?: string;
|
|
1856
|
-
/**
|
|
2946
|
+
/**
|
|
2947
|
+
* @title Geometry innerLabel 文本描边粗细
|
|
2948
|
+
*/
|
|
1857
2949
|
innerLabelBorder?: number;
|
|
1858
|
-
/**
|
|
2950
|
+
/**
|
|
2951
|
+
* @title Geometry overflowLabel 文本颜色
|
|
2952
|
+
*/
|
|
1859
2953
|
overflowLabelFillColor?: string;
|
|
1860
|
-
/**
|
|
2954
|
+
/**
|
|
2955
|
+
* @title Geometry overflowLabel 暗色文本颜色
|
|
2956
|
+
*/
|
|
1861
2957
|
overflowLabelFillColorDark?: string;
|
|
1862
|
-
/**
|
|
2958
|
+
/**
|
|
2959
|
+
* @title Geometry overflowLabel 亮色文本颜色
|
|
2960
|
+
*/
|
|
1863
2961
|
overflowLabelFillColorLight?: string;
|
|
1864
|
-
/**
|
|
2962
|
+
/**
|
|
2963
|
+
* @title Geometry overflowLabel 文本字体大小
|
|
2964
|
+
*/
|
|
1865
2965
|
overflowLabelFontSize?: number;
|
|
1866
|
-
/**
|
|
2966
|
+
/**
|
|
2967
|
+
* @title Geometry overflowLabel 文本行高
|
|
2968
|
+
*/
|
|
1867
2969
|
overflowLabelLineHeight?: number;
|
|
1868
|
-
/**
|
|
2970
|
+
/**
|
|
2971
|
+
* @title Geometry overflowLabel 文本字体粗细
|
|
2972
|
+
*/
|
|
1869
2973
|
overflowLabelFontWeight?: number | string;
|
|
1870
|
-
/**
|
|
2974
|
+
/**
|
|
2975
|
+
* @title Geometry overflowLabel 文本描边颜色
|
|
2976
|
+
*/
|
|
1871
2977
|
overflowLabelBorderColor?: string;
|
|
1872
|
-
/**
|
|
2978
|
+
/**
|
|
2979
|
+
* @title Geometry overflowLabel 文本描边粗细
|
|
2980
|
+
*/
|
|
1873
2981
|
overflowLabelBorder?: number;
|
|
1874
|
-
/**
|
|
2982
|
+
/**
|
|
2983
|
+
* @title Geometry label 文本连接线粗细
|
|
2984
|
+
*/
|
|
1875
2985
|
labelLineBorder?: number;
|
|
1876
|
-
/**
|
|
2986
|
+
/**
|
|
2987
|
+
* @title Geometry label 文本连接线颜色
|
|
2988
|
+
*/
|
|
1877
2989
|
labelLineBorderColor?: string;
|
|
1878
|
-
/**
|
|
2990
|
+
/**
|
|
2991
|
+
* @title slider 滑道高度
|
|
2992
|
+
*/
|
|
1879
2993
|
cSliderRailHieght?: number;
|
|
1880
|
-
/**
|
|
2994
|
+
/**
|
|
2995
|
+
* @title slider 滑道背景色
|
|
2996
|
+
*/
|
|
1881
2997
|
cSliderBackgroundFillColor?: string;
|
|
1882
|
-
/**
|
|
2998
|
+
/**
|
|
2999
|
+
* @title slider 滑道背景色透明度
|
|
3000
|
+
*/
|
|
1883
3001
|
cSliderBackgroundFillOpacity?: number;
|
|
1884
|
-
/**
|
|
3002
|
+
/**
|
|
3003
|
+
* @title slider 滑道前景色
|
|
3004
|
+
*/
|
|
1885
3005
|
cSliderForegroundFillColor?: string;
|
|
1886
|
-
/**
|
|
3006
|
+
/**
|
|
3007
|
+
* @title slider 滑道前景色透明度
|
|
3008
|
+
*/
|
|
1887
3009
|
cSliderForegroundFillOpacity?: number;
|
|
1888
|
-
/**
|
|
3010
|
+
/**
|
|
3011
|
+
* @title slider 手柄高度
|
|
3012
|
+
*/
|
|
1889
3013
|
cSliderHandlerHeight?: number;
|
|
1890
|
-
/**
|
|
3014
|
+
/**
|
|
3015
|
+
* @title Slider 手柄宽度
|
|
3016
|
+
*/
|
|
1891
3017
|
cSliderHandlerWidth?: number;
|
|
1892
|
-
/**
|
|
3018
|
+
/**
|
|
3019
|
+
* @title Slider 手柄背景色
|
|
3020
|
+
*/
|
|
1893
3021
|
cSliderHandlerFillColor?: string;
|
|
1894
|
-
/**
|
|
3022
|
+
/**
|
|
3023
|
+
* @title Slider 手柄背景色透明度
|
|
3024
|
+
*/
|
|
1895
3025
|
cSliderHandlerFillOpacity?: number;
|
|
1896
|
-
/**
|
|
3026
|
+
/**
|
|
3027
|
+
* @title Slider 手柄高亮背景色
|
|
3028
|
+
*/
|
|
1897
3029
|
cSliderHandlerHighlightFillColor?: string;
|
|
1898
|
-
/**
|
|
3030
|
+
/**
|
|
3031
|
+
* @title Slider 手柄边框色
|
|
3032
|
+
*/
|
|
1899
3033
|
cSliderHandlerBorderColor?: string;
|
|
1900
|
-
/**
|
|
3034
|
+
/**
|
|
3035
|
+
* @title Slider 手柄边框粗细
|
|
3036
|
+
*/
|
|
1901
3037
|
cSliderHandlerBorder?: number;
|
|
1902
|
-
/**
|
|
3038
|
+
/**
|
|
3039
|
+
* @title Slider 手柄边框圆角
|
|
3040
|
+
*/
|
|
1903
3041
|
cSliderHandlerBorderRadius?: number;
|
|
1904
|
-
/**
|
|
3042
|
+
/**
|
|
3043
|
+
* @title Slider 字体标签颜色
|
|
3044
|
+
*/
|
|
1905
3045
|
cSliderTextFillColor?: string;
|
|
1906
|
-
/**
|
|
3046
|
+
/**
|
|
3047
|
+
* @title Slider 字体标签透明度
|
|
3048
|
+
*/
|
|
1907
3049
|
cSliderTextFillOpacity?: number;
|
|
1908
|
-
/**
|
|
3050
|
+
/**
|
|
3051
|
+
* @title Slider 字体标签大小
|
|
3052
|
+
*/
|
|
1909
3053
|
cSliderTextFontSize?: number;
|
|
1910
|
-
/**
|
|
3054
|
+
/**
|
|
3055
|
+
* @title Slider 字体标签行高
|
|
3056
|
+
*/
|
|
1911
3057
|
cSliderTextLineHeight?: number;
|
|
1912
|
-
/**
|
|
3058
|
+
/**
|
|
3059
|
+
* @title Slider 字体标签字重
|
|
3060
|
+
*/
|
|
1913
3061
|
cSliderTextFontWeight?: number | string;
|
|
1914
|
-
/**
|
|
3062
|
+
/**
|
|
3063
|
+
* @title Slider 字体标签描边色
|
|
3064
|
+
*/
|
|
1915
3065
|
cSliderTextBorderColor?: string;
|
|
1916
|
-
/**
|
|
3066
|
+
/**
|
|
3067
|
+
* @title Slider 字体标签描边粗细
|
|
3068
|
+
*/
|
|
1917
3069
|
cSliderTextBorder?: number;
|
|
1918
|
-
/**
|
|
3070
|
+
/**
|
|
3071
|
+
* @title 滚动条 滚道填充色
|
|
3072
|
+
*/
|
|
1919
3073
|
scrollbarTrackFillColor?: string;
|
|
1920
|
-
/**
|
|
3074
|
+
/**
|
|
3075
|
+
* @title 滚动条 滑块填充色
|
|
3076
|
+
*/
|
|
1921
3077
|
scrollbarThumbFillColor?: string;
|
|
1922
|
-
/**
|
|
3078
|
+
/**
|
|
3079
|
+
* @title 滚动条 滑块高亮填充色
|
|
3080
|
+
*/
|
|
1923
3081
|
scrollbarThumbHighlightFillColor?: string;
|
|
1924
|
-
/**
|
|
3082
|
+
/**
|
|
3083
|
+
* @title 点图的大小范围
|
|
3084
|
+
*/
|
|
1925
3085
|
pointSizeRange?: [number, number];
|
|
1926
|
-
/**
|
|
3086
|
+
/**
|
|
3087
|
+
* @title 点图填充颜色
|
|
3088
|
+
*/
|
|
1927
3089
|
pointFillColor?: string;
|
|
1928
|
-
/**
|
|
3090
|
+
/**
|
|
3091
|
+
* @title 点图填充颜色透明度
|
|
3092
|
+
*/
|
|
1929
3093
|
pointFillOpacity?: number;
|
|
1930
|
-
/**
|
|
3094
|
+
/**
|
|
3095
|
+
* @title 点图大小
|
|
3096
|
+
*/
|
|
1931
3097
|
pointSize?: number;
|
|
1932
|
-
/**
|
|
3098
|
+
/**
|
|
3099
|
+
* @title 点图描边粗细
|
|
3100
|
+
*/
|
|
1933
3101
|
pointBorder?: number;
|
|
1934
|
-
/**
|
|
3102
|
+
/**
|
|
3103
|
+
* @title 点图描边颜色
|
|
3104
|
+
*/
|
|
1935
3105
|
pointBorderColor?: string;
|
|
1936
|
-
/**
|
|
3106
|
+
/**
|
|
3107
|
+
* @title 点图描边透明度
|
|
3108
|
+
*/
|
|
1937
3109
|
pointBorderOpacity?: number;
|
|
1938
|
-
/**
|
|
3110
|
+
/**
|
|
3111
|
+
* @title 点图 active 状态下填充颜色
|
|
3112
|
+
*/
|
|
1939
3113
|
pointActiveFillColor?: string;
|
|
1940
|
-
/**
|
|
3114
|
+
/**
|
|
3115
|
+
* @title 点图 active 状态下填充颜色透明度
|
|
3116
|
+
*/
|
|
1941
3117
|
pointActiveFillOpacity?: number;
|
|
1942
|
-
/**
|
|
3118
|
+
/**
|
|
3119
|
+
* @title 点图 active 状态下大小
|
|
3120
|
+
*/
|
|
1943
3121
|
pointActiveSize?: number;
|
|
1944
|
-
/**
|
|
3122
|
+
/**
|
|
3123
|
+
* @title 点图 active 状态下描边粗细
|
|
3124
|
+
*/
|
|
1945
3125
|
pointActiveBorder?: number;
|
|
1946
|
-
/**
|
|
3126
|
+
/**
|
|
3127
|
+
* @title 点图 active 状态下描边颜色
|
|
3128
|
+
*/
|
|
1947
3129
|
pointActiveBorderColor?: string;
|
|
1948
|
-
/**
|
|
3130
|
+
/**
|
|
3131
|
+
* @title 点图 active 状态下描边透明度
|
|
3132
|
+
*/
|
|
1949
3133
|
pointActiveBorderOpacity?: number;
|
|
1950
|
-
/**
|
|
3134
|
+
/**
|
|
3135
|
+
* @title 点图 selected 状态下填充颜色
|
|
3136
|
+
*/
|
|
1951
3137
|
pointSelectedFillColor?: string;
|
|
1952
|
-
/**
|
|
3138
|
+
/**
|
|
3139
|
+
* @title 点图 selected 状态下填充颜色透明度
|
|
3140
|
+
*/
|
|
1953
3141
|
pointSelectedFillOpacity?: number;
|
|
1954
|
-
/**
|
|
3142
|
+
/**
|
|
3143
|
+
* @title 点图 selected 状态下大小
|
|
3144
|
+
*/
|
|
1955
3145
|
pointSelectedSize?: number;
|
|
1956
|
-
/**
|
|
3146
|
+
/**
|
|
3147
|
+
* @title 点图 selected 状态下描边粗细
|
|
3148
|
+
*/
|
|
1957
3149
|
pointSelectedBorder?: number;
|
|
1958
|
-
/**
|
|
3150
|
+
/**
|
|
3151
|
+
* @title 点图 selected 状态下描边颜色
|
|
3152
|
+
*/
|
|
1959
3153
|
pointSelectedBorderColor?: string;
|
|
1960
|
-
/**
|
|
3154
|
+
/**
|
|
3155
|
+
* @title 点图 selected 状态下描边透明度
|
|
3156
|
+
*/
|
|
1961
3157
|
pointSelectedBorderOpacity?: number;
|
|
1962
|
-
/**
|
|
3158
|
+
/**
|
|
3159
|
+
* @title 点图 inactive 状态下填充颜色
|
|
3160
|
+
*/
|
|
1963
3161
|
pointInactiveFillColor?: string;
|
|
1964
|
-
/**
|
|
3162
|
+
/**
|
|
3163
|
+
* @title 点图 inactive 状态下填充颜色透明度
|
|
3164
|
+
*/
|
|
1965
3165
|
pointInactiveFillOpacity?: number;
|
|
1966
|
-
/**
|
|
3166
|
+
/**
|
|
3167
|
+
* @title 点图 inactive 状态下大小
|
|
3168
|
+
*/
|
|
1967
3169
|
pointInactiveSize?: number;
|
|
1968
|
-
/**
|
|
3170
|
+
/**
|
|
3171
|
+
* @title 点图 inactive 状态下描边粗细
|
|
3172
|
+
*/
|
|
1969
3173
|
pointInactiveBorder?: number;
|
|
1970
|
-
/**
|
|
3174
|
+
/**
|
|
3175
|
+
* @title 点图 inactive 状态下描边颜色
|
|
3176
|
+
*/
|
|
1971
3177
|
pointInactiveBorderColor?: string;
|
|
1972
|
-
/**
|
|
3178
|
+
/**
|
|
3179
|
+
* @title 点图 inactive 状态下描边透明度
|
|
3180
|
+
*/
|
|
1973
3181
|
pointInactiveBorderOpacity?: number;
|
|
1974
|
-
/**
|
|
3182
|
+
/**
|
|
3183
|
+
* @title 描边点图大小
|
|
3184
|
+
*/
|
|
1975
3185
|
hollowPointSize?: number;
|
|
1976
|
-
/**
|
|
3186
|
+
/**
|
|
3187
|
+
* @title 描边点图描边粗细
|
|
3188
|
+
*/
|
|
1977
3189
|
hollowPointBorder?: number;
|
|
1978
|
-
/**
|
|
3190
|
+
/**
|
|
3191
|
+
* @title 描边点图描边颜色
|
|
3192
|
+
*/
|
|
1979
3193
|
hollowPointBorderColor?: string;
|
|
1980
|
-
/**
|
|
3194
|
+
/**
|
|
3195
|
+
* @title 描边点图描边透明度
|
|
3196
|
+
*/
|
|
1981
3197
|
hollowPointBorderOpacity?: number;
|
|
1982
|
-
/**
|
|
3198
|
+
/**
|
|
3199
|
+
* @title 描边点图填充颜色
|
|
3200
|
+
*/
|
|
1983
3201
|
hollowPointFillColor?: string;
|
|
1984
|
-
/**
|
|
3202
|
+
/**
|
|
3203
|
+
* @title 描边点图填充透明度
|
|
3204
|
+
*/
|
|
1985
3205
|
hollowPointFillOpacity?: number;
|
|
1986
|
-
/**
|
|
3206
|
+
/**
|
|
3207
|
+
* @title 点 描边 active 状态下大小
|
|
3208
|
+
*/
|
|
1987
3209
|
hollowPointActiveSize?: number;
|
|
1988
|
-
/**
|
|
3210
|
+
/**
|
|
3211
|
+
* @title 点 描边 active 状态下描边粗细
|
|
3212
|
+
*/
|
|
1989
3213
|
hollowPointActiveBorder?: number;
|
|
1990
|
-
/**
|
|
3214
|
+
/**
|
|
3215
|
+
* @title 点 描边 active 状态下描边颜色
|
|
3216
|
+
*/
|
|
1991
3217
|
hollowPointActiveBorderColor?: string;
|
|
1992
|
-
/**
|
|
3218
|
+
/**
|
|
3219
|
+
* @title 点 描边 active 状态下描边透明度
|
|
3220
|
+
*/
|
|
1993
3221
|
hollowPointActiveBorderOpacity?: number;
|
|
1994
|
-
/**
|
|
3222
|
+
/**
|
|
3223
|
+
* @title 点 描边 selected 状态下大小
|
|
3224
|
+
*/
|
|
1995
3225
|
hollowPointSelectedSize?: number;
|
|
1996
|
-
/**
|
|
3226
|
+
/**
|
|
3227
|
+
* @title 点 描边 selected 状态下描边粗细
|
|
3228
|
+
*/
|
|
1997
3229
|
hollowPointSelectedBorder?: number;
|
|
1998
|
-
/**
|
|
3230
|
+
/**
|
|
3231
|
+
* @title 点 描边 selected 状态下描边颜色
|
|
3232
|
+
*/
|
|
1999
3233
|
hollowPointSelectedBorderColor?: string;
|
|
2000
|
-
/**
|
|
3234
|
+
/**
|
|
3235
|
+
* @title 点 描边 selected 状态下描边透明度
|
|
3236
|
+
*/
|
|
2001
3237
|
hollowPointSelectedBorderOpacity?: number;
|
|
2002
|
-
/**
|
|
3238
|
+
/**
|
|
3239
|
+
* @title 点 描边 inactive 状态下大小
|
|
3240
|
+
*/
|
|
2003
3241
|
hollowPointInactiveSize?: number;
|
|
2004
|
-
/**
|
|
3242
|
+
/**
|
|
3243
|
+
* @title 点 描边 inactive 状态下描边粗细
|
|
3244
|
+
*/
|
|
2005
3245
|
hollowPointInactiveBorder?: number;
|
|
2006
|
-
/**
|
|
3246
|
+
/**
|
|
3247
|
+
* @title 点 描边 inactive 状态下描边颜色
|
|
3248
|
+
*/
|
|
2007
3249
|
hollowPointInactiveBorderColor?: string;
|
|
2008
|
-
/**
|
|
3250
|
+
/**
|
|
3251
|
+
* @title 点 描边 inactive 状态下描边透明度
|
|
3252
|
+
*/
|
|
2009
3253
|
hollowPointInactiveBorderOpacity?: number;
|
|
2010
|
-
/**
|
|
3254
|
+
/**
|
|
3255
|
+
* @title 线图粗细
|
|
3256
|
+
*/
|
|
2011
3257
|
lineBorder?: number;
|
|
2012
|
-
/**
|
|
3258
|
+
/**
|
|
3259
|
+
* @title 线图颜色
|
|
3260
|
+
*/
|
|
2013
3261
|
lineBorderColor?: string;
|
|
2014
|
-
/**
|
|
3262
|
+
/**
|
|
3263
|
+
* @title 线图透明度
|
|
3264
|
+
*/
|
|
2015
3265
|
lineBorderOpacity?: number;
|
|
2016
|
-
/**
|
|
3266
|
+
/**
|
|
3267
|
+
* @title 线图 active 状态下粗细
|
|
3268
|
+
*/
|
|
2017
3269
|
lineActiveBorder?: number;
|
|
2018
|
-
/**
|
|
3270
|
+
/**
|
|
3271
|
+
* @title 线图 active 状态下颜色
|
|
3272
|
+
*/
|
|
2019
3273
|
lineActiveBorderColor?: string;
|
|
2020
|
-
/**
|
|
3274
|
+
/**
|
|
3275
|
+
* @title 线图 active 状态下透明度
|
|
3276
|
+
*/
|
|
2021
3277
|
lineActiveBorderOpacity?: number;
|
|
2022
|
-
/**
|
|
3278
|
+
/**
|
|
3279
|
+
* @title 线图 selected 状态下粗细
|
|
3280
|
+
*/
|
|
2023
3281
|
lineSelectedBorder?: number;
|
|
2024
|
-
/**
|
|
3282
|
+
/**
|
|
3283
|
+
* @title 线图 selected 状态下颜色
|
|
3284
|
+
*/
|
|
2025
3285
|
lineSelectedBorderColor?: string;
|
|
2026
|
-
/**
|
|
3286
|
+
/**
|
|
3287
|
+
* @title 线图 selected 状态下透明度
|
|
3288
|
+
*/
|
|
2027
3289
|
lineSelectedBorderOpacity?: number;
|
|
2028
|
-
/**
|
|
3290
|
+
/**
|
|
3291
|
+
* @title 线图 inactive 状态下粗细
|
|
3292
|
+
*/
|
|
2029
3293
|
lineInactiveBorder?: number;
|
|
2030
|
-
/**
|
|
3294
|
+
/**
|
|
3295
|
+
* @title 线图 inactive 状态下颜色
|
|
3296
|
+
*/
|
|
2031
3297
|
lineInactiveBorderColor?: string;
|
|
2032
|
-
/**
|
|
3298
|
+
/**
|
|
3299
|
+
* @title 线图 inactive 状态下透明度
|
|
3300
|
+
*/
|
|
2033
3301
|
lineInactiveBorderOpacity?: number;
|
|
2034
3302
|
areaBorder?: number;
|
|
2035
|
-
/**
|
|
3303
|
+
/**
|
|
3304
|
+
* @title area 边框颜色
|
|
3305
|
+
*/
|
|
2036
3306
|
areaBorderColor?: string;
|
|
2037
|
-
/**
|
|
3307
|
+
/**
|
|
3308
|
+
* @title area 边框透明度
|
|
3309
|
+
*/
|
|
2038
3310
|
areaBorderOpacity?: number;
|
|
2039
|
-
/**
|
|
3311
|
+
/**
|
|
3312
|
+
* @title area 填充颜色
|
|
3313
|
+
*/
|
|
2040
3314
|
areaFillColor?: string;
|
|
2041
|
-
/**
|
|
3315
|
+
/**
|
|
3316
|
+
* @title area 填充透明度
|
|
3317
|
+
*/
|
|
2042
3318
|
areaFillOpacity?: number;
|
|
2043
|
-
/**
|
|
3319
|
+
/**
|
|
3320
|
+
* @title area Active 状态下边框粗细
|
|
3321
|
+
*/
|
|
2044
3322
|
areaActiveBorder?: number;
|
|
2045
|
-
/**
|
|
3323
|
+
/**
|
|
3324
|
+
* @title area Active 状态下边框颜色
|
|
3325
|
+
*/
|
|
2046
3326
|
areaActiveBorderColor?: string;
|
|
2047
|
-
/**
|
|
3327
|
+
/**
|
|
3328
|
+
* @title area Active 状态下边框透明度
|
|
3329
|
+
*/
|
|
2048
3330
|
areaActiveBorderOpacity?: number;
|
|
2049
|
-
/**
|
|
3331
|
+
/**
|
|
3332
|
+
* @title area Active 状态下填充颜色
|
|
3333
|
+
*/
|
|
2050
3334
|
areaActiveFillColor?: string;
|
|
2051
|
-
/**
|
|
3335
|
+
/**
|
|
3336
|
+
* @title area Active 状态下填充透明度
|
|
3337
|
+
*/
|
|
2052
3338
|
areaActiveFillOpacity?: number;
|
|
2053
|
-
/**
|
|
3339
|
+
/**
|
|
3340
|
+
* @title area selected 状态下边框粗细
|
|
3341
|
+
*/
|
|
2054
3342
|
areaSelectedBorder?: number;
|
|
2055
|
-
/**
|
|
3343
|
+
/**
|
|
3344
|
+
* @title area selected 状态下边框颜色
|
|
3345
|
+
*/
|
|
2056
3346
|
areaSelectedBorderColor?: string;
|
|
2057
|
-
/**
|
|
3347
|
+
/**
|
|
3348
|
+
* @title area selected 状态下边框透明度
|
|
3349
|
+
*/
|
|
2058
3350
|
areaSelectedBorderOpacity?: number;
|
|
2059
|
-
/**
|
|
3351
|
+
/**
|
|
3352
|
+
* @title area selected 状态下填充颜色
|
|
3353
|
+
*/
|
|
2060
3354
|
areaSelectedFillColor?: string;
|
|
2061
|
-
/**
|
|
3355
|
+
/**
|
|
3356
|
+
* @title area selected 状态下填充透明度
|
|
3357
|
+
*/
|
|
2062
3358
|
areaSelectedFillOpacity?: number;
|
|
2063
|
-
/**
|
|
3359
|
+
/**
|
|
3360
|
+
* @title area inactive 状态下边框粗细
|
|
3361
|
+
*/
|
|
2064
3362
|
areaInactiveBorder?: number;
|
|
2065
|
-
/**
|
|
3363
|
+
/**
|
|
3364
|
+
* @title area inactive 状态下边框颜色
|
|
3365
|
+
*/
|
|
2066
3366
|
areaInactiveBorderColor?: string;
|
|
2067
|
-
/**
|
|
3367
|
+
/**
|
|
3368
|
+
* @title area inactive 状态下边框透明度
|
|
3369
|
+
*/
|
|
2068
3370
|
areaInactiveBorderOpacity?: number;
|
|
2069
|
-
/**
|
|
3371
|
+
/**
|
|
3372
|
+
* @title area inactive 状态下填充颜色
|
|
3373
|
+
*/
|
|
2070
3374
|
areaInactiveFillColor?: string;
|
|
2071
|
-
/**
|
|
3375
|
+
/**
|
|
3376
|
+
* @title area inactive 状态下填充透明度
|
|
3377
|
+
*/
|
|
2072
3378
|
areaInactiveFillOpacity?: number;
|
|
2073
|
-
/**
|
|
3379
|
+
/**
|
|
3380
|
+
* @title hollowArea 边框粗细
|
|
3381
|
+
*/
|
|
2074
3382
|
hollowAreaBorder?: number;
|
|
2075
|
-
/**
|
|
3383
|
+
/**
|
|
3384
|
+
* @title hollowArea 边框颜色
|
|
3385
|
+
*/
|
|
2076
3386
|
hollowAreaBorderColor?: string;
|
|
2077
|
-
/**
|
|
3387
|
+
/**
|
|
3388
|
+
* @title hollowArea 边框透明度
|
|
3389
|
+
*/
|
|
2078
3390
|
hollowAreaBorderOpacity?: number;
|
|
2079
|
-
/**
|
|
3391
|
+
/**
|
|
3392
|
+
* @title hollowArea Active 状态下边框粗细
|
|
3393
|
+
*/
|
|
2080
3394
|
hollowAreaActiveBorder?: number;
|
|
2081
|
-
/**
|
|
3395
|
+
/**
|
|
3396
|
+
* @title hollowArea Active 状态下边框颜色
|
|
3397
|
+
*/
|
|
2082
3398
|
hollowAreaActiveBorderColor?: string;
|
|
2083
|
-
/**
|
|
3399
|
+
/**
|
|
3400
|
+
* @title hollowArea Active 状态下边框透明度
|
|
3401
|
+
*/
|
|
2084
3402
|
hollowAreaActiveBorderOpacity?: number;
|
|
2085
|
-
/**
|
|
3403
|
+
/**
|
|
3404
|
+
* @title hollowArea selected 状态下边框粗细
|
|
3405
|
+
*/
|
|
2086
3406
|
hollowAreaSelectedBorder?: number;
|
|
2087
|
-
/**
|
|
3407
|
+
/**
|
|
3408
|
+
* @title hollowArea selected 状态下边框颜色
|
|
3409
|
+
*/
|
|
2088
3410
|
hollowAreaSelectedBorderColor?: string;
|
|
2089
|
-
/**
|
|
3411
|
+
/**
|
|
3412
|
+
* @title hollowArea selected 状态下边框透明度
|
|
3413
|
+
*/
|
|
2090
3414
|
hollowAreaSelectedBorderOpacity?: number;
|
|
2091
|
-
/**
|
|
3415
|
+
/**
|
|
3416
|
+
* @title hollowArea inactive 状态下边框粗细
|
|
3417
|
+
*/
|
|
2092
3418
|
hollowAreaInactiveBorder?: number;
|
|
2093
|
-
/**
|
|
3419
|
+
/**
|
|
3420
|
+
* @title hollowArea inactive 状态下边框颜色
|
|
3421
|
+
*/
|
|
2094
3422
|
hollowAreaInactiveBorderColor?: string;
|
|
2095
|
-
/**
|
|
3423
|
+
/**
|
|
3424
|
+
* @title hollowArea inactive 状态下边框透明度
|
|
3425
|
+
*/
|
|
2096
3426
|
hollowAreaInactiveBorderOpacity?: number;
|
|
2097
|
-
/**
|
|
3427
|
+
/**
|
|
3428
|
+
* @title interval 边框粗细
|
|
3429
|
+
*/
|
|
2098
3430
|
intervalBorder?: number;
|
|
2099
|
-
/**
|
|
3431
|
+
/**
|
|
3432
|
+
* @title interval 边框颜色
|
|
3433
|
+
*/
|
|
2100
3434
|
intervalBorderColor?: string;
|
|
2101
|
-
/**
|
|
3435
|
+
/**
|
|
3436
|
+
* @title interval 边框透明度
|
|
3437
|
+
*/
|
|
2102
3438
|
intervalBorderOpacity?: number;
|
|
2103
|
-
/**
|
|
3439
|
+
/**
|
|
3440
|
+
* @title interval 填充颜色
|
|
3441
|
+
*/
|
|
2104
3442
|
intervalFillColor?: string;
|
|
2105
|
-
/**
|
|
3443
|
+
/**
|
|
3444
|
+
* @title interval 填充透明度
|
|
3445
|
+
*/
|
|
2106
3446
|
intervalFillOpacity?: number;
|
|
2107
|
-
/**
|
|
3447
|
+
/**
|
|
3448
|
+
* @title interval active 状态下边框粗细
|
|
3449
|
+
*/
|
|
2108
3450
|
intervalActiveBorder?: number;
|
|
2109
|
-
/**
|
|
3451
|
+
/**
|
|
3452
|
+
* @title interval active 状态下边框颜色
|
|
3453
|
+
*/
|
|
2110
3454
|
intervalActiveBorderColor?: string;
|
|
2111
|
-
/**
|
|
3455
|
+
/**
|
|
3456
|
+
* @title interval active 状态下边框透明度
|
|
3457
|
+
*/
|
|
2112
3458
|
intervalActiveBorderOpacity?: number;
|
|
2113
|
-
/**
|
|
3459
|
+
/**
|
|
3460
|
+
* @title interval active 状态下填充颜色
|
|
3461
|
+
*/
|
|
2114
3462
|
intervalActiveFillColor?: string;
|
|
2115
|
-
/**
|
|
3463
|
+
/**
|
|
3464
|
+
* @title interval active 状态下填充透明度
|
|
3465
|
+
*/
|
|
2116
3466
|
intervalActiveFillOpacity?: number;
|
|
2117
|
-
/**
|
|
3467
|
+
/**
|
|
3468
|
+
* @title interval selected 状态下边框粗细
|
|
3469
|
+
*/
|
|
2118
3470
|
intervalSelectedBorder?: number;
|
|
2119
|
-
/**
|
|
3471
|
+
/**
|
|
3472
|
+
* @title interval selected 状态下边框颜色
|
|
3473
|
+
*/
|
|
2120
3474
|
intervalSelectedBorderColor?: string;
|
|
2121
|
-
/**
|
|
3475
|
+
/**
|
|
3476
|
+
* @title interval selected 状态下边框透明度
|
|
3477
|
+
*/
|
|
2122
3478
|
intervalSelectedBorderOpacity?: number;
|
|
2123
|
-
/**
|
|
3479
|
+
/**
|
|
3480
|
+
* @title interval selected 状态下填充颜色
|
|
3481
|
+
*/
|
|
2124
3482
|
intervalSelectedFillColor?: string;
|
|
2125
|
-
/**
|
|
3483
|
+
/**
|
|
3484
|
+
* @title interval selected 状态下填充透明度
|
|
3485
|
+
*/
|
|
2126
3486
|
intervalSelectedFillOpacity?: number;
|
|
2127
|
-
/**
|
|
3487
|
+
/**
|
|
3488
|
+
* @title interval inactive 状态下边框粗细
|
|
3489
|
+
*/
|
|
2128
3490
|
intervalInactiveBorder?: number;
|
|
2129
|
-
/**
|
|
3491
|
+
/**
|
|
3492
|
+
* @title interval inactive 状态下边框颜色
|
|
3493
|
+
*/
|
|
2130
3494
|
intervalInactiveBorderColor?: string;
|
|
2131
|
-
/**
|
|
3495
|
+
/**
|
|
3496
|
+
* @title interval inactive 状态下边框透明度
|
|
3497
|
+
*/
|
|
2132
3498
|
intervalInactiveBorderOpacity?: number;
|
|
2133
|
-
/**
|
|
3499
|
+
/**
|
|
3500
|
+
* @title interval inactive 状态下填充颜色
|
|
3501
|
+
*/
|
|
2134
3502
|
intervalInactiveFillColor?: string;
|
|
2135
|
-
/**
|
|
3503
|
+
/**
|
|
3504
|
+
* @title interval inactive 状态下填充透明度
|
|
3505
|
+
*/
|
|
2136
3506
|
intervalInactiveFillOpacity?: number;
|
|
2137
|
-
/**
|
|
3507
|
+
/**
|
|
3508
|
+
* @title hollowInterval 边框粗细
|
|
3509
|
+
*/
|
|
2138
3510
|
hollowIntervalBorder?: number;
|
|
2139
|
-
/**
|
|
3511
|
+
/**
|
|
3512
|
+
* @title hollowInterval 边框颜色
|
|
3513
|
+
*/
|
|
2140
3514
|
hollowIntervalBorderColor?: string;
|
|
2141
|
-
/**
|
|
3515
|
+
/**
|
|
3516
|
+
* @title hollowInterval 边框透明度
|
|
3517
|
+
*/
|
|
2142
3518
|
hollowIntervalBorderOpacity?: number;
|
|
2143
|
-
/**
|
|
3519
|
+
/**
|
|
3520
|
+
* @title hollowInterval 填充颜色
|
|
3521
|
+
*/
|
|
2144
3522
|
hollowIntervalFillColor?: string;
|
|
2145
|
-
/**
|
|
3523
|
+
/**
|
|
3524
|
+
* @title hollowInterval 填充透明度
|
|
3525
|
+
*/
|
|
2146
3526
|
hollowIntervalFillOpacity?: number;
|
|
2147
|
-
/**
|
|
3527
|
+
/**
|
|
3528
|
+
* @title hollowInterval active 状态下边框粗细
|
|
3529
|
+
*/
|
|
2148
3530
|
hollowIntervalActiveBorder?: number;
|
|
2149
|
-
/**
|
|
3531
|
+
/**
|
|
3532
|
+
* @title hollowInterval active 状态下边框颜色
|
|
3533
|
+
*/
|
|
2150
3534
|
hollowIntervalActiveBorderColor?: string;
|
|
2151
|
-
/**
|
|
3535
|
+
/**
|
|
3536
|
+
* @title hollowInterval active 状态下边框透明度
|
|
3537
|
+
*/
|
|
2152
3538
|
hollowIntervalActiveBorderOpacity?: number;
|
|
2153
|
-
/**
|
|
3539
|
+
/**
|
|
3540
|
+
* @title hollowInterval selected 状态下边框粗细
|
|
3541
|
+
*/
|
|
2154
3542
|
hollowIntervalSelectedBorder?: number;
|
|
2155
|
-
/**
|
|
3543
|
+
/**
|
|
3544
|
+
* @title hollowInterval selected 状态下边框颜色
|
|
3545
|
+
*/
|
|
2156
3546
|
hollowIntervalSelectedBorderColor?: string;
|
|
2157
|
-
/**
|
|
3547
|
+
/**
|
|
3548
|
+
* @title hollowInterval selected 状态下边框透明度
|
|
3549
|
+
*/
|
|
2158
3550
|
hollowIntervalSelectedBorderOpacity?: number;
|
|
2159
|
-
/**
|
|
3551
|
+
/**
|
|
3552
|
+
* @title hollowInterval inactive 状态下边框粗细
|
|
3553
|
+
*/
|
|
2160
3554
|
hollowIntervalInactiveBorder?: number;
|
|
2161
|
-
/**
|
|
3555
|
+
/**
|
|
3556
|
+
* @title hollowInterval inactive 状态下边框颜色
|
|
3557
|
+
*/
|
|
2162
3558
|
hollowIntervalInactiveBorderColor?: string;
|
|
2163
|
-
/**
|
|
3559
|
+
/**
|
|
3560
|
+
* @title hollowInterval inactive 状态下边框透明度
|
|
3561
|
+
*/
|
|
2164
3562
|
hollowIntervalInactiveBorderOpacity?: number;
|
|
2165
3563
|
}
|
|
2166
|
-
/**
|
|
2167
|
-
|
|
2168
|
-
|
|
3564
|
+
/**
|
|
3565
|
+
* @title createTheme 主题样式表配置
|
|
3566
|
+
*/
|
|
3567
|
+
export declare type StyleSheetCfg = Partial<StyleSheet>;
|
|
3568
|
+
/**
|
|
3569
|
+
* @title 交互反馈的定义
|
|
3570
|
+
*/
|
|
2169
3571
|
export interface IAction {
|
|
2170
3572
|
/**
|
|
2171
3573
|
* 初始化
|
|
@@ -2184,15 +3586,21 @@ export interface IAction {
|
|
|
2184
3586
|
*/
|
|
2185
3587
|
destroy(): any;
|
|
2186
3588
|
}
|
|
2187
|
-
/**
|
|
3589
|
+
/**
|
|
3590
|
+
* @title 交互上下文的接口定义
|
|
3591
|
+
*/
|
|
2188
3592
|
export interface IInteractionContext extends LooseObject {
|
|
2189
|
-
/**
|
|
3593
|
+
/**
|
|
3594
|
+
* @title 事件对象
|
|
3595
|
+
*/
|
|
2190
3596
|
event: LooseObject;
|
|
2191
3597
|
/**
|
|
2192
3598
|
* 当前的 view
|
|
2193
3599
|
*/
|
|
2194
3600
|
view: View;
|
|
2195
|
-
/**
|
|
3601
|
+
/**
|
|
3602
|
+
* @title 交互相关的 Actions
|
|
3603
|
+
*/
|
|
2196
3604
|
actions: IAction[];
|
|
2197
3605
|
/**
|
|
2198
3606
|
* 缓存属性,用于上下文传递信息
|
|
@@ -2244,9 +3652,13 @@ export interface IInteractionContext extends LooseObject {
|
|
|
2244
3652
|
*/
|
|
2245
3653
|
destroy(): any;
|
|
2246
3654
|
}
|
|
2247
|
-
/**
|
|
3655
|
+
/**
|
|
3656
|
+
* @title G 的渲染类型
|
|
3657
|
+
*/
|
|
2248
3658
|
export declare type Renderer = 'svg' | 'canvas';
|
|
2249
|
-
/**
|
|
3659
|
+
/**
|
|
3660
|
+
* @title 数据的定义
|
|
3661
|
+
*/
|
|
2250
3662
|
export declare type Datum = Record<string, any>;
|
|
2251
3663
|
export declare type Data = Datum[];
|
|
2252
3664
|
export declare type ActionCallback = (context: IInteractionContext) => void;
|
|
@@ -2256,9 +3668,15 @@ export declare type ViewAppendPadding = number | number[];
|
|
|
2256
3668
|
export declare type Position = [number, number];
|
|
2257
3669
|
export declare type AttributeType = 'position' | 'size' | 'color' | 'shape';
|
|
2258
3670
|
export declare type ShapeVertices = RangePoint[] | Point[] | Point[][];
|
|
2259
|
-
/**
|
|
3671
|
+
/**
|
|
3672
|
+
* @title easing 的回调函数, 入参 data 为对应的原始数据记录
|
|
3673
|
+
*/
|
|
2260
3674
|
export declare type AnimateEasingCallback = (data: Datum) => string;
|
|
2261
|
-
/**
|
|
3675
|
+
/**
|
|
3676
|
+
* @title delay 的回调函数, 入参 data 为对应的原始数据记录
|
|
3677
|
+
*/
|
|
2262
3678
|
export declare type AnimateDelayCallback = (data: Datum) => number;
|
|
2263
|
-
/**
|
|
3679
|
+
/**
|
|
3680
|
+
* @title duration 的回调函数, 入参 data 为对应的原始数据记录
|
|
3681
|
+
*/
|
|
2264
3682
|
export declare type AnimateDurationCallback = (data: Datum) => number;
|