@cornerstonejs/tools 1.2.3 → 1.2.4

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": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
28
28
  },
29
29
  "dependencies": {
30
- "@cornerstonejs/core": "^1.2.3",
30
+ "@cornerstonejs/core": "^1.2.4",
31
31
  "lodash.clonedeep": "4.5.0",
32
32
  "lodash.get": "^4.4.2"
33
33
  },
@@ -50,5 +50,5 @@
50
50
  "type": "individual",
51
51
  "url": "https://ohif.org/donate"
52
52
  },
53
- "gitHead": "0fa715f59cc1478092759c0d1d0786a196294c79"
53
+ "gitHead": "e1d087a225781bea19f248064cc536f0a24f35c0"
54
54
  }
@@ -778,7 +778,8 @@ class ArrowAnnotateTool extends AnnotationTool {
778
778
 
779
779
  // Need to update to sync w/ annotation while unlinked/not moved
780
780
  if (!data.handles.textBox.hasMoved) {
781
- const canvasTextBoxCoords = getTextBoxCoordsCanvas(canvasCoordinates);
781
+ // linked to the point that doesn't have the arrowhead by default
782
+ const canvasTextBoxCoords = canvasCoordinates[1];
782
783
 
783
784
  data.handles.textBox.worldPosition =
784
785
  viewport.canvasToWorld(canvasTextBoxCoords);