@aibee/crc-bmap 0.14.9 → 0.14.10

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/meta.json CHANGED
@@ -1790,7 +1790,7 @@
1790
1790
  "format": "esm"
1791
1791
  },
1792
1792
  "../lib/src/layer/graphic-layer.js": {
1793
- "bytes": 3178,
1793
+ "bytes": 3254,
1794
1794
  "imports": [
1795
1795
  {
1796
1796
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -1888,7 +1888,7 @@
1888
1888
  "format": "esm"
1889
1889
  },
1890
1890
  "../lib/src/layer/parking-layer.js": {
1891
- "bytes": 8704,
1891
+ "bytes": 9968,
1892
1892
  "imports": [
1893
1893
  {
1894
1894
  "path": "core-js/modules/es.regexp.exec.js",
@@ -4585,7 +4585,7 @@
4585
4585
  "format": "esm"
4586
4586
  },
4587
4587
  "../lib/src/context/context.js": {
4588
- "bytes": 17420,
4588
+ "bytes": 18026,
4589
4589
  "imports": [
4590
4590
  {
4591
4591
  "path": "core-js/modules/web.dom-collections.iterator.js",
@@ -5415,7 +5415,7 @@
5415
5415
  "format": "esm"
5416
5416
  },
5417
5417
  "../lib/src/plugins/mul-floors/mul-floors.js": {
5418
- "bytes": 4148,
5418
+ "bytes": 4174,
5419
5419
  "imports": [
5420
5420
  {
5421
5421
  "path": "core-js/modules/web.dom-collections.iterator.js",
@@ -9305,7 +9305,7 @@
9305
9305
  "bytesInOutput": 10820
9306
9306
  },
9307
9307
  "../lib/src/context/context.js": {
9308
- "bytesInOutput": 8784
9308
+ "bytesInOutput": 9017
9309
9309
  },
9310
9310
  "../lib/src/utils/timer.js": {
9311
9311
  "bytesInOutput": 1783
@@ -9482,7 +9482,7 @@
9482
9482
  "bytesInOutput": 410
9483
9483
  },
9484
9484
  "../lib/src/layer/graphic-layer.js": {
9485
- "bytesInOutput": 1279
9485
+ "bytesInOutput": 1312
9486
9486
  },
9487
9487
  "../lib/src/layer/layer.js": {
9488
9488
  "bytesInOutput": 424
@@ -9494,7 +9494,7 @@
9494
9494
  "bytesInOutput": 1754
9495
9495
  },
9496
9496
  "../lib/src/layer/parking-layer.js": {
9497
- "bytesInOutput": 3584
9497
+ "bytesInOutput": 3999
9498
9498
  },
9499
9499
  "../lib/src/layer/merged-model-layer.js": {
9500
9500
  "bytesInOutput": 252
@@ -9671,7 +9671,7 @@
9671
9671
  "bytesInOutput": 3438
9672
9672
  },
9673
9673
  "../lib/src/plugins/mul-floors/mul-floors.js": {
9674
- "bytesInOutput": 2251
9674
+ "bytesInOutput": 2266
9675
9675
  },
9676
9676
  "../lib/src/plugins/nav-path/nav-path.js": {
9677
9677
  "bytesInOutput": 1752
@@ -9764,7 +9764,7 @@
9764
9764
  "bytesInOutput": 575
9765
9765
  }
9766
9766
  },
9767
- "bytes": 405076
9767
+ "bytes": 405772
9768
9768
  }
9769
9769
  }
9770
9770
  }
@@ -18,6 +18,7 @@ export declare class GraphicLayer extends Layer {
18
18
  getGraphicByRaycaster(raycaster: Raycaster): {
19
19
  graphics: Graphic[];
20
20
  position: Vector3 | null;
21
+ distance: number;
21
22
  };
22
23
  setGraphicOptions(id: string, options: (GraphicOptionsParam | ((options: GraphicOptions) => GraphicOptions))): void;
23
24
  getGraphicPosition(nodeId: string): number[] | null;
@@ -1,6 +1,7 @@
1
1
  import { Graphic, InstancedGraphic, InstancedParkingSpace } from "../elements";
2
2
  import { ParkingOption } from "../types";
3
3
  import { Layer } from "./layer";
4
+ import { Raycaster, Vector3 } from "three";
4
5
  import { Context } from "../context";
5
6
  import { AibeeParkingSpaceLayer } from "src/loader/AibeeLoader/type";
6
7
  type MergedElements = AibeeParkingSpaceLayer['mergedElements'];
@@ -25,6 +26,15 @@ export declare class ParkingLayer extends Layer {
25
26
  setOpacity(opacity: number, force?: boolean): void;
26
27
  getParkingOptionsByParkingNo(parkingNo: string): ParkingOption | null;
27
28
  getGraphicPosition(nodeId: string): number[] | null | undefined;
29
+ /**
30
+ * 获取射线相交的元素
31
+ * @param raycaster
32
+ */
33
+ getParkingSpaceByRaycaster(raycaster: Raycaster): {
34
+ graphics: Graphic[];
35
+ position: Vector3 | null;
36
+ distance: number;
37
+ };
28
38
  dispose(): void;
29
39
  }
30
40
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.14.9",
3
+ "version": "0.14.10",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.esm.min.js",