@cornerstonejs/tools 0.61.4 → 0.61.5
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/CrosshairsTool.js +1 -1
- package/dist/cjs/tools/CrosshairsTool.js.map +1 -1
- package/dist/esm/tools/CrosshairsTool.js +1 -1
- package/dist/esm/tools/CrosshairsTool.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/tools/CrosshairsTool.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.5",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"main": "dist/umd/index.js",
|
|
6
6
|
"types": "dist/esm/index.d.ts",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"type": "individual",
|
|
53
53
|
"url": "https://ohif.org/donate"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "9301f3dd164dbd88664a0e1961f686234fe29919"
|
|
56
56
|
}
|
|
@@ -782,6 +782,9 @@ class CrosshairsTool extends AnnotationTool {
|
|
|
782
782
|
|
|
783
783
|
const referenceLines = [];
|
|
784
784
|
|
|
785
|
+
// get canvas information for points and lines (canvas box, canvas horizontal distances)
|
|
786
|
+
const canvasBox = [0, 0, clientWidth, clientHeight];
|
|
787
|
+
|
|
785
788
|
otherViewportAnnotations.forEach((annotation) => {
|
|
786
789
|
const { data } = annotation;
|
|
787
790
|
|
|
@@ -831,9 +834,6 @@ class CrosshairsTool extends AnnotationTool {
|
|
|
831
834
|
const pointWorld1: Types.Point3 = [0, 0, 0];
|
|
832
835
|
vtkMath.subtract(otherViewportCenterWorld, direction, pointWorld1);
|
|
833
836
|
|
|
834
|
-
// get canvas information for points and lines (canvas box, canvas horizontal distances)
|
|
835
|
-
const canvasBox = [0, 0, clientWidth, clientHeight];
|
|
836
|
-
|
|
837
837
|
const pointCanvas0 = viewport.worldToCanvas(pointWorld0);
|
|
838
838
|
|
|
839
839
|
const otherViewportCenterCanvas = viewport.worldToCanvas(
|