@cornerstonejs/core 1.50.1 → 1.50.3

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.50.1",
3
+ "version": "1.50.3",
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": "4c3526437497897d90a7879ac8e471b40f729d88"
50
+ "gitHead": "20a87794b2cb1933c1d09e07ce9bd6a69610a7a1"
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 {
@@ -728,6 +728,7 @@ class Cache implements ICache {
728
728
  this.incrementImageCacheSize(-cachedImage.sizeInBytes);
729
729
 
730
730
  const eventDetails = {
731
+ image: cachedImage,
731
732
  imageId,
732
733
  };
733
734