Hello, there are some problems with my BPMN after using the following methods.
viewer.get(‘canvas’).zoom(‘fit-viewport’);
In this way, the BPMN diagram can indeed be rendered entirely in the container.
But the BPMN is too far to the left. How can we make the BPMN diagram in the container center left and right?
I haven’t found a way for a long time. I really need help. Thank you very much.
It’s not a matter of how far.What matters is how I can center the BPMN diagram.I mean the left-right one.t’s not like this: viewer.get(‘canvas’).zoom(‘fit-viewport’);
Thank you for your reply。
How did you solve it? The solution above is not working for me.
In the picture you see that the viewport is “matrix(1 0 0 1 0 0)”, but it should be “matrix(1,0,0,1,51,-51)”.