@cornerstonejs/core 1.23.0 → 1.23.1

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.23.0",
3
+ "version": "1.23.1",
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": "378523639b22b4aa8247118b215d68596f3dc54f"
49
+ "gitHead": "28ab67ba9ac513970fbd03e95e4b0cfcefca4f66"
50
50
  }
@@ -46,7 +46,6 @@ import {
46
46
  invertRgbTransferFunction,
47
47
  triggerEvent,
48
48
  colormap as colormapUtils,
49
- isImageActor,
50
49
  } from '../utilities';
51
50
  import { createVolumeActor } from './helpers';
52
51
  import volumeNewImageEventDispatcher, {
@@ -565,7 +564,7 @@ abstract class BaseVolumeViewport extends Viewport implements IVolumeViewport {
565
564
  this.setVOILUTFunction(VOILUTFunction, volumeId, suppressEvents);
566
565
  }
567
566
 
568
- if (invert !== undefined) {
567
+ if (invert !== undefined && this.viewportProperties.invert !== invert) {
569
568
  this.setInvert(invert, volumeId, suppressEvents);
570
569
  }
571
570
 
@@ -1033,8 +1032,6 @@ abstract class BaseVolumeViewport extends Viewport implements IVolumeViewport {
1033
1032
  // New volume actors implies resetting the inverted flag (i.e. like starting from scratch).
1034
1033
 
1035
1034
  for (let i = 0; i < volumeActorEntries.length; i++) {
1036
- const volumeId = volumeActorEntries[i].uid;
1037
-
1038
1035
  this.viewportProperties.invert = false;
1039
1036
  }
1040
1037
  this.setActors(volumeActorEntries);