@cornerstonejs/tools 2.2.0 → 2.2.1
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.
|
@@ -213,6 +213,9 @@ function _stopClipWithData(playClipData) {
|
|
|
213
213
|
}
|
|
214
214
|
function _getVolumeFromViewport(viewport) {
|
|
215
215
|
const volumeIds = viewport.getAllVolumeIds();
|
|
216
|
+
if (!volumeIds?.length) {
|
|
217
|
+
return undefined;
|
|
218
|
+
}
|
|
216
219
|
const dynamicVolumeId = volumeIds.find((volumeId) => cache.getVolume(volumeId)?.isDynamicVolume());
|
|
217
220
|
const volumeId = dynamicVolumeId ?? volumeIds[0];
|
|
218
221
|
return cache.getVolume(volumeId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"canvas": "^2.11.2"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@cornerstonejs/core": "^2.2.
|
|
107
|
+
"@cornerstonejs/core": "^2.2.1",
|
|
108
108
|
"@kitware/vtk.js": "32.1.0",
|
|
109
109
|
"@types/d3-array": "^3.0.4",
|
|
110
110
|
"@types/d3-interpolate": "^3.0.1",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"type": "individual",
|
|
124
124
|
"url": "https://ohif.org/donate"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "0fa3e29d97908f58933e38f4acf128aff1f523d0"
|
|
127
127
|
}
|