@cornerstonejs/tools 1.77.11 → 1.77.12
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/stackContextPrefetch.js +2 -2
- package/dist/cjs/utilities/stackPrefetch/stackContextPrefetch.js.map +1 -1
- package/dist/esm/utilities/stackPrefetch/stackContextPrefetch.js +2 -2
- package/dist/esm/utilities/stackPrefetch/stackContextPrefetch.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/stackContextPrefetch.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "1.77.
|
|
3
|
+
"version": "1.77.12",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "dist/types/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.77.
|
|
32
|
+
"@cornerstonejs/core": "^1.77.12",
|
|
33
33
|
"@icr/polyseg-wasm": "0.4.0",
|
|
34
34
|
"@types/offscreencanvas": "2019.7.3",
|
|
35
35
|
"comlink": "^4.4.1",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"type": "individual",
|
|
60
60
|
"url": "https://ohif.org/donate"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "21f9869a43912ca4a1eb70391d439e9e11252f07"
|
|
63
63
|
}
|
|
@@ -164,7 +164,7 @@ function prefetch(element) {
|
|
|
164
164
|
imageLoadPoolManager.filterRequests(clearFromImageIds(stack));
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
function doneCallback(imageId) {
|
|
167
|
+
function doneCallback(imageId: string) {
|
|
168
168
|
const imageIdIndex = stack.imageIds.indexOf(imageId);
|
|
169
169
|
|
|
170
170
|
removeFromList(imageIdIndex);
|
|
@@ -222,7 +222,7 @@ function prefetch(element) {
|
|
|
222
222
|
|
|
223
223
|
const useNativeDataType = useNorm16Texture || preferSizeOverAccuracy;
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
stackPrefetch.indicesToRequest.forEach((imageIdIndex) => {
|
|
226
226
|
const imageId = stack.imageIds[imageIdIndex];
|
|
227
227
|
// IMPORTANT: Request type should be passed if not the 'interaction'
|
|
228
228
|
// highest priority will be used for the request type in the imageRetrievalPool
|
|
@@ -360,7 +360,7 @@ function disable(element) {
|
|
|
360
360
|
const stackPrefetchData = getToolState(element);
|
|
361
361
|
// If there is actually something to disable, disable it
|
|
362
362
|
|
|
363
|
-
if (stackPrefetchData
|
|
363
|
+
if (stackPrefetchData) {
|
|
364
364
|
stackPrefetchData.enabled = false;
|
|
365
365
|
// Don't worry about clearing the requests - there aren't that many too be bothersome
|
|
366
366
|
}
|