@aibee/crc-bmap 0.0.116 → 0.0.118

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.
@@ -15,6 +15,7 @@ export declare class Floor extends Object3D {
15
15
  glbModelLayer: Layer;
16
16
  laneLayer: Layer;
17
17
  grounds: Set<Graphic>;
18
+ groundLayer: Layer;
18
19
  shadow: Shadow;
19
20
  heatmap?: HeatmapElement;
20
21
  groundUpper: Object3D<import("three").Object3DEventMap>;
@@ -1,6 +1,6 @@
1
1
  import { PolygonGeometry } from "../types";
2
2
  import { Context } from "../context";
3
- import { BufferGeometry, LineBasicMaterial, LineSegments, Mesh, MeshBasicMaterial, Object3D, Vector3 } from "three";
3
+ import { BufferGeometry, LineBasicMaterial, LineSegments, Mesh, Object3D, ShaderMaterial, Vector3 } from "three";
4
4
  export interface WallOptions {
5
5
  id: string;
6
6
  height: number;
@@ -16,14 +16,14 @@ export declare class Wall extends Object3D {
16
16
  private context;
17
17
  options: WallOptions[];
18
18
  geometry?: BufferGeometry;
19
- material?: MeshBasicMaterial[];
19
+ material?: ShaderMaterial;
20
20
  lineMaterial?: LineBasicMaterial;
21
21
  lineGeometry?: BufferGeometry;
22
22
  Mesh?: Mesh;
23
23
  LineMesh?: LineSegments;
24
24
  constructor(context: Context, options: WallOptions[]);
25
25
  initGeometry(): void;
26
- initMaterial(): MeshBasicMaterial[];
26
+ initMaterial(): void;
27
27
  initLineMaterial(): LineBasicMaterial;
28
28
  getBorderPoints(option: WallOptions): Vector3[];
29
29
  initLineGeometry(): void;
@@ -7,21 +7,32 @@ export interface AibeeLoaderOption {
7
7
  export declare const defaultAibeeLoaderOption: {
8
8
  loadRoadNetwork: boolean;
9
9
  };
10
+ export interface AibeeFloorInfo {
11
+ floor_id: number;
12
+ map_url: string;
13
+ map_url_bin: string;
14
+ route_url: string;
15
+ route_url_bin: string;
16
+ version_id: string;
17
+ floor: string;
18
+ floor_name: string;
19
+ }
10
20
  export declare class AibeeLoader {
11
21
  bmap: BMap;
12
- placeId: number | null;
13
- canUseZstd: boolean;
14
- worker: any;
22
+ floors: AibeeFloorInfo[];
15
23
  constructor(bmap: BMap);
16
24
  initDb(): Promise<void>;
17
- load(placeId: number): Promise<void>;
18
- getFloorData(floor: string): Promise<Floor>;
19
- getRoadNetworkData(): Promise<void>;
25
+ load(data: string | AibeeFloorInfo[]): Promise<void>;
26
+ setCacheData(storeName: string, key: string | number, data: any): Promise<unknown>;
27
+ getCacheData<T>(storeName: string, key: string | number): Promise<T>;
28
+ getFloorCacheKey(floorInfo: AibeeFloorInfo): string;
29
+ getFloorData(floor: string): Promise<Floor | null>;
30
+ getFloorDataByFloorInfo(floorInfo: AibeeFloorInfo): Promise<Floor>;
31
+ getRoadNetworkData(): Promise<any[]>;
20
32
  getOtherDataByFreeTime(): Promise<void>;
21
- getMulFloorsData(floor: string[]): Promise<Floor[]>;
33
+ getMulFloorsData(floors: string[]): Promise<Floor[]>;
22
34
  getDataByUrl(url: string): Promise<Floor>;
23
35
  getDataByJson(data: AibeeFloorData): Floor;
24
36
  clear(): void;
25
- setCanUseZstd(bool: boolean): void;
26
37
  dispose(): void;
27
38
  }
@@ -3,7 +3,10 @@
3
3
  * @param database
4
4
  * @returns
5
5
  */
6
- export declare function createDb(database?: string): Promise<IDBDatabase>;
6
+ export declare function createDb(database?: string): Promise<{
7
+ db: IDBDatabase;
8
+ type: string;
9
+ }>;
7
10
  /**
8
11
  * 查询数据
9
12
  * @param storeName
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.js",
@@ -50,7 +50,6 @@
50
50
  "lodash": "^4.17.21",
51
51
  "meshline": "^3.3.0",
52
52
  "node-dijkstra": "^2.5.0",
53
- "three": "^0.157.0",
54
- "zstddec": "^0.1.0"
53
+ "three": "^0.157.0"
55
54
  }
56
55
  }
@@ -1 +0,0 @@
1
- export {};