object-diagram-js v1.0.6
Try the resulting object diagram modeler here.
Object-diagram-js
This repository contains the source code for object-diagram-js, based on diagram-js and strongly inspired by the excellent bpmn-js. A demonstration is available here.
Usage
The project is published as a npm package.
Usage is similar to bpmn-js and is shown in /starter.
Installing dependencies
npm i
cd starter
npm iRunning the modeler
cd starter
npm startBuild & deploy changes to github-pages
cd starter
npm run build:github-pagesObject-diagram-js debugger
The UI used in the visual debugger IntelliJ plugin is configured in the folder /debugger.
This serves as an example how the library can be used and customized (here we added a Websocket connection to read debug data live).
The debugger has two more interesting features:
The debugger highlights changes by computing a diff using object-diagram-js-differ:

The debugger saves the debugging history such that a user can step back in the UI:

Installing dependencies
npm i
cd starter
npm iRunning the debugger
cd starter
npm run startDebuggerBuilding the debugger
cd starter
npm run buildDebugger:deployThe debugger will be build at the right location for the visual debugger plugin.
License
MIT
Contains parts of (bpmn-io) released under the bpmn.io license.
Acknowledgments
I used the excellent postit-js example as a starting point for my project.
2 years ago