@cornerstonejs/core 0.42.2 → 0.42.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": "0.42.2",
3
+ "version": "0.42.3",
4
4
  "description": "",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -51,5 +51,5 @@
51
51
  "type": "individual",
52
52
  "url": "https://ohif.org/donate"
53
53
  },
54
- "gitHead": "d0aedd7f51d2f9e8a5cda8411862190b1cbda90f"
54
+ "gitHead": "f3db864a642cb3a4e56dd19b2fedaa6815bcf3a7"
55
55
  }
@@ -1543,9 +1543,9 @@ class StackViewport extends Viewport implements IStackViewport {
1543
1543
  // using spacing, size, and direction only for now
1544
1544
  return (
1545
1545
  (isSameXSpacing ||
1546
- (image.rowPixelSpacing === null && xSpacing === 1.0)) &&
1546
+ (image.columnPixelSpacing === null && xSpacing === 1.0)) &&
1547
1547
  (isSameYSpacing ||
1548
- (image.columnPixelSpacing === null && ySpacing === 1.0)) &&
1548
+ (image.rowPixelSpacing === null && ySpacing === 1.0)) &&
1549
1549
  xVoxels === image.columns &&
1550
1550
  yVoxels === image.rows &&
1551
1551
  isEqual(imagePlaneModule.rowCosines, <Point3>rowCosines) &&
@@ -53,15 +53,6 @@ export default function isEqual<ValueType>(
53
53
  return false;
54
54
  }
55
55
 
56
- // typeof object must have same constructor
57
- if (
58
- typeof v1 === 'object' &&
59
- typeof v2 === 'object' &&
60
- v1.constructor !== v2.constructor
61
- ) {
62
- return false;
63
- }
64
-
65
56
  if (isNumberType(v1) && isNumberType(v2)) {
66
57
  return areNumbersEqualWithTolerance(v1, v2, tolerance);
67
58
  }