@knopkem/dicomview 0.2.1 → 0.2.3
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/loader.js +12 -2
- package/package.json +1 -1
- package/wasm/dicomview_wasm.js +1 -1
- package/wasm/dicomview_wasm_bg.wasm +0 -0
package/dist/loader.js
CHANGED
|
@@ -50,7 +50,12 @@ export class DICOMwebLoader {
|
|
|
50
50
|
};
|
|
51
51
|
requestFrame(() => {
|
|
52
52
|
renderScheduled = false;
|
|
53
|
-
|
|
53
|
+
try {
|
|
54
|
+
viewer.render();
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
// Viewer may have been destroyed between scheduling and callback
|
|
58
|
+
}
|
|
54
59
|
});
|
|
55
60
|
};
|
|
56
61
|
try {
|
|
@@ -85,7 +90,12 @@ export class DICOMwebLoader {
|
|
|
85
90
|
}
|
|
86
91
|
});
|
|
87
92
|
await Promise.all(workers);
|
|
88
|
-
|
|
93
|
+
try {
|
|
94
|
+
viewer.render();
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
// Viewer may have been destroyed during load
|
|
98
|
+
}
|
|
89
99
|
}
|
|
90
100
|
finally {
|
|
91
101
|
pool?.destroy();
|
package/package.json
CHANGED
package/wasm/dicomview_wasm.js
CHANGED
|
@@ -1379,7 +1379,7 @@ function __wbg_get_imports() {
|
|
|
1379
1379
|
return ret;
|
|
1380
1380
|
},
|
|
1381
1381
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1382
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1382
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 697, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1383
1383
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h77f088fde8c66f5c);
|
|
1384
1384
|
return ret;
|
|
1385
1385
|
},
|
|
Binary file
|