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

Loosing zoom level when redrawing #128

Closed
tskomudek opened this issue Mar 6, 2024 · 2 comments
Closed

Loosing zoom level when redrawing #128

tskomudek opened this issue Mar 6, 2024 · 2 comments

Comments

@tskomudek
Copy link

Hi Bart,

i've created a readonly version of the editor to follow live progress of a workflow,
pretty much like you did in your "live testing" example, but without the move viewport to step feature.

I managed to update step coloring and draw counter badges according to the flows progress.
However, each time the state changes and the react component needs to rerender,
i loose the current zoom level. This can be pretty annoying.

Is there a way to manage the zooming state externally ?

Thanks

Tilo

@b4rtaz
Copy link
Collaborator

b4rtaz commented Mar 6, 2024

Hello @tskomudek!

If I understand correctly, please check "Force Badge Refresh" fragment in this article.

@tskomudek
Copy link
Author

Hi Bart,

i managed to solve my issue using controller.updateBadges and controller.updateRootComponent.

Thank you

T.

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