bpmn-io / bpmn-auto-layout

Layout BPMN diagrams, generating missing DI information.
https://bpmn-io.github.io/bpmn-auto-layout/
52 stars 41 forks source link

example.js not working #25

Closed samuelT2 closed 2 years ago

samuelT2 commented 2 years ago

Describe the Bug

When running example.js, it produces an UnhandledPromiseRejectionWarning.

Steps to Reproduce

  1. node ./example.js

Expected Behavior

Write console output and save the file.

Fix

Line 68, add await: var layoutedDiagramXML = await autoLayout.layoutProcess(diagramXML);

marstamm commented 2 years ago

Hi @samuelT2 ,

thank you for reporting this issue, I am able to reproduce the issue and created a #26 to fix it