@cornerstonejs/tools 0.56.3 → 0.56.5
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/cjs/store/SynchronizerManager/Synchronizer.js +5 -1
- package/dist/cjs/store/SynchronizerManager/Synchronizer.js.map +1 -1
- package/dist/esm/store/SynchronizerManager/Synchronizer.js +5 -1
- package/dist/esm/store/SynchronizerManager/Synchronizer.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
- package/src/store/SynchronizerManager/Synchronizer.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.5",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cornerstonejs/core": "^0.36.
|
|
29
|
+
"@cornerstonejs/core": "^0.36.5",
|
|
30
30
|
"lodash.clonedeep": "4.5.0",
|
|
31
31
|
"lodash.get": "^4.4.2"
|
|
32
32
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"type": "individual",
|
|
53
53
|
"url": "https://ohif.org/donate"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "4a7d5588ab9a925b13254e8fcfaf9d0f9c1f56f8"
|
|
56
56
|
}
|
|
@@ -273,10 +273,16 @@ class Synchronizer {
|
|
|
273
273
|
};
|
|
274
274
|
|
|
275
275
|
viewports.forEach(function (vUid) {
|
|
276
|
-
const
|
|
276
|
+
const renderingEngine = getRenderingEngine(
|
|
277
277
|
vUid.renderingEngineId
|
|
278
278
|
).getViewport(vUid.viewportId);
|
|
279
279
|
|
|
280
|
+
if (!renderingEngine) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const { element } = renderingEngine;
|
|
285
|
+
|
|
280
286
|
element.removeEventListener(
|
|
281
287
|
Enums.Events.ELEMENT_DISABLED,
|
|
282
288
|
disableHandler
|