@inweb/viewer-visualize 25.3.23 → 25.3.24
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/dist/viewer-visualize.js
CHANGED
|
@@ -16618,10 +16618,11 @@
|
|
|
16618
16618
|
canvas.style.touchAction = "none";
|
|
16619
16619
|
canvas.width = canvas.clientWidth * window.devicePixelRatio;
|
|
16620
16620
|
canvas.height = canvas.clientHeight * window.devicePixelRatio;
|
|
16621
|
-
const visualizeJs = await loadVisualizeJs(this.visualizeJsUrl, (
|
|
16622
|
-
const { loaded,
|
|
16623
|
-
|
|
16624
|
-
|
|
16621
|
+
const visualizeJs = await loadVisualizeJs(this.visualizeJsUrl, (event) => {
|
|
16622
|
+
const { loaded, total } = event;
|
|
16623
|
+
if (onProgress)
|
|
16624
|
+
onProgress(new ProgressEvent("progress", { lengthComputable: true, loaded, total }));
|
|
16625
|
+
this.emitEvent({ type: "initializeprogress", data: loaded / total, loaded, total });
|
|
16625
16626
|
});
|
|
16626
16627
|
this._visualizeJs = visualizeJs;
|
|
16627
16628
|
this.visualizeJs.canvas = canvas;
|
|
@@ -16641,6 +16642,7 @@
|
|
|
16641
16642
|
this.syncOptions();
|
|
16642
16643
|
this._renderTime = performance.now();
|
|
16643
16644
|
this.render(this._renderTime);
|
|
16645
|
+
this.emitEvent({ type: "initialize" });
|
|
16644
16646
|
return this;
|
|
16645
16647
|
}
|
|
16646
16648
|
/**
|