@aibee/crc-bmap 0.6.10 → 0.6.12
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 +1 -1
- package/lib/bmap.cjs.min.js.map +2 -2
- package/lib/bmap.esm.js +3 -1
- package/lib/bmap.esm.js.map +2 -2
- package/lib/bmap.esm.min.js +1 -1
- package/lib/bmap.esm.min.js.map +2 -2
- package/lib/bmap.min.js +1 -1
- package/lib/bmap.min.js.map +2 -2
- package/package.json +1 -1
package/lib/bmap.esm.js
CHANGED
|
@@ -4011,6 +4011,7 @@ var GraphicLayer = class extends Layer {
|
|
|
4011
4011
|
}
|
|
4012
4012
|
createGraphic(options) {
|
|
4013
4013
|
const graphic = new Graphic(this.context, options);
|
|
4014
|
+
graphic.userData.data = options;
|
|
4014
4015
|
this.add(graphic);
|
|
4015
4016
|
this.graphicMap.set(options.id, graphic);
|
|
4016
4017
|
return graphic;
|
|
@@ -4420,6 +4421,7 @@ var Floor = class extends Object3D8 {
|
|
|
4420
4421
|
}
|
|
4421
4422
|
createGround(options) {
|
|
4422
4423
|
const ground = new Graphic(this.context, options);
|
|
4424
|
+
ground.userData.data = options;
|
|
4423
4425
|
this.addGrounds([ground]);
|
|
4424
4426
|
}
|
|
4425
4427
|
addGrounds(grounds) {
|
|
@@ -4435,7 +4437,7 @@ var Floor = class extends Object3D8 {
|
|
|
4435
4437
|
changeGroundMaxHeight() {
|
|
4436
4438
|
const grounds = Array.from(this.grounds);
|
|
4437
4439
|
this.groundMaxHeight = this.grounds.size > 0 ? Math.max(...grounds.map((ground) => ground.options.height + ground.options.airHeight + ground.options.deltaHeight)) : 0;
|
|
4438
|
-
this.groundUpper.position.z = this.groundMaxHeight +
|
|
4440
|
+
this.groundUpper.position.z = this.groundMaxHeight + 0.01;
|
|
4439
4441
|
}
|
|
4440
4442
|
get hasElement() {
|
|
4441
4443
|
return !!(this.grounds.size || this.graphicLayer.children.length);
|