@ohif/extension-cornerstone 3.14.0-beta.110 → 3.14.0-beta.112
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohif/extension-cornerstone",
|
|
3
|
-
"version": "3.14.0-beta.
|
|
3
|
+
"version": "3.14.0-beta.112",
|
|
4
4
|
"description": "OHIF extension for Cornerstone",
|
|
5
5
|
"author": "OHIF",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@cornerstonejs/codec-openjpeg": "1.3.2",
|
|
37
37
|
"@cornerstonejs/codec-openjph": "2.4.9",
|
|
38
38
|
"@cornerstonejs/dicom-image-loader": "5.19.7",
|
|
39
|
-
"@ohif/core": "3.14.0-beta.
|
|
40
|
-
"@ohif/extension-default": "3.14.0-beta.
|
|
41
|
-
"@ohif/ui-next": "3.14.0-beta.
|
|
39
|
+
"@ohif/core": "3.14.0-beta.112",
|
|
40
|
+
"@ohif/extension-default": "3.14.0-beta.112",
|
|
41
|
+
"@ohif/ui-next": "3.14.0-beta.112",
|
|
42
42
|
"dcmjs": "0.52.0",
|
|
43
43
|
"dicom-parser": "1.8.21",
|
|
44
44
|
"hammerjs": "2.0.8",
|
|
@@ -55,14 +55,6 @@ const OHIFCornerstoneViewport = React.memo(
|
|
|
55
55
|
// to set the initial state of the viewport's first image to render
|
|
56
56
|
// eslint-disable-next-line react/prop-types
|
|
57
57
|
initialImageIndex,
|
|
58
|
-
// if the viewport is part of a hanging protocol layout
|
|
59
|
-
// we should not really rely on the old synchronizers and
|
|
60
|
-
// you see below we only rehydrate the synchronizers if the viewport
|
|
61
|
-
// is not part of the hanging protocol layout. HPs should
|
|
62
|
-
// define their own synchronizers. Since the synchronizers are
|
|
63
|
-
// viewportId dependent and
|
|
64
|
-
// eslint-disable-next-line react/prop-types
|
|
65
|
-
isHangingProtocolLayout,
|
|
66
58
|
} = props;
|
|
67
59
|
const viewportId = viewportOptions.viewportId;
|
|
68
60
|
|
|
@@ -95,6 +87,7 @@ const OHIFCornerstoneViewport = React.memo(
|
|
|
95
87
|
toolbarService,
|
|
96
88
|
toolGroupService,
|
|
97
89
|
syncGroupService,
|
|
90
|
+
viewportGridService,
|
|
98
91
|
cornerstoneViewportService,
|
|
99
92
|
segmentationService,
|
|
100
93
|
cornerstoneCacheService,
|
|
@@ -189,7 +182,10 @@ const OHIFCornerstoneViewport = React.memo(
|
|
|
189
182
|
|
|
190
183
|
// we don't need reactivity here so just use state
|
|
191
184
|
const { synchronizersStore } = useSynchronizersStore.getState();
|
|
192
|
-
|
|
185
|
+
// Read live, since this handler is registered once on mount and the prop goes stale
|
|
186
|
+
const { isHangingProtocolLayout: isHPLayout } = viewportGridService.getState();
|
|
187
|
+
// HPs define their own synchronizers, so only rehydrate the old ones outside of them
|
|
188
|
+
if (synchronizersStore?.[viewportId]?.length && !isHPLayout) {
|
|
193
189
|
// If the viewport used to have a synchronizer, re apply it again
|
|
194
190
|
_rehydrateSynchronizers(viewportId, syncGroupService);
|
|
195
191
|
}
|