JointJS - JavaScript diagramming library - Demos.

Distances

The full source code is part of both Rappid Release and Trial Package.