@cornerstonejs/tools 2.12.3 → 2.13.0
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.
|
@@ -191,7 +191,8 @@ class WindowLevelRegionTool extends AnnotationTool {
|
|
|
191
191
|
}
|
|
192
192
|
const windowWidth = Math.max(Math.abs(minMaxMean.max - minMaxMean.min), this.configuration.minWindowWidth);
|
|
193
193
|
const windowCenter = minMaxMean.mean;
|
|
194
|
-
const
|
|
194
|
+
const voiLutFunction = viewport.getProperties().VOILUTFunction;
|
|
195
|
+
const voiRange = utilities.windowLevel.toLowHighRange(windowWidth, windowCenter, voiLutFunction);
|
|
195
196
|
viewport.setProperties({ voiRange });
|
|
196
197
|
viewport.render();
|
|
197
198
|
};
|
|
@@ -129,7 +129,8 @@ class WindowLevelTool extends BaseTool {
|
|
|
129
129
|
windowWidth += wwDelta;
|
|
130
130
|
windowCenter += wcDelta;
|
|
131
131
|
windowWidth = Math.max(windowWidth, 1);
|
|
132
|
-
|
|
132
|
+
const voiLutFunction = viewport.getProperties().VOILUTFunction;
|
|
133
|
+
return utilities.windowLevel.toLowHighRange(windowWidth, windowCenter, voiLutFunction);
|
|
133
134
|
}
|
|
134
135
|
_getMultiplierFromDynamicRange(viewport, volumeId) {
|
|
135
136
|
let imageDynamicRange;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"canvas": "^2.11.2"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@cornerstonejs/core": "^2.
|
|
107
|
+
"@cornerstonejs/core": "^2.13.0",
|
|
108
108
|
"@kitware/vtk.js": "32.1.1",
|
|
109
109
|
"@types/d3-array": "^3.0.4",
|
|
110
110
|
"@types/d3-interpolate": "^3.0.1",
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"type": "individual",
|
|
124
124
|
"url": "https://ohif.org/donate"
|
|
125
125
|
},
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "dcac6b44a3c251f0e11da0fa3f43397626fae920"
|
|
127
127
|
}
|