Skip to content

Latest commit

 

History

History
executable file
·
46 lines (24 loc) · 858 Bytes

README.md

File metadata and controls

executable file
·
46 lines (24 loc) · 858 Bytes

⚠️ This project is not officially maintained. You are still welcome to contribute, e.g. by fixing issues or creating enhancements.

bpmn-auto-layout

Get a layouted diagram of a bpmn-process without graphical representation.

Usage

Preconditions: The diagram has to have exactly one single startevent.

var AutoLayout = require('bpmn-auto-layout');

var diagramXML = '<bpmn:defintions ...></bpmn:defintions>';

var autoLayout = new AutoLayout();

(async () => {
  var layoutedDiagramXML = await autoLayout.layoutProcess(diagramXML);

  console.log(layoutedDiagramXML);
})();

Resources

Building

npm install
npm run all

As part of the test run, visual test cases are generated to test/generated/test.html.

License

MIT