@aibee/crc-bmap 0.0.127 → 0.0.128

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.esm.js CHANGED
@@ -4089,16 +4089,18 @@ var GlbModel = class extends Object3D11 {
4089
4089
  options;
4090
4090
  async loadModel() {
4091
4091
  const object = await loadModel(this.options.url);
4092
- object.scene.rotation.set(Math.PI / 2, Math.PI / 2, 0);
4092
+ object.scene.rotation.set(Math.PI / 2, 0, 0);
4093
4093
  const box = new Box37().setFromObject(object.scene);
4094
4094
  const size = box.getSize(new Vector312());
4095
4095
  const max = Math.max(size.x, size.y);
4096
4096
  const scale = this.options.width / max;
4097
4097
  this.scale.set(scale, scale, scale);
4098
4098
  this.add(object.scene);
4099
- this.position.copy(box.getCenter(new Vector312()));
4099
+ const center2 = getCenter(this.options.geometry.coords[0]);
4100
+ this.position.set(center2[0], center2[1], 0);
4100
4101
  this.position.z += this.options.airHeight + this.options.deltaHeight;
4101
4102
  this.model = object;
4103
+ this.rotateZ(this.options.rotate);
4102
4104
  }
4103
4105
  dispose() {
4104
4106
  dispose(this);