I am trying to convert my process data from some other format into a bpmn.js view. I am using the bpmn-moddle library to generate a BPMN 2.0 XML which bpmn-js understands. The issue I have is the calculation of the size and coordinates of each element, since I can’t know what the size of each element will be. Is there any API-Support to do this task? Or maybe automatic adaption (xml with pseudo coordinates import into bpmn-js, recalculation of coordinates and size, export as XML)?
I appreciate any help. Thanks.