title: Click two new points and draw a line between those two points using mouse event
body: <p>Any suggestions how to create a line by clicking two new points then draw a line between them?
  I am trying to create a distance tool like the one in adobe acrobat.</p>
  
  <p>Image Example</p>
  
  <p><img src="https://i.stack.imgur.com/uRoKk.jpg" alt="alt text"></p>