@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.
|
@@ -5224,7 +5224,7 @@ class Viewer extends EventEmitter2 {
|
|
|
5224
5224
|
return this._markup;
|
|
5225
5225
|
}
|
|
5226
5226
|
configure(params) {
|
|
5227
|
-
this._visualizeJsUrl = params.visualizeJsUrl || "https://
|
|
5227
|
+
this._visualizeJsUrl = params.visualizeJsUrl || "https://public-fhemb7e3embacwec.z02.azurefd.net/libs/visualizejs/25.8/Visualize.js";
|
|
5228
5228
|
return this;
|
|
5229
5229
|
}
|
|
5230
5230
|
async initialize(canvas, onProgress) {
|
|
@@ -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();
|