@cornerstonejs/tools 1.61.2 → 1.61.4

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.61.2",
3
+ "version": "1.61.4",
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.61.2",
32
+ "@cornerstonejs/core": "^1.61.4",
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": "5a782fcde2f8b3e4fd5480dc24e09b22d6985cb7"
62
+ "gitHead": "b74125dac82baa027796d02ce6f7135b2277550e"
63
63
  }
@@ -204,7 +204,8 @@ class WindowLevelTool extends BaseTool {
204
204
  const dimensions = imageData.getDimensions();
205
205
 
206
206
  if (imageData.getRange) {
207
- return imageData.getRange();
207
+ const imageDataRange = imageData.getRange();
208
+ return imageDataRange[1] - imageDataRange[0];
208
209
  }
209
210
  let scalarData;
210
211
  // if getScalarData is a method on imageData