@aibee/crc-bmap 0.0.41 → 0.0.42
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 +1 -1
- package/lib/bmap.cjs.min.js +2 -2
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +73 -10
- package/lib/bmap.esm.js.map +3 -3
- package/lib/bmap.esm.min.js +2 -2
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +2 -2
- package/lib/bmap.min.js.map +3 -3
- package/lib/src/bmap.d.ts +8 -1
- package/lib/src/context.d.ts +5 -0
- package/package.json +1 -1
package/lib/src/bmap.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ interface BmapEventMap {
|
|
|
18
18
|
cameraZoom: number;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
+
export type MapType = "2d" | "3d";
|
|
22
|
+
export declare enum MapTypePolar {
|
|
23
|
+
D2 = 0,
|
|
24
|
+
D3 = 0.9
|
|
25
|
+
}
|
|
21
26
|
export declare class BMap extends EventDispatcher<BmapEventMap> {
|
|
22
27
|
private container;
|
|
23
28
|
config: Config;
|
|
@@ -28,6 +33,7 @@ export declare class BMap extends EventDispatcher<BmapEventMap> {
|
|
|
28
33
|
private svgPolygon?;
|
|
29
34
|
basicZoom: number;
|
|
30
35
|
private prevCameraZoom;
|
|
36
|
+
type: MapType;
|
|
31
37
|
floorDataMap: Map<string, GraphicInfo[]>;
|
|
32
38
|
buildingGroundMap: Map<string, GraphicInfo | null>;
|
|
33
39
|
currentBuildGround: GraphicInfo | null;
|
|
@@ -67,7 +73,8 @@ export declare class BMap extends EventDispatcher<BmapEventMap> {
|
|
|
67
73
|
* @param type
|
|
68
74
|
* @param duration
|
|
69
75
|
*/
|
|
70
|
-
changeMapType(type:
|
|
76
|
+
changeMapType(type: MapType, duration?: number): Promise<unknown>;
|
|
77
|
+
resetView(duration?: number): Promise<void>;
|
|
71
78
|
/**
|
|
72
79
|
* 缩小地图
|
|
73
80
|
* @param zoom
|
package/lib/src/context.d.ts
CHANGED
|
@@ -99,6 +99,11 @@ export declare class Context extends EventDispatcher<ContextEventMap> {
|
|
|
99
99
|
* @param polar 弧度
|
|
100
100
|
*/
|
|
101
101
|
setPolarAngle(polar: number, duration?: number): Promise<unknown>;
|
|
102
|
+
/**
|
|
103
|
+
* 设置横向旋转角度
|
|
104
|
+
* @param azimuthal 弧度
|
|
105
|
+
*/
|
|
106
|
+
setAzimuthalAngle(azimuthal: number, duration?: number): Promise<unknown>;
|
|
102
107
|
getCameraLookAt(): Vector3;
|
|
103
108
|
/**
|
|
104
109
|
* 按照一个中心点设置相机的放大缩小
|