@aibee/crc-bmap 0.0.59 → 0.0.60

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
@@ -2165,7 +2165,9 @@ var Context = class extends EventDispatcher6 {
2165
2165
  });
2166
2166
  __publicField(this, "onWindowResize", () => {
2167
2167
  const { container, camera, renderer } = this;
2168
- const { clientWidth: w, clientHeight: h } = container;
2168
+ let { clientWidth: w, clientHeight: h } = container;
2169
+ w = Math.max(1, w);
2170
+ h = Math.max(1, h);
2169
2171
  camera.left = -w / 2;
2170
2172
  camera.right = w / 2;
2171
2173
  camera.top = h / 2;