@aibee/crc-bmap 0.0.55 → 0.0.56

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
@@ -2299,9 +2299,9 @@ var Context = class extends EventDispatcher6 {
2299
2299
  this.container.addEventListener("pointerleave", this.onPointerleave);
2300
2300
  this.selection.addEventListener("select", this.onSelectionSelect);
2301
2301
  this.hoverHelper.addEventListener("hover-change", this.onHoverChange);
2302
- if (this.config.mutationObserver) {
2303
- const observe = new MutationObserver(this.onWindowResize);
2304
- observe.observe(this.container, { attributes: true, attributeFilter: ["style"] });
2302
+ if (this.config.resizeObserver) {
2303
+ const observe = new ResizeObserver(this.onWindowResize);
2304
+ observe.observe(this.container);
2305
2305
  this.observe = observe;
2306
2306
  }
2307
2307
  }
@@ -2525,7 +2525,7 @@ var defaultConfig = {
2525
2525
  floorGraphic: "/api/inception-map/floor/get",
2526
2526
  floorRange: "/api/inception-map/range/get"
2527
2527
  },
2528
- mutationObserver: false,
2528
+ resizeObserver: false,
2529
2529
  heatMap: {
2530
2530
  radius: 50,
2531
2531
  gradient: {