@cornerstonejs/tools 4.21.4 → 4.21.6
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.
|
@@ -176,17 +176,22 @@ class ProbeTool extends AnnotationTool {
|
|
|
176
176
|
this._calculateCachedStats(annotation, renderingEngine, enabledElement);
|
|
177
177
|
if (viewport instanceof VolumeViewport) {
|
|
178
178
|
const { referencedImageId } = annotation.metadata;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
179
|
+
if (referencedImageId) {
|
|
180
|
+
for (const targetId in data.cachedStats) {
|
|
181
|
+
if (targetId.startsWith('imageId')) {
|
|
182
|
+
const viewports = renderingEngine.getStackViewports();
|
|
183
|
+
const invalidatedStack = viewports.find((vp) => {
|
|
184
|
+
const currentImageId = vp.getCurrentImageId();
|
|
185
|
+
if (!currentImageId)
|
|
186
|
+
return false;
|
|
187
|
+
const referencedImageURI = csUtils.imageIdToURI(referencedImageId);
|
|
188
|
+
const hasImageURI = vp.hasImageURI(referencedImageURI);
|
|
189
|
+
const currentImageURI = csUtils.imageIdToURI(currentImageId);
|
|
190
|
+
return hasImageURI && currentImageURI !== referencedImageURI;
|
|
191
|
+
});
|
|
192
|
+
if (invalidatedStack) {
|
|
193
|
+
delete data.cachedStats[targetId];
|
|
194
|
+
}
|
|
190
195
|
}
|
|
191
196
|
}
|
|
192
197
|
}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.21.
|
|
1
|
+
export declare const version = "4.21.6";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.21.
|
|
1
|
+
export const version = '4.21.6';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "4.21.
|
|
3
|
+
"version": "4.21.6",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -105,10 +105,11 @@
|
|
|
105
105
|
"lodash.get": "4.4.2"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
+
"@cornerstonejs/core": "4.21.6",
|
|
108
109
|
"canvas": "3.2.0"
|
|
109
110
|
},
|
|
110
111
|
"peerDependencies": {
|
|
111
|
-
"@cornerstonejs/core": "4.21.
|
|
112
|
+
"@cornerstonejs/core": "4.21.6",
|
|
112
113
|
"@kitware/vtk.js": "34.15.1",
|
|
113
114
|
"@types/d3-array": "3.2.1",
|
|
114
115
|
"@types/d3-interpolate": "3.0.4",
|
|
@@ -127,5 +128,5 @@
|
|
|
127
128
|
"type": "individual",
|
|
128
129
|
"url": "https://ohif.org/donate"
|
|
129
130
|
},
|
|
130
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "f353e5f47d7535dd369b6a7e65ef12ef3f797153"
|
|
131
132
|
}
|