@cornerstonejs/core 2.19.7 → 2.19.8

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.
@@ -1222,12 +1222,14 @@ class StackViewport extends Viewport {
1222
1222
  const isYVoxelsMatching = yVoxels === image.rows;
1223
1223
  const isRowCosinesMatching = isEqual(imagePlaneModule.rowCosines, rowCosines);
1224
1224
  const isColumnCosinesMatching = isEqual(imagePlaneModule.columnCosines, columnCosines);
1225
+ const isDataTypeMatching = dataType === image.voxelManager.getScalarData().constructor.name;
1225
1226
  const result = isXSpacingValid &&
1226
1227
  isYSpacingValid &&
1227
1228
  isXVoxelsMatching &&
1228
1229
  isYVoxelsMatching &&
1229
1230
  isRowCosinesMatching &&
1230
- isColumnCosinesMatching;
1231
+ isColumnCosinesMatching &&
1232
+ isDataTypeMatching;
1231
1233
  return result;
1232
1234
  }
1233
1235
  _updateVTKImageDataFromCornerstoneImage(image) {
@@ -1521,7 +1523,7 @@ class StackViewport extends Viewport {
1521
1523
  }
1522
1524
  _getInitialVOIRange(image) {
1523
1525
  if (this.voiRange && this.voiUpdatedWithSetProperties) {
1524
- return this.globalDefaultProperties.voiRange;
1526
+ return this.voiRange;
1525
1527
  }
1526
1528
  const { windowCenter, windowWidth, voiLUTFunction } = image;
1527
1529
  let voiRange = this._getVOIRangeFromWindowLevel(windowWidth, windowCenter, voiLUTFunction);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "2.19.7",
3
+ "version": "2.19.8",
4
4
  "description": "Cornerstone3D Core",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -82,5 +82,5 @@
82
82
  "type": "individual",
83
83
  "url": "https://ohif.org/donate"
84
84
  },
85
- "gitHead": "5c61d76944e88285470eb4f6010ae66a879a1f6c"
85
+ "gitHead": "81d2c1c6483fa461722a8525eea1558d5e11b4ed"
86
86
  }