@aibee/crc-bmap 0.0.126 → 0.0.127
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/bmap.cjs.min.js +5 -5
- package/lib/bmap.cjs.min.js.map +3 -3
- package/lib/bmap.esm.js +18 -11
- package/lib/bmap.esm.js.map +3 -3
- package/lib/bmap.esm.min.js +6 -6
- package/lib/bmap.esm.min.js.map +3 -3
- package/lib/bmap.min.js +6 -6
- package/lib/bmap.min.js.map +3 -3
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -4107,7 +4107,7 @@ var GlbModel = class extends Object3D11 {
|
|
|
4107
4107
|
};
|
|
4108
4108
|
|
|
4109
4109
|
// src/elements/lane.ts
|
|
4110
|
-
import { BufferGeometry as BufferGeometry3,
|
|
4110
|
+
import { BufferGeometry as BufferGeometry3, LineSegments as LineSegments3, Mesh as Mesh6, Object3D as Object3D12, ShapeGeometry, Vector3 as Vector313 } from "three";
|
|
4111
4111
|
import { mergeGeometries as mergeGeometries2 } from "three/examples/jsm/utils/BufferGeometryUtils";
|
|
4112
4112
|
import { Line2 } from "three/examples/jsm/lines/Line2";
|
|
4113
4113
|
import { LineGeometry } from "three/examples/jsm/lines/LineGeometry";
|
|
@@ -4130,15 +4130,10 @@ var Lane = class extends Object3D12 {
|
|
|
4130
4130
|
initGeometry() {
|
|
4131
4131
|
const geometries = this.options.map((option) => {
|
|
4132
4132
|
const shape = initShape(
|
|
4133
|
-
option.geometry.coords[0],
|
|
4133
|
+
option.geometry.coords[0].slice(0, -1),
|
|
4134
4134
|
option.geometry.coords.slice(1)
|
|
4135
4135
|
);
|
|
4136
|
-
const geometry = new
|
|
4137
|
-
steps: 1,
|
|
4138
|
-
bevelEnabled: false,
|
|
4139
|
-
depth: 0,
|
|
4140
|
-
curveSegments: 4
|
|
4141
|
-
});
|
|
4136
|
+
const geometry = new ShapeGeometry(shape, 4);
|
|
4142
4137
|
return geometry;
|
|
4143
4138
|
});
|
|
4144
4139
|
this.geometry = mergeGeometries2(geometries);
|
|
@@ -7904,13 +7899,17 @@ var AibeeLoader = class {
|
|
|
7904
7899
|
const graphic = floor.addGraphic(options);
|
|
7905
7900
|
floor.userData.graphics.push(graphic);
|
|
7906
7901
|
floor.userData.graphicMap.set(options.id, graphic);
|
|
7907
|
-
floor.poiLayer.createPoi({
|
|
7902
|
+
const poi = floor.poiLayer.createPoi({
|
|
7908
7903
|
id: options.id,
|
|
7909
7904
|
icon: options.poi_info.icon,
|
|
7910
7905
|
texts: [{ text: options.poi_info.showName || options.store_name || options.poi_info.text }],
|
|
7911
7906
|
position: { x: pos[0], y: pos[1], z: options.airHeight },
|
|
7912
7907
|
icon_size: [18, 18]
|
|
7913
7908
|
});
|
|
7909
|
+
if (poi) {
|
|
7910
|
+
poi.userData.type = "store";
|
|
7911
|
+
poi.userData.data = options;
|
|
7912
|
+
}
|
|
7914
7913
|
});
|
|
7915
7914
|
break;
|
|
7916
7915
|
case "facility":
|
|
@@ -7921,13 +7920,17 @@ var AibeeLoader = class {
|
|
|
7921
7920
|
floor.userData.graphics.push(graphic);
|
|
7922
7921
|
floor.userData.graphicMap.set(options.id, graphic);
|
|
7923
7922
|
if (options.poi_info) {
|
|
7924
|
-
floor.poiLayer.createPoi({
|
|
7923
|
+
const poi = floor.poiLayer.createPoi({
|
|
7925
7924
|
id: options.id,
|
|
7926
7925
|
icon: options.poi_info.icon,
|
|
7927
7926
|
texts: [{ text: options.poi_info.showName || options.store_name || options.poi_info.text }],
|
|
7928
7927
|
position: { x: pos[0], y: pos[1], z: options.airHeight },
|
|
7929
7928
|
icon_size: [18, 18]
|
|
7930
7929
|
});
|
|
7930
|
+
if (poi) {
|
|
7931
|
+
poi.userData.type = "facility";
|
|
7932
|
+
poi.userData.data = options;
|
|
7933
|
+
}
|
|
7931
7934
|
}
|
|
7932
7935
|
});
|
|
7933
7936
|
break;
|
|
@@ -7941,11 +7944,15 @@ var AibeeLoader = class {
|
|
|
7941
7944
|
parkingSpacesGraphicMap.set(options.id, graphic);
|
|
7942
7945
|
const pos = translatePosToCenter([options.center_x, options.center_y], center2);
|
|
7943
7946
|
if (options.texts[0]) {
|
|
7944
|
-
floor.poiLayer.createPoi({
|
|
7947
|
+
const poi = floor.poiLayer.createPoi({
|
|
7945
7948
|
id: options.id,
|
|
7946
7949
|
texts: [{ text: options.texts[0] }],
|
|
7947
7950
|
position: { x: pos[0], y: pos[1], z: options.airHeight }
|
|
7948
7951
|
});
|
|
7952
|
+
if (poi) {
|
|
7953
|
+
poi.userData.type = "parkingSpace";
|
|
7954
|
+
poi.userData.data = options;
|
|
7955
|
+
}
|
|
7949
7956
|
}
|
|
7950
7957
|
});
|
|
7951
7958
|
floor.userData.parkingSpaces = parkingSpacesGraphics;
|