I would like to know is there is a possibility to center a viewer to a specific element - so that element that I have (its ID), will be presented in the middle/center of a window/page or a place where viewer is created. I found out this post
But I guess it have not been implemented, right? I tried this approach:
var elementRegistry = viewer.get('elementRegistry');
var element = elementRegistry.get(id);
x : element.x,
y : element.y
and nothing happens in the viewer. I also tried to increase the number 0 to e.g. 3,4,5...and its get zoomed, but for sure the center is not my element... Behaves really strange. Does anyone knows what is the best practice to center to a specific element ? I have a very large bpmn diagram and I want to make the one that is highlighted to be presented in the middle, and maybe wit a little zoom. Centering is the most important...