Does anyone know of a library that you could use as a basis to build similar functionality?
- If you want to connect divs use jsPlumb.
- If you want flowcharts use jsPlumb + jQuery UI. jQuery to drag elements on to the diagram div and jsPlumb to connect them.
You can achieve almost every thing what ever is being done here. I have used it personally to create something very similar. jsPlumb is MIT License, so you don't have worry about any thing.
We are also in private alpha for GoJS (gojs.net), which is the same library ported to HTML5 Canvas.
If you are interested in seeing GoJS once it is released as a more public alpha or beta please email me (see profile)