I am looking for a way to dynamically calculate distance on a canvas, similar to the example shown in the figure. I want to be able to drag the highlighted joints in order to adjust the span for calculating distances. Are there any plugins available for this functionality? If not, can you provide some suggestions on how to achieve this effectively? Thank you.