JointJS - JavaScript diagramming library - Demos.

Visio Bpmn Export

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