@cornerstonejs/core 0.42.1 → 0.42.2
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/dist/cjs/RenderingEngine/StackViewport.js +2 -2
- package/dist/cjs/RenderingEngine/StackViewport.js.map +1 -1
- package/dist/esm/RenderingEngine/StackViewport.js +2 -2
- package/dist/esm/RenderingEngine/StackViewport.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/src/RenderingEngine/StackViewport.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.2",
|
|
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": "
|
|
54
|
+
"gitHead": "d0aedd7f51d2f9e8a5cda8411862190b1cbda90f"
|
|
55
55
|
}
|
|
@@ -1537,8 +1537,8 @@ class StackViewport extends Viewport implements IStackViewport {
|
|
|
1537
1537
|
const dataType = imageData.getPointData().getScalars().getDataType();
|
|
1538
1538
|
|
|
1539
1539
|
// using epsilon comparison for float numbers comparison.
|
|
1540
|
-
const isSameXSpacing = isEqual(xSpacing, image.
|
|
1541
|
-
const isSameYSpacing = isEqual(ySpacing, image.
|
|
1540
|
+
const isSameXSpacing = isEqual(xSpacing, image.columnPixelSpacing);
|
|
1541
|
+
const isSameYSpacing = isEqual(ySpacing, image.rowPixelSpacing);
|
|
1542
1542
|
|
|
1543
1543
|
// using spacing, size, and direction only for now
|
|
1544
1544
|
return (
|