@cornerstonejs/tools 0.62.2 → 0.63.0
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/utilities/cine/playClip.js +9 -6
- package/dist/cjs/utilities/cine/playClip.js.map +1 -1
- package/dist/esm/utilities/cine/playClip.js +9 -6
- package/dist/esm/utilities/cine/playClip.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/src/utilities/cine/playClip.ts +10 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"type": "individual",
|
|
53
53
|
"url": "https://ohif.org/donate"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "21a8ad7b3f30fedaf734fb95297776c5d50a9718"
|
|
56
56
|
}
|
|
@@ -298,16 +298,18 @@ function _stopClipWithData(playClipData) {
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
function
|
|
302
|
-
|
|
301
|
+
function _getVolumesFromViewport(viewport): Types.IImageVolume[] {
|
|
302
|
+
return viewport
|
|
303
|
+
.getActors()
|
|
304
|
+
.map((actor) => cache.getVolume(actor.uid))
|
|
305
|
+
.filter((volume) => !!volume);
|
|
306
|
+
}
|
|
303
307
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
+
function _getVolumeFromViewport(viewport): Types.IImageVolume {
|
|
309
|
+
const volumes = _getVolumesFromViewport(viewport);
|
|
310
|
+
const dynamicVolume = volumes.find((volume) => volume.isDynamicVolume());
|
|
308
311
|
|
|
309
|
-
|
|
310
|
-
return cache.getVolume(volumeId);
|
|
312
|
+
return dynamicVolume ?? volumes[0];
|
|
311
313
|
}
|
|
312
314
|
|
|
313
315
|
function _createStackViewportCinePlayContext(
|