@cornerstonejs/core 1.7.2 → 1.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
4
4
  "description": "",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -17,6 +17,7 @@
17
17
  "scripts": {
18
18
  "build:cjs": "tsc --project ./tsconfig.cjs.json",
19
19
  "build:esm": "tsc --project ./tsconfig.esm.json",
20
+ "build:esm:watch": "tsc --project ./tsconfig.esm.json --watch",
20
21
  "build:umd": "cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js",
21
22
  "build:all": "yarn run build:umd && yarn run build:cjs && yarn run build:esm",
22
23
  "clean": "shx rm -rf dist",
@@ -45,5 +46,5 @@
45
46
  "type": "individual",
46
47
  "url": "https://ohif.org/donate"
47
48
  },
48
- "gitHead": "8d996239bf6e2ce265a4d0bd6a5a6d8fe5e7122f"
49
+ "gitHead": "adb02393675fbdb364b9b7d9a9f6d5113b15d8be"
49
50
  }
@@ -1757,8 +1757,8 @@ class StackViewport extends Viewport implements IStackViewport {
1757
1757
 
1758
1758
  //If Photometric Interpretation is not the same for the next image we are trying to load, invalidate the stack to recreate the VTK imageData
1759
1759
  if (
1760
- this.csImage?.imageFrame?.photometricInterpretation !==
1761
- image.imageFrame?.photometricInterpretation
1760
+ this.csImage?.imageFrame.photometricInterpretation !==
1761
+ image?.imageFrame?.photometricInterpretation
1762
1762
  ) {
1763
1763
  this.stackInvalidated = true;
1764
1764
  }