@aibee/crc-bmap 0.0.15 → 0.0.17

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
@@ -2,7 +2,7 @@ import { EventDispatcher, Object3D } from "three";
2
2
  import { Context } from "./context";
3
3
  import { Config } from './config';
4
4
  import { Graphic, HeatmapDataParam, PoiOptionsParam } from "./elements";
5
- import { GraphicInfo } from "./types";
5
+ import { GraphicInfo, GraphicOptions } from "./types";
6
6
  export interface LoadQuery {
7
7
  brand: string;
8
8
  project: string;
@@ -21,12 +21,16 @@ export declare class BMap extends EventDispatcher {
21
21
  private svgPolygon?;
22
22
  basicZoom: number;
23
23
  floorDataMap: Map<string, GraphicInfo[]>;
24
+ buildingGroundMap: Map<string, GraphicInfo | null>;
25
+ currentBuildGround: GraphicInfo | null;
24
26
  constructor(container: HTMLElement, config?: Partial<Config>);
25
27
  private loadGraphics;
28
+ getBuildingKey({ brand, project, phase, building }: Omit<LoadQuery, "floor" | "ts">): string;
26
29
  private loadBuildingGround;
30
+ getFloorKey({ brand, project, phase, building, floor, ts }: LoadQuery): string;
27
31
  load({ brand, project, phase, building, floor, ts }: LoadQuery): Promise<GraphicInfo[] | undefined>;
28
32
  private createFloor;
29
- switchFloor(floor: string): Promise<void>;
33
+ switchFloor({ brand, project, phase, building, floor, ts }: LoadQuery): Promise<void>;
30
34
  addHeatmap(data: HeatmapDataParam): import("./elements").HeatmapElement | undefined;
31
35
  getLegacyToGraphicMap(): any;
32
36
  /**
@@ -97,5 +101,11 @@ export declare class BMap extends EventDispatcher {
97
101
  * 取消测量面积
98
102
  */
99
103
  cancelArea(): void;
104
+ /**
105
+ * 根据nodeId 获取graphic
106
+ */
107
+ getGraphicByNodeId(nodeId: string): Graphic | null;
108
+ deleteGraphic(graphic: Graphic): void;
109
+ createGraphicByOptions(options: GraphicOptions): Graphic | undefined;
100
110
  dispose(): void;
101
111
  }
@@ -3,6 +3,7 @@ import { Raycaster, Vector3 } from "three";
3
3
  import { Layer } from "./layer";
4
4
  import { Context } from "../context";
5
5
  export declare class GraphicLayer extends Layer {
6
+ graphicMap: Map<string, Graphic>;
6
7
  constructor(context: Context);
7
8
  getCenter(): Vector3;
8
9
  createGraphic(options: GraphicOptionsParam): Graphic;
@@ -9,7 +9,7 @@ export interface PolygonGeometry {
9
9
  type: "polygon";
10
10
  cds: Coordinate[][];
11
11
  curveCpt: Coordinate[];
12
- curveIndex: [];
12
+ curveIndex: number[];
13
13
  }
14
14
  export interface GraphicOptions {
15
15
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.min.js",