-
Notifications
You must be signed in to change notification settings - Fork 22
/
types.ts
63 lines (61 loc) · 1.26 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { PointLayerOptions } from '../../core-layers/point-layer/types';
import { CompositeLayerOptions } from '../../core/composite-layer';
import { ISource, SourceOptions } from '../../types';
import { LabelOptions } from '../common/types';
export type BubbleLayerActiveOptions = {
/** 填充颜色 */
fillColor?: false | string;
/** 描边颜色 */
strokeColor?: false | string;
/** 描边的宽度 */
lineWidth?: number;
/** 描边透明度 */
lineOpacity?: number;
};
export interface BubbleLayerOptions extends CompositeLayerOptions {
/**
* 具体的数据
*/
source: SourceOptions | ISource;
/**
* 点半径
*/
radius?: PointLayerOptions['size'];
/**
* 填充色
*/
fillColor?: PointLayerOptions['color'];
/**
* 填充透明度
*/
opacity?: number;
/**
* 描边线宽
*/
lineWidth?: number;
/**
* 描边色
*/
strokeColor?: string;
/**
* 描边透明度
*/
lineOpacity?: number;
/**
* 文本标注
*/
label?: LabelOptions;
/**
* 交互反馈
*/
state?: {
/** 高亮交互 */
active?: boolean | BubbleLayerActiveOptions;
/** 选中交互 */
select?: boolean | BubbleLayerActiveOptions;
};
/**
* 是否启用多选
*/
enabledMultiSelect?: boolean;
}