Skip to content

Commit

Permalink
link textbox to vertex unless moved by user
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimCSAE authored Jun 12, 2023
1 parent b1a8763 commit bd0ea83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tools/src/tools/annotation/AngleTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ class AngleTool extends AnnotationTool {
const textLines = this._getTextLines(data, targetId);

if (!data.handles.textBox.hasMoved) {
const canvasTextBoxCoords = getTextBoxCoordsCanvas(canvasCoordinates);
// linked to the vertex by default
const canvasTextBoxCoords = canvasCoordinates[1];

data.handles.textBox.worldPosition =
viewport.canvasToWorld(canvasTextBoxCoords);
Expand Down

0 comments on commit bd0ea83

Please sign in to comment.