@cornerstonejs/adapters 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.
@@ -28083,6 +28083,7 @@ class Cache {
28083
28083
  }
28084
28084
  this.incrementImageCacheSize(-cachedImage.sizeInBytes);
28085
28085
  const eventDetails = {
28086
+ image: cachedImage,
28086
28087
  imageId
28087
28088
  };
28088
28089
  triggerEvent(eventTarget$1, EVENTS.IMAGE_CACHE_IMAGE_REMOVED, eventDetails);
@@ -44468,13 +44469,13 @@ class StackViewport extends Viewport$1 {
44468
44469
  voiRange = this._getVOIRangeForCurrentImage();
44469
44470
  }
44470
44471
  this.setVOI(voiRange);
44472
+ this.setInvertColor(this.initialInvert);
44473
+ this.setInterpolationType(InterpolationType$5.LINEAR);
44471
44474
  if (this.getRotation() !== 0) {
44472
44475
  this.setRotation(0);
44473
44476
  }
44474
- this.setInterpolationType(InterpolationType$5.LINEAR);
44475
44477
  const transferFunction = this.getTransferFunction();
44476
44478
  setTransferFunctionNodes(transferFunction, this.initialTransferFunctionNodes);
44477
- this.setInvertColor(this.initialInvert);
44478
44479
  }
44479
44480
  resetToDefaultProperties() {
44480
44481
  this.cpuRenderingInvalidated = true;