bbl-mapbox-react 0.0.30 → 0.0.32

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.
@@ -0,0 +1,47 @@
1
+ import { Map as MapboxMap } from 'mapbox-gl';
2
+ import { AttackDirectionEntity, EntityId, NameConfig, EditHandle } from '../types';
3
+ import { BaseRenderer, EntityBounds } from './BaseRenderer';
4
+ export declare class AttackDirectionRenderer implements BaseRenderer<AttackDirectionEntity> {
5
+ private map;
6
+ private entity;
7
+ private isSelected;
8
+ private sourceId;
9
+ private fillLayerId;
10
+ private strokeLayerId;
11
+ private labelLayerId;
12
+ private initialized;
13
+ private globalNameConfig?;
14
+ private globalSelectNameConfig?;
15
+ private cachedPolygon;
16
+ private isEditing;
17
+ private editSourceId;
18
+ private editHandleLayerId;
19
+ private editMoveLayerId;
20
+ private static readonly DEFAULTS;
21
+ constructor(map: MapboxMap, entity: AttackDirectionEntity, globalNameConfig?: NameConfig, globalSelectNameConfig?: NameConfig);
22
+ /** 计算实际尾部宽度(米):优先 tailWidthRatio,其次 tailWidth,默认 0.4 倍起止点距离 */
23
+ private resolveTailWidth;
24
+ private get nameStyle();
25
+ private get selectNameStyle();
26
+ private initLayers;
27
+ private getGeoJSON;
28
+ getEntityId(): EntityId;
29
+ getCenter(): [number, number];
30
+ getBounds(): EntityBounds;
31
+ getLayerId(): string;
32
+ getLabelLayerId(): string | null;
33
+ setSelected(selected: boolean): void;
34
+ isPointInEntity(lngLat: [number, number]): boolean;
35
+ private pointInPolygon;
36
+ update(entity: AttackDirectionEntity): void;
37
+ private getEditHandleGeoJSON;
38
+ private createEditLayers;
39
+ private removeEditLayers;
40
+ private refreshEditHandles;
41
+ setEditing(enabled: boolean): void;
42
+ getEditHandleAt(lngLat: [number, number], _zoom: number): EditHandle | null;
43
+ applyHandleMove(handle: EditHandle, newPosition: [number, number]): AttackDirectionEntity;
44
+ updateEditPreview(handle: EditHandle, previewPosition: [number, number]): void;
45
+ cancelEditPreview(): void;
46
+ destroy(): void;
47
+ }