@cornerstonejs/tools 0.61.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "0.61.3",
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",
@@ -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.41.2",
29
+ "@cornerstonejs/core": "^0.42.0",
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": "a2318cba4eb4e0719c892b85ac6ce3020f9176ca"
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(