@cornerstonejs/core 1.27.1 → 1.27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "1.27.1",
3
+ "version": "1.27.2",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/esm/index.d.ts",
@@ -46,5 +46,5 @@
46
46
  "type": "individual",
47
47
  "url": "https://ohif.org/donate"
48
48
  },
49
- "gitHead": "792fe769651b4eb9ce685f8df826bab8a88cbad2"
49
+ "gitHead": "19d7d73eca5190a6bd81429a5a1858c500946d61"
50
50
  }
@@ -829,13 +829,14 @@ class StackViewport extends Viewport implements IStackViewport {
829
829
  this.setRotation(0);
830
830
  }
831
831
  this.setInterpolationType(InterpolationType.LINEAR);
832
- this.setInvertColor(this.initialInvert);
833
832
 
834
833
  const transferFunction = this.getTransferFunction();
835
834
  setTransferFunctionNodes(
836
835
  transferFunction,
837
836
  this.initialTransferFunctionNodes
838
837
  );
838
+
839
+ this.setInvertColor(this.initialInvert);
839
840
  }
840
841
 
841
842
  public resetToDefaultProperties(): void {