@aibee/crc-bmap 0.0.31 → 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.
- package/example/src/main.ts +16 -14
- package/lib/bmap.cjs.min.js +2 -2
- package/lib/bmap.cjs.min.js.map +4 -4
- package/lib/bmap.esm.js +35 -6
- package/lib/bmap.esm.js.map +3 -3
- package/lib/bmap.esm.min.js +2 -2
- package/lib/bmap.esm.min.js.map +4 -4
- package/lib/bmap.min.js +2 -2
- package/lib/bmap.min.js.map +4 -4
- package/lib/src/bmap.d.ts +10 -1
- package/lib/src/elements/poi.d.ts +1 -1
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/sleep.d.ts +1 -0
- package/package.json +1 -1
package/lib/src/bmap.d.ts
CHANGED
|
@@ -12,7 +12,13 @@ export interface LoadQuery {
|
|
|
12
12
|
ts: string;
|
|
13
13
|
resource_type_list: string;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface BmapEventMap {
|
|
16
|
+
"zoom-change": {
|
|
17
|
+
basicZoom: number;
|
|
18
|
+
cameraZoom: number;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare class BMap extends EventDispatcher<BmapEventMap> {
|
|
16
22
|
private container;
|
|
17
23
|
config: Config;
|
|
18
24
|
context: Context;
|
|
@@ -21,6 +27,7 @@ export declare class BMap extends EventDispatcher {
|
|
|
21
27
|
private svgLine?;
|
|
22
28
|
private svgPolygon?;
|
|
23
29
|
basicZoom: number;
|
|
30
|
+
private prevCameraZoom;
|
|
24
31
|
floorDataMap: Map<string, GraphicInfo[]>;
|
|
25
32
|
buildingGroundMap: Map<string, GraphicInfo | null>;
|
|
26
33
|
currentBuildGround: GraphicInfo | null;
|
|
@@ -32,6 +39,7 @@ export declare class BMap extends EventDispatcher {
|
|
|
32
39
|
load({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): Promise<GraphicInfo[] | undefined>;
|
|
33
40
|
private createFloor;
|
|
34
41
|
switchFloor({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): Promise<void>;
|
|
42
|
+
onControlChange: () => void;
|
|
35
43
|
addHeatmap(data: HeatmapDataParam): import("./elements").HeatmapElement | undefined;
|
|
36
44
|
getLegacyToGraphicMap(): any;
|
|
37
45
|
/**
|
|
@@ -115,3 +123,4 @@ export declare class BMap extends EventDispatcher {
|
|
|
115
123
|
removeSelectGraphic(graphic: Graphic): void;
|
|
116
124
|
dispose(): void;
|
|
117
125
|
}
|
|
126
|
+
export {};
|
package/lib/src/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleepOnePromise(): Promise<void>;
|