@cornerstonejs/core 1.47.5 → 1.48.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.47.5",
3
+ "version": "1.48.1",
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": "ca6a1674238c19acca3a96f604a1a15cf929f13f"
50
+ "gitHead": "b48d4bc61f007018f5695c209a858d3ebd2f7ce0"
51
51
  }
@@ -319,7 +319,7 @@ abstract class BaseVolumeViewport extends Viewport implements IVolumeViewport {
319
319
  /**
320
320
  * Sets the inversion for the volume transfer function
321
321
  *
322
- * @param invert - Should the transfer function be inverted?
322
+ * @param inverted - Should the transfer function be inverted?
323
323
  * @param volumeId - volumeId
324
324
  * @param suppressEvents - If `true`, events will not be published
325
325
  *
@@ -341,10 +341,9 @@ abstract class BaseVolumeViewport extends Viewport implements IVolumeViewport {
341
341
  const cfun = this._getOrCreateColorTransferFunction(volumeIdToUse);
342
342
  invertRgbTransferFunction(cfun);
343
343
 
344
- const { voiRange, VOILUTFunction, invert } =
345
- this.getProperties(volumeIdToUse);
344
+ const { voiRange, VOILUTFunction } = this.getProperties(volumeIdToUse);
346
345
 
347
- this.viewportProperties.invert = invert;
346
+ this.viewportProperties.invert = inverted;
348
347
 
349
348
  if (!suppressEvents) {
350
349
  const eventDetail: VoiModifiedEventDetail = {
@@ -352,7 +351,7 @@ abstract class BaseVolumeViewport extends Viewport implements IVolumeViewport {
352
351
  range: voiRange,
353
352
  volumeId: volumeIdToUse,
354
353
  VOILUTFunction: VOILUTFunction,
355
- invert: invert,
354
+ invert: inverted,
356
355
  invertStateChanged: true,
357
356
  };
358
357