Anyone has sample code for drawing a rubber band style path between two shapes in Raphael.
I saw few questions around drawing path progressively at How to draw a vector path progressively? (Raphael.js)
But my requirement is to be able to click on one shape and move the mouse to the other shape and while the mouse moves, there should be a line path following the mouse like a rubber band. Once the click happens on the second shape the line path has to be locked in.
I tried the Joint.js http://www.jointjs.com/ with Raphael but it can draw lines but not interactively.