@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/example/index.html +1 -0
- package/example/src/main.ts +69 -2
- package/lib/bmap.cjs.min.js +2 -2
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +42 -6
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +2 -2
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +2 -2
- package/lib/bmap.min.js.map +3 -3
- package/lib/src/bmap.d.ts +8 -4
- package/lib/src/types/index.d.ts +1 -1
- package/package.json +1 -1
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,
|
|
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:
|
|
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:
|
|
109
|
+
createGraphicByOptions(options: GraphicOptions): Graphic | undefined;
|
|
106
110
|
dispose(): void;
|
|
107
111
|
}
|
package/lib/src/types/index.d.ts
CHANGED