@cornerstonejs/tools 1.1.9 → 1.2.1

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.1.9",
3
+ "version": "1.2.1",
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.1.9",
30
+ "@cornerstonejs/core": "^1.2.1",
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": "77540ed7d3000dc5d64b183369e6fe60baa11bbf"
53
+ "gitHead": "db7ee5a722e7ca19b057636f8eee96473d04dabf"
54
54
  }
@@ -738,7 +738,8 @@ class AngleTool extends AnnotationTool {
738
738
  const textLines = this._getTextLines(data, targetId);
739
739
 
740
740
  if (!data.handles.textBox.hasMoved) {
741
- const canvasTextBoxCoords = getTextBoxCoordsCanvas(canvasCoordinates);
741
+ // linked to the vertex by default
742
+ const canvasTextBoxCoords = canvasCoordinates[1];
742
743
 
743
744
  data.handles.textBox.worldPosition =
744
745
  viewport.canvasToWorld(canvasTextBoxCoords);