1 | import { BBox, IGroup, IShape } from '../../dependents';
|
2 | import { LooseObject } from '../../interface';
|
3 | import { GeometryLabelConstructor } from './base';
|
4 | import { LabelItem } from './interface';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | declare type GeometryLabelsLayoutFn = (items: LabelItem[], labels: IGroup[], shapes: IShape[] | IGroup[], region: BBox, cfg?: LooseObject) => void;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare function getGeometryLabel(type: string): GeometryLabelConstructor;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function registerGeometryLabel(type: string, ctor: GeometryLabelConstructor): void;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare function getGeometryLabelLayout(type: string): GeometryLabelsLayoutFn;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function registerGeometryLabelLayout(type: string, layoutFn: GeometryLabelsLayoutFn): void;
|
38 | export {};
|