Currently, I am utilizing Potree for the display of a large point cloud dataset, which can be found at https://github.com/potree/potree.
I am attempting to initiate an area-measurement using Potree.MeasuringTool, which is typically stopped or accepted with a right-click. Instead, I would like it to stop when a designated button is clicked. Could someone please guide me on which function needs to be called for this purpose? I do not have extensive knowledge in javascript. Alternatively, I would also accept a workaround that simulates a right-button click, even though it may not be the most elegant solution.