@inweb/viewer-visualize 25.8.21 → 25.8.23

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.
@@ -16736,7 +16736,7 @@
16736
16736
  * `Viewer.visualize` library you are using.
16737
16737
  */
16738
16738
  configure(params) {
16739
- this._visualizeJsUrl = params.visualizeJsUrl || "https://opencloud.azureedge.net/libs/visualizejs/master/Visualize.js";
16739
+ this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/25.8/Visualize.js";
16740
16740
  return this;
16741
16741
  }
16742
16742
  /**
@@ -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();