@cornerstonejs/tools 1.16.4 → 1.16.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.
- package/dist/cjs/utilities/stackPrefetch/stackPrefetch.js +3 -3
- package/dist/cjs/utilities/stackPrefetch/stackPrefetch.js.map +1 -1
- package/dist/esm/utilities/stackPrefetch/stackPrefetch.js +3 -3
- package/dist/esm/utilities/stackPrefetch/stackPrefetch.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/utilities/stackPrefetch/stackPrefetch.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.6",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cornerstonejs/core": "^1.16.
|
|
32
|
+
"@cornerstonejs/core": "^1.16.6",
|
|
33
33
|
"lodash.clonedeep": "4.5.0",
|
|
34
34
|
"lodash.get": "^4.4.2"
|
|
35
35
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"type": "individual",
|
|
53
53
|
"url": "https://ohif.org/donate"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d0d2fac80581648681521e4ddb6a6d9aad2087f9"
|
|
56
56
|
}
|
|
@@ -310,8 +310,8 @@ function getPromiseRemovedHandler(element) {
|
|
|
310
310
|
|
|
311
311
|
if (
|
|
312
312
|
!stackPrefetchData ||
|
|
313
|
-
!stackPrefetchData.
|
|
314
|
-
!stackPrefetchData.
|
|
313
|
+
!stackPrefetchData.indicesToRequest ||
|
|
314
|
+
!stackPrefetchData.indicesToRequest.length
|
|
315
315
|
) {
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
@@ -392,7 +392,7 @@ function disable(element) {
|
|
|
392
392
|
const stackPrefetchData = getToolState(element);
|
|
393
393
|
// If there is actually something to disable, disable it
|
|
394
394
|
|
|
395
|
-
if (stackPrefetchData && stackPrefetchData.
|
|
395
|
+
if (stackPrefetchData && stackPrefetchData.indicesToRequest.length) {
|
|
396
396
|
stackPrefetchData.enabled = false;
|
|
397
397
|
|
|
398
398
|
// Clear current prefetch requests from the requestPool
|