@cornerstonejs/core 1.2.7 → 1.2.9
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 +8 -4
- package/dist/cjs/RenderingEngine/StackViewport.js.map +1 -1
- package/dist/esm/RenderingEngine/StackViewport.js +7 -3
- package/dist/esm/RenderingEngine/StackViewport.js.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 +11 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"type": "individual",
|
|
45
45
|
"url": "https://ohif.org/donate"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "5119d8f6cdf19bb558509d76b329dd5fba610ed2"
|
|
48
48
|
}
|
|
@@ -1810,7 +1810,10 @@ class StackViewport extends Viewport implements IStackViewport {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
|
|
1812
1812
|
//If Photometric Interpretation is not the same for the next image we are trying to load, invalidate the stack to recreate the VTK imageData
|
|
1813
|
-
if (
|
|
1813
|
+
if (
|
|
1814
|
+
this.csImage?.imageFrame?.photometricInterpretation !==
|
|
1815
|
+
image.imageFrame?.photometricInterpretation
|
|
1816
|
+
) {
|
|
1814
1817
|
this.stackInvalidated = true;
|
|
1815
1818
|
}
|
|
1816
1819
|
|
|
@@ -2098,10 +2101,13 @@ class StackViewport extends Viewport implements IStackViewport {
|
|
|
2098
2101
|
// @ts-ignore: vtkjs incorrect typing
|
|
2099
2102
|
activeCamera.setFreezeFocalPoint(true);
|
|
2100
2103
|
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
)
|
|
2104
|
+
const monochrome1 =
|
|
2105
|
+
imagePixelModule.photometricInterpretation === 'MONOCHROME1';
|
|
2106
|
+
|
|
2107
|
+
this.setVOI(this._getInitialVOIRange(image), {
|
|
2108
|
+
forceRecreateLUTFunction: !!monochrome1,
|
|
2109
|
+
});
|
|
2110
|
+
this.setInvertColor(!!monochrome1);
|
|
2105
2111
|
|
|
2106
2112
|
// Saving position of camera on render, to cache the panning
|
|
2107
2113
|
this.cameraFocalPointOnRender = this.getCamera().focalPoint;
|