BPMN Modeler start location

First of all, thank you for your library and your great support.

My problem is as follows: I use the modeller to create diagrams and save them in the database, and after that, when the users go to that record, I redisplay the diagram to them. However, when the user visits the page, this is how it looks like:

The diagram is not centred.
So, is there any way I can use it to move the view to another location programmatically? For example, given the ID of an element, can I move the diagram view such that this element is in the centre?


Check out the canvas#zoom API that we use a lot in the examples, e.g. bpmn-js-examples/url-viewer/index.html at 56aae33da52796ae6998f3b23b61acd6ee703b5c · bpmn-io/bpmn-js-examples · GitHub