@aibee/crc-bmap 0.0.16 → 0.0.19

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;
@@ -10,6 +10,7 @@ export interface LoadQuery {
10
10
  building: string;
11
11
  floor: string;
12
12
  ts: string;
13
+ resource_type_list: string;
13
14
  }
14
15
  export declare class BMap extends EventDispatcher {
15
16
  private container;
@@ -21,12 +22,16 @@ export declare class BMap extends EventDispatcher {
21
22
  private svgPolygon?;
22
23
  basicZoom: number;
23
24
  floorDataMap: Map<string, GraphicInfo[]>;
25
+ buildingGroundMap: Map<string, GraphicInfo | null>;
26
+ currentBuildGround: GraphicInfo | null;
24
27
  constructor(container: HTMLElement, config?: Partial<Config>);
25
28
  private loadGraphics;
29
+ getBuildingKey({ brand, project, phase, building }: Omit<LoadQuery, "floor" | "ts" | "resource_type_list">): string;
26
30
  private loadBuildingGround;
27
- load({ brand, project, phase, building, floor, ts }: LoadQuery): Promise<GraphicInfo[] | undefined>;
31
+ getFloorKey({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): string;
32
+ load({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): Promise<GraphicInfo[] | undefined>;
28
33
  private createFloor;
29
- switchFloor(floor: string): Promise<void>;
34
+ switchFloor({ brand, project, phase, building, floor, ts, resource_type_list }: LoadQuery): Promise<void>;
30
35
  addHeatmap(data: HeatmapDataParam): import("./elements").HeatmapElement | undefined;
31
36
  getLegacyToGraphicMap(): any;
32
37
  /**
@@ -102,6 +107,6 @@ export declare class BMap extends EventDispatcher {
102
107
  */
103
108
  getGraphicByNodeId(nodeId: string): Graphic | null;
104
109
  deleteGraphic(graphic: Graphic): void;
105
- createGraphicByOptions(options: GraphicOptionsParam): Graphic | undefined;
110
+ createGraphicByOptions(options: GraphicOptions): Graphic | undefined;
106
111
  dispose(): void;
107
112
  }
@@ -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.19",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.min.js",