Skip to content

Commit

Permalink
Ensure AngleMeasurement only clickable once built
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Oct 5, 2023
1 parent 9fb666e commit 0018403
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ class AngleMeasurementsControl extends Component {
},
approximate: true
});
this._currentAngleMeasurement.clickable = false;
this._currentAngleMeasurement.originVisible = true;
this._currentAngleMeasurement.originWireVisible = true;
this._currentAngleMeasurement.cornerVisible = false;
Expand Down Expand Up @@ -424,6 +425,7 @@ class AngleMeasurementsControl extends Component {
worldPos: snapPickResult.snappedWorldPos
}
});
this._currentAngleMeasurement.clickable = false;
this._currentAngleMeasurement.originVisible = true;
this._currentAngleMeasurement.originWireVisible = false;
this._currentAngleMeasurement.cornerVisible = false;
Expand Down Expand Up @@ -459,6 +461,7 @@ class AngleMeasurementsControl extends Component {
worldPos: pickResult.worldPos
}
});
this._currentAngleMeasurement.clickable = false;
this._currentAngleMeasurement.originVisible = true;
this._currentAngleMeasurement.originWireVisible = false;
this._currentAngleMeasurement.cornerVisible = false;
Expand Down Expand Up @@ -712,6 +715,7 @@ class AngleMeasurementsControl extends Component {
worldPos: snapPickResult.snappedWorldPos
}
});
this._currentAngleMeasurement.clickable = false;
this._currentAngleMeasurement.originVisible = true;
this._currentAngleMeasurement.originWireVisible = false;
this._currentAngleMeasurement.cornerVisible = false;
Expand Down Expand Up @@ -747,6 +751,7 @@ class AngleMeasurementsControl extends Component {
worldPos: pickResult.worldPos
}
});
this._currentAngleMeasurement.clickable = false;
this._currentAngleMeasurement.originVisible = true;
this._currentAngleMeasurement.originWireVisible = false;
this._currentAngleMeasurement.cornerVisible = false;
Expand Down Expand Up @@ -980,6 +985,7 @@ class AngleMeasurementsControl extends Component {
worldPos: pickResult.worldPos
}
});
this._currentAngleMeasurement.clickable = false;
this._currentAngleMeasurement.originVisible = true;
this._currentAngleMeasurement.originWireVisible = false;
this._currentAngleMeasurement.cornerVisible = false;
Expand Down Expand Up @@ -1020,6 +1026,7 @@ class AngleMeasurementsControl extends Component {
worldPos: touchEndCanvasPos
}
});
this._currentAngleMeasurement.clickable = false;
this._currentAngleMeasurement.originVisible = true;
this._currentAngleMeasurement.originWireVisible = false;
this._currentAngleMeasurement.cornerVisible = false;
Expand Down

0 comments on commit 0018403

Please sign in to comment.