@inweb/viewer-visualize 25.8.12 → 25.8.14
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
|
@@ -16238,21 +16238,19 @@
|
|
|
16238
16238
|
visViewer.attachPartialResolver(objectHandler);
|
|
16239
16239
|
try {
|
|
16240
16240
|
this.viewer.emitEvent({ type: "geometrystart", model: this.model });
|
|
16241
|
-
await this.model
|
|
16242
|
-
.downloadResource(this.model.database, chunkLoadHandler, abortController.signal)
|
|
16243
|
-
.catch((error) => {
|
|
16241
|
+
await this.model.downloadResource(this.model.database, chunkLoadHandler, abortController.signal).catch((e) => {
|
|
16244
16242
|
if (!servicePartAborted)
|
|
16245
|
-
throw
|
|
16243
|
+
throw e;
|
|
16246
16244
|
});
|
|
16247
16245
|
this.viewer.emitEvent({ type: "geometryend", model: this.model });
|
|
16248
16246
|
}
|
|
16249
|
-
catch (
|
|
16247
|
+
catch (e) {
|
|
16250
16248
|
if (pendingRequestsTimerId) {
|
|
16251
16249
|
window.clearTimeout(pendingRequestsTimerId);
|
|
16252
16250
|
pendingRequestsTimerId = 0;
|
|
16253
16251
|
}
|
|
16254
|
-
this.viewer.emitEvent({ type: "geometryerror", data:
|
|
16255
|
-
throw
|
|
16252
|
+
this.viewer.emitEvent({ type: "geometryerror", data: e, model: this.model });
|
|
16253
|
+
throw e;
|
|
16256
16254
|
}
|
|
16257
16255
|
}
|
|
16258
16256
|
}
|