@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/example/index.html +3 -2
- package/example/src/main.ts +1 -1
- package/lib/bmap.cjs.min.js +1 -1
- package/lib/bmap.cjs.min.js.map +2 -2
- package/lib/bmap.esm.js +4 -4
- 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/lib/src/config.d.ts +1 -1
- package/package.json +1 -1
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.
|
|
2303
|
-
const observe = new
|
|
2304
|
-
observe.observe(this.container
|
|
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
|
-
|
|
2528
|
+
resizeObserver: false,
|
|
2529
2529
|
heatMap: {
|
|
2530
2530
|
radius: 50,
|
|
2531
2531
|
gradient: {
|