@aibee/crc-bmap 0.0.31 → 0.0.33
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 +50 -11
- 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 +11 -2
- package/lib/src/elements/overlay.d.ts +1 -0
- package/lib/src/elements/poi.d.ts +2 -1
- package/lib/src/layer/poi-layer.d.ts +2 -0
- 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,8 +39,9 @@ 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
|
-
getLegacyToGraphicMap():
|
|
44
|
+
getLegacyToGraphicMap(): Map<string, Graphic>;
|
|
37
45
|
/**
|
|
38
46
|
* 获取当前楼层全部的graphic
|
|
39
47
|
* @returns
|
|
@@ -115,3 +123,4 @@ export declare class BMap extends EventDispatcher {
|
|
|
115
123
|
removeSelectGraphic(graphic: Graphic): void;
|
|
116
124
|
dispose(): void;
|
|
117
125
|
}
|
|
126
|
+
export {};
|
|
@@ -17,6 +17,7 @@ export declare class Overlay extends EventDispatcher {
|
|
|
17
17
|
setVisible(visible: boolean, display?: string): void;
|
|
18
18
|
setOpacity(opacity: number): void;
|
|
19
19
|
getPosition(): Vector3;
|
|
20
|
+
get withinDisplayRange(): boolean;
|
|
20
21
|
onUpdate: () => void;
|
|
21
22
|
registryEvent(): void;
|
|
22
23
|
unRegistryEvent(): void;
|
|
@@ -31,7 +31,8 @@ export declare class Poi extends Object3D<PoiEventMap> {
|
|
|
31
31
|
height: number;
|
|
32
32
|
};
|
|
33
33
|
constructor(context: Context, options: PoiOptionsParam);
|
|
34
|
-
|
|
34
|
+
get withinDisplayRange(): boolean;
|
|
35
|
+
resetSize(): Promise<void>;
|
|
35
36
|
get clientPos(): {
|
|
36
37
|
x: number;
|
|
37
38
|
y: number;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Poi, PoiOptionsParam } from "../elements";
|
|
2
2
|
import { Layer } from "./layer";
|
|
3
3
|
import { Context } from '../context';
|
|
4
|
+
import { Timer } from "../utils";
|
|
4
5
|
export declare class PoiLayer extends Layer {
|
|
5
6
|
pois: Poi[];
|
|
6
7
|
debounceCollisionDetection: () => void;
|
|
8
|
+
timer: Timer;
|
|
7
9
|
constructor(context: Context);
|
|
8
10
|
clear(): this;
|
|
9
11
|
createPoi(options: PoiOptionsParam): Poi;
|
package/lib/src/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sleepOnePromise(): Promise<void>;
|