JointJS - JavaScript diagramming library - Demos.

Smart Routing

Try to drag elements and see how the link avoids the obstacles.

source code and styles to this demo