A rewrite of [bpmn-auto-layout](https://github.com/bpmn-io/bpmn-auto-layout). Layouts BPMN diagrams using a grid.
npm install @marstamm/bpmn-auto-layoutA rewrite of bpmn-auto-layout.
Layouts BPMN diagrams using a grid.
``javascript
import { layoutProcess } from "@marstamm/bpmn-auto-layout"
const diagram = "
const layoutedDiagram = await layoutProcess(diagram);
`
These are the current limitations:
- Pools
- Data/Message Flows and Objects, Data Stores
`bash`
npm install
npm run test
This will install all dependencies and run the tests.
To add a test case, add a bpmn file to the test/fixtures folder. It will automatically be picked up andtest/generated`.
generate a layouted diagram in
MIT