@cornerstonejs/core 1.2.4 → 1.2.6
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 +4 -0
- package/dist/cjs/RenderingEngine/StackViewport.js.map +1 -1
- package/dist/cjs/types/IRenderingEngine.d.ts +1 -1
- package/dist/esm/RenderingEngine/StackViewport.js +3 -0
- package/dist/esm/RenderingEngine/StackViewport.js.map +1 -1
- package/dist/esm/types/IRenderingEngine.d.ts +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 +5 -0
- package/src/types/IRenderingEngine.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
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": "e5df670c81613d5393fc184b27082c1e579fd137"
|
|
48
48
|
}
|
|
@@ -1809,6 +1809,11 @@ class StackViewport extends Viewport implements IStackViewport {
|
|
|
1809
1809
|
return;
|
|
1810
1810
|
}
|
|
1811
1811
|
|
|
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 (this.csImage?.imageFrame.photometricInterpretation !== image.imageFrame.photometricInterpretation) {
|
|
1814
|
+
this.stackInvalidated = true;
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1812
1817
|
this._setCSImage(image);
|
|
1813
1818
|
|
|
1814
1819
|
const eventDetail: EventTypes.StackNewImageEventDetail = {
|
|
@@ -8,7 +8,7 @@ export default interface IRenderingEngine {
|
|
|
8
8
|
offscreenMultiRenderWindow: any;
|
|
9
9
|
offScreenCanvasContainer: any;
|
|
10
10
|
setViewports(viewports: Array<PublicViewportInput>): void;
|
|
11
|
-
resize(immediate?: boolean,
|
|
11
|
+
resize(immediate?: boolean, keepCamera?: boolean): void;
|
|
12
12
|
getViewport(id: string): IStackViewport | IVolumeViewport;
|
|
13
13
|
getViewports(): Array<IStackViewport | IVolumeViewport>;
|
|
14
14
|
render(): void;
|