title: Javascript Library to build drag and drop interface and connect elements with line
body: <p>I am looking for an approach or Javascript library that I can use to build a scientific modeling application. I suppose this is analogues to the way flowcharting software like Visio works. Add elements and connect them with click and drag.</p>
  
  <p><a href="https://i.stack.imgur.com/vSZpB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vSZpB.png" alt="enter image description here"></a></p>
  
  <p>I need to be able to define certain elements and add them to the "canvas" by selecting the element and dragging them onto the canvas. </p>
  
  <p>When I click on an element I need to be able to set certain parameters for that element.  </p>
  
  <p>I also need to be able to connect one element to another by clicking on one and dragging a line to the second element.</p>
  
  <p>I am looking for some advise on the best javascript library or approach to use. I will probably build the app in Vue.js as I have some experience using it.</p>