butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

focusCenter without animation

Open JensWinkler91 opened this issue 3 years ago • 2 comments

What problem does this feature solve?

I'd like to center all my nodes and groups after my application starts without animation. E.g. i want to center the canvas before i create an image of the canvas. Therefore i'd like to display the canvas in a dialog. All the nodes and groups should be centered initially.

Is there any possiblity to do this?

I couldn't find anything in the docs.

Thanks in advance.

JensWinkler91 avatar Mar 29 '23 13:03 JensWinkler91

We support it in 5.1.0-beta.32 , but not in 4.x. options.animate = false

noonnightstorm avatar Apr 13 '23 08:04 noonnightstorm

Thanks. I just tried it.

My diagram is still moving to the center. The thing that changed is that it's not moving smooth anymore.

I also figured out that with 5.1.0-beta.32 the Arrow().registerArrow function is not working anymore.

JensWinkler91 avatar Apr 17 '23 15:04 JensWinkler91