@cornerstonejs/tools 0.63.2 → 0.63.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/dist/cjs/tools/base/AnnotationDisplayTool.js +2 -2
- package/dist/cjs/tools/base/AnnotationDisplayTool.js.map +1 -1
- package/dist/cjs/utilities/calibrateImageSpacing.js +2 -2
- package/dist/esm/tools/base/AnnotationDisplayTool.js +2 -2
- package/dist/esm/tools/base/AnnotationDisplayTool.js.map +1 -1
- package/dist/esm/utilities/calibrateImageSpacing.js +2 -2
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
- package/src/tools/base/AnnotationDisplayTool.ts +2 -2
- package/src/utilities/calibrateImageSpacing.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.3",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cornerstonejs/core": "^0.43.
|
|
29
|
+
"@cornerstonejs/core": "^0.43.1",
|
|
30
30
|
"lodash.clonedeep": "4.5.0",
|
|
31
31
|
"lodash.get": "^4.4.2"
|
|
32
32
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"type": "individual",
|
|
53
53
|
"url": "https://ohif.org/donate"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "f64bb238239adaf0cf80ecdc2dca68341207bdd8"
|
|
56
56
|
}
|
|
@@ -89,7 +89,7 @@ abstract class AnnotationDisplayTool extends BaseTool {
|
|
|
89
89
|
columnScale,
|
|
90
90
|
imageId,
|
|
91
91
|
imageData: calibratedImageData,
|
|
92
|
-
worldToIndex:
|
|
92
|
+
worldToIndex: nonCalibratedWorldToIndex,
|
|
93
93
|
} = evt.detail;
|
|
94
94
|
|
|
95
95
|
const { viewport } = getEnabledElement(element);
|
|
@@ -141,7 +141,7 @@ abstract class AnnotationDisplayTool extends BaseTool {
|
|
|
141
141
|
vec4.transformMat4(
|
|
142
142
|
nonCalibratedIndexVec4,
|
|
143
143
|
p,
|
|
144
|
-
|
|
144
|
+
nonCalibratedWorldToIndex
|
|
145
145
|
);
|
|
146
146
|
const calibratedIndex = [
|
|
147
147
|
columnScale * nonCalibratedIndexVec4[0],
|
|
@@ -24,10 +24,10 @@ export default function calibrateImageSpacing(
|
|
|
24
24
|
columnPixelSpacing = rowPixelSpacing;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
calibratedPixelSpacingMetadataProvider.add(imageId,
|
|
27
|
+
calibratedPixelSpacingMetadataProvider.add(imageId, {
|
|
28
28
|
rowPixelSpacing,
|
|
29
29
|
columnPixelSpacing,
|
|
30
|
-
|
|
30
|
+
});
|
|
31
31
|
|
|
32
32
|
// 2. Update the actor for stackViewports
|
|
33
33
|
const viewports = renderingEngine.getStackViewports();
|