@aibee/crc-bmap 0.8.36 → 0.8.37

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.
@@ -1,12 +1,13 @@
1
1
  import { Plugin } from "../base";
2
2
  import { PoiLayer2 } from "../../layer";
3
- import { Group, Box3 } from "three";
3
+ import { Group, Box3, Vector3 } from "three";
4
4
  export class MulFloors extends Plugin {
5
5
  show(floors) {
6
- let height = floors[0].userData.height;
6
+ let height = 0;
7
7
  floors.forEach((floor)=>{
8
8
  floor.poiLayer2.pois.forEach((poi)=>{
9
- poi.position.setZ(poi.position.z + height);
9
+ const z = new Vector3().setFromMatrixPosition(poi.matrixWorld).z;
10
+ poi.position.setZ(z + height);
10
11
  poi.options.depth_test = true;
11
12
  this.poiLayer.pushPoi(poi);
12
13
  });
@@ -197,7 +197,6 @@ export class RoadNetwork2 {
197
197
  }
198
198
  // 正寻的车位线是不标注方向的,默认都是双向通行
199
199
  if ((fromPoint.type === "parkingSpace" || toPoint.type === "parkingSpace") && item.direction === "noDir") {
200
- console.log("到车位的线");
201
200
  this.addLineItem(fromKey, toKey, distance, this.forwardLineMap);
202
201
  this.addLineItem(toKey, fromKey, distance, this.forwardLineMap);
203
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.8.36",
3
+ "version": "0.8.37",
4
4
  "description": "",
5
5
  "main": "lib/bmap.min.js",
6
6
  "module": "lib/bmap.esm.js",