@inweb/viewer-visualize 25.8.21 → 25.8.22

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.
@@ -5327,6 +5327,7 @@ class Viewer extends EventEmitter2 {
5327
5327
  resize() {
5328
5328
  if (!this.visualizeJs) return this;
5329
5329
  const {clientWidth: clientWidth, clientHeight: clientHeight} = this.canvas;
5330
+ if (!clientWidth || !clientHeight) return this;
5330
5331
  this.canvas.width = clientWidth * window.devicePixelRatio;
5331
5332
  this.canvas.height = clientHeight * window.devicePixelRatio;
5332
5333
  const visViewer = this.visualizeJs.getViewer();