@cornerstonejs/tools 1.77.11 → 1.77.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "1.77.11",
3
+ "version": "1.77.13",
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.11",
32
+ "@cornerstonejs/core": "^1.77.13",
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": "8e4edbcf44a2b511a06fa6fedc058cacf5ed9646"
62
+ "gitHead": "829144d11850aa0d3f9ea1f7068bbf0e24a19e8f"
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
- indicesToRequestCopy.forEach((imageIdIndex) => {
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 && stackPrefetchData.data.length) {
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
  }