@cornerstonejs/tools 1.50.0 → 1.50.2

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.50.0",
3
+ "version": "1.50.2",
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.50.0",
32
+ "@cornerstonejs/core": "^1.50.2",
33
33
  "comlink": "^4.4.1",
34
34
  "lodash.clonedeep": "4.5.0",
35
35
  "lodash.get": "^4.4.2"
@@ -53,5 +53,5 @@
53
53
  "type": "individual",
54
54
  "url": "https://ohif.org/donate"
55
55
  },
56
- "gitHead": "20550ac144790828fae0b1358e9cbcfcf7af6eb6"
56
+ "gitHead": "88d59969255f209d95ecdb72e6576f19ecfe97b3"
57
57
  }
@@ -98,6 +98,11 @@ class WindowLevelTool extends BaseTool {
98
98
  });
99
99
  }
100
100
 
101
+ // If the range is not valid. Do nothing
102
+ if (newRange.lower >= newRange.upper) {
103
+ return;
104
+ }
105
+
101
106
  viewport.setProperties({
102
107
  voiRange: newRange,
103
108
  });