@aibee/crc-bmap 0.0.40 → 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/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: "2d" | "3d", duration?: number): Promise<unknown>;
76
+ changeMapType(type: MapType, duration?: number): Promise<unknown>;
77
+ resetView(duration?: number): Promise<void>;
71
78
  /**
72
79
  * 缩小地图
73
80
  * @param zoom
@@ -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
  * 按照一个中心点设置相机的放大缩小
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.min.js",
@@ -16,7 +16,9 @@
16
16
  "clean": "rm -rf lib",
17
17
  "lint": "eslint src/**/*.ts",
18
18
  "start": "cd example && vite",
19
- "publish:all": "npm run build && npm version patch && npm publish --access public --registry https://registry.npmjs.org && npm publish --registry https://npm.aibee.cn"
19
+ "publish:all": "npm run build && npm version patch && npm run publish:npm && npm run publish:aibee",
20
+ "publish:npm": "npm publish --access public --registry https://registry.npmjs.org",
21
+ "publish:aibee": "npm publish --registry https://npm.aibee.cn"
20
22
  },
21
23
  "keywords": [],
22
24
  "author": "",