@aibee/crc-bmap 0.0.41 → 0.0.43

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;
@@ -38,7 +44,7 @@ export declare class BMap extends EventDispatcher<BmapEventMap> {
38
44
  getFloorKey({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): string;
39
45
  load({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): Promise<GraphicInfo[] | undefined>;
40
46
  private createFloor;
41
- switchFloor({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): Promise<void>;
47
+ switchFloor({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): void;
42
48
  onControlChange: () => void;
43
49
  addHeatmap(data: HeatmapDataParam): import("./elements").HeatmapElement | undefined;
44
50
  getLegacyToGraphicMap(): Map<string, Graphic>;
@@ -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
  * 按照一个中心点设置相机的放大缩小
@@ -1,4 +1,4 @@
1
- import { Graphic } from "../../elements";
1
+ import { Graphic, Poi } from "../../elements";
2
2
  import { Context } from "../../context";
3
3
  import { EventDispatcher } from "three";
4
4
  import { Timer } from "../../utils";
@@ -13,8 +13,9 @@ export declare class HoverHelper extends EventDispatcher<HoverHelperEventMap> {
13
13
  timer: Timer;
14
14
  graphicTimerMap: Map<Graphic, number>;
15
15
  constructor(context: Context);
16
- onPointerMove: ({ graphics }: {
16
+ onPointerMove: ({ graphics, pois }: {
17
17
  graphics: Graphic[];
18
+ pois: Poi[];
18
19
  }) => void;
19
20
  onPointerLevel: () => void;
20
21
  handleHoverGraphicsChange(graphics?: Set<Graphic>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.min.js",