@aibee/crc-bmap 0.0.50 → 0.0.52

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
@@ -2519,7 +2519,7 @@ var defaultConfig = {
2519
2519
  fill: "rgba(28, 173, 255, 0.3)"
2520
2520
  },
2521
2521
  hover: {
2522
- time: 500
2522
+ time: 100
2523
2523
  },
2524
2524
  ground: {
2525
2525
  color: "#ffffff",
@@ -2987,6 +2987,22 @@ var BMap = class extends EventDispatcher7 {
2987
2987
  removeSelectGraphic(graphic) {
2988
2988
  this.context.selection.remove(graphic);
2989
2989
  }
2990
+ resize() {
2991
+ this.context.onWindowResize();
2992
+ const azimuthal = this.context.control.getAzimuthalAngle();
2993
+ const zoom = this.context.camera.zoom;
2994
+ this.context.control.minZoom = 0;
2995
+ this.context.control.maxZoom = Infinity;
2996
+ this.context.camera.zoom = 1;
2997
+ this.context.setAzimuthalAngle(0, 0);
2998
+ this.context.fitCameraToGround(void 0, 0);
2999
+ this.basicZoom = this.context.camera.zoom;
3000
+ this.context.control.minZoom = this.basicZoom;
3001
+ this.context.control.maxZoom = this.basicZoom * 25;
3002
+ this.context.camera.zoom = zoom;
3003
+ this.context.control.addEventListener("change", this.onControlChange);
3004
+ this.context.setAzimuthalAngle(azimuthal, 0);
3005
+ }
2990
3006
  dispose() {
2991
3007
  this.context.dispose();
2992
3008
  this.floorDataMap.clear();