Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

focusCenter without animation #936

Open
JensWinkler91 opened this issue Mar 29, 2023 · 2 comments
Open

focusCenter without animation #936

JensWinkler91 opened this issue Mar 29, 2023 · 2 comments

Comments

@JensWinkler91
Copy link

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.

@noonnightstorm
Copy link
Collaborator

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

@JensWinkler91
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants