Here’s how I do it: first, make sure this sentence is in the LineWidgetJS,
and then add it to the code that launches the LineWidget
And I used this to work in linewidget but not in anglewidget. I haven’t figured out why it didn’t work. In addition, it is difficult to change the Handle style of these measuring tools.