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