This is something I created over a year ago and I’ve decided to share the code in case someone finds it useful.
It’s nothing more than an example of using JavaScript to dynamically add connectable SVG objects.
Usage:
- Click a node and drag
- Double-click to generate a node
- Click a node, hold down shift, then release over another node to connect