Hi,
I have downloaded BPMN auto layout project and able to test it with npm run all command.
Now I am trying to integrate it into my project. I have done the following steps
- Created layout.js under bpmn-auto-layout project
- added this code
global.AutoLayout = require('bpmn-auto-layout');
- To use above file in my project I have executed this command
browserify layout.js -o layoutB.js
- Imported layoutB.js file in my project
- I have used the diagramXML from example.js in bpmn-auto-layout project
var autoLayout = new AutoLayout();
console.log("start");
var layoutedDiagramXML = await autoLayout.layoutProcess(diagramXML);
console.log(layoutedDiagramXML);
console.log("end");
after loading the above file in browser, it is executing until console.log(“start”)
but getting timeout during this method autoLayout.layoutProcess(diagramXML);
No errors in browser also.
Can anyone suggest if I have done any mistake in above set up