Skip to content

Commit

Permalink
Added DistanceMeasurementsPlugin.setAxisVisible() #1184
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Oct 18, 2023
1 parent e8248ab commit 52240d1
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,16 @@ class DistanceMeasurementsPlugin extends Plugin {
}
}

/**
* Shows all or hides the axis wires of each {@link DistanceMeasurement}.
*
* @param {Boolean} labelsShown Whether or not to show the axis wires.
*/
setAxisVisible(axisVisible) {
for (const [key, measurement] of Object.entries(this.measurements)) {
measurement.axisVisible = axisVisible;
}
}

/**
* Destroys all {@link DistanceMeasurement}s.
Expand Down

0 comments on commit 52240d1

Please sign in to comment.