Customisable diagram editor/viewer for AngularJS