@cornerstonejs/core 1.50.1 → 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/dist/cjs/RenderingEngine/StackViewport.js +2 -2
- package/dist/cjs/RenderingEngine/StackViewport.js.map +1 -1
- package/dist/esm/RenderingEngine/StackViewport.js +2 -2
- package/dist/esm/RenderingEngine/StackViewport.js.map +1 -1
- package/dist/types/RenderingEngine/StackViewport.d.ts.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/src/RenderingEngine/StackViewport.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "1.50.
|
|
3
|
+
"version": "1.50.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"type": "individual",
|
|
48
48
|
"url": "https://ohif.org/donate"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "88d59969255f209d95ecdb72e6576f19ecfe97b3"
|
|
51
51
|
}
|
|
@@ -842,18 +842,19 @@ class StackViewport extends Viewport implements IStackViewport, IImagesLoader {
|
|
|
842
842
|
|
|
843
843
|
this.setVOI(voiRange);
|
|
844
844
|
|
|
845
|
+
this.setInvertColor(this.initialInvert);
|
|
846
|
+
|
|
847
|
+
this.setInterpolationType(InterpolationType.LINEAR);
|
|
848
|
+
|
|
845
849
|
if (this.getRotation() !== 0) {
|
|
846
850
|
this.setRotation(0);
|
|
847
851
|
}
|
|
848
|
-
this.setInterpolationType(InterpolationType.LINEAR);
|
|
849
852
|
|
|
850
853
|
const transferFunction = this.getTransferFunction();
|
|
851
854
|
setTransferFunctionNodes(
|
|
852
855
|
transferFunction,
|
|
853
856
|
this.initialTransferFunctionNodes
|
|
854
857
|
);
|
|
855
|
-
|
|
856
|
-
this.setInvertColor(this.initialInvert);
|
|
857
858
|
}
|
|
858
859
|
|
|
859
860
|
public resetToDefaultProperties(): void {
|