@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.
@@ -16854,6 +16854,8 @@
16854
16854
  if (!this.visualizeJs)
16855
16855
  return this;
16856
16856
  const { clientWidth, clientHeight } = this.canvas;
16857
+ if (!clientWidth || !clientHeight)
16858
+ return this; // <- invisible viewer, or viewer with parent removed
16857
16859
  this.canvas.width = clientWidth * window.devicePixelRatio;
16858
16860
  this.canvas.height = clientHeight * window.devicePixelRatio;
16859
16861
  const visViewer = this.visualizeJs.getViewer();