Alignment and reording

Hi, I would like to ask if you know about some function that can be invoked and that re allign or reorder the entire diagram in bpmnjs.
I recursively add other task to the process and in the end the entire diagram is a mess. So… exists some function that can help me or do i need to implement it by myself.
Thank in advance for the answer.

In order that this is the before:

And this the result of the call of the function
Screenshot 2024-04-23 alle 10.49.38

Recording 2024-05-31 at 09.24.57

1 Like

so exist a function that i can call? In which way i can call it from bpmnjs?

You can use the alignElements service

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.