Hi I am trying to create an new event and connect it to existing gateway. Looks like I am doing something wrong because shapes are created but diagram xml looks wrong.
I see that in your codesandbox, we use canvas to directly add shapes on canvas. This won’t work if you want to export XML afterwards. What you should do instead is to use the Modeling API.
Thanks a lot. I moved to modeling API and it is so easy.
I am wondering:
If you have a documentation outline the different API and their difference.
When I add a new event I have to set up x and y for it. How can I identify an empty space on canvas with a specified distance to a gateway to what I want to connect the new event?
I saw this documentation page and it is good to start but too short to get details.
I use autoPlace API in our application but it does not work for this particular use case because I need to connect new shape to existing element not other way around. I am creating an new event and adding it to existing gateway.