@aibee/crc-bmap 0.0.16 → 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
@@ -1,8 +1,8 @@
1
1
  import { EventDispatcher, Object3D } from "three";
2
2
  import { Context } from "./context";
3
3
  import { Config } from './config';
4
- import { Graphic, GraphicOptionsParam, HeatmapDataParam, PoiOptionsParam } from "./elements";
5
- import { GraphicInfo } from "./types";
4
+ import { Graphic, HeatmapDataParam, PoiOptionsParam } from "./elements";
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
  /**
@@ -102,6 +106,6 @@ export declare class BMap extends EventDispatcher {
102
106
  */
103
107
  getGraphicByNodeId(nodeId: string): Graphic | null;
104
108
  deleteGraphic(graphic: Graphic): void;
105
- createGraphicByOptions(options: GraphicOptionsParam): Graphic | undefined;
109
+ createGraphicByOptions(options: GraphicOptions): Graphic | undefined;
106
110
  dispose(): void;
107
111
  }
@@ -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.16",
3
+ "version": "0.0.17",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.min.js",