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

🚸 preserve zoom and pan on image change #42

Merged
merged 2 commits into from
Jul 18, 2023
Merged

Conversation

danton267
Copy link
Collaborator

when image is changed, (and its size is different) zoom and pan will be preserved.

This will most likely need to be revisited because when compressed images are being sent, their sizes differ depending on the zoom, and thus we most likely won't be able to determine whether the image size is the same?
Also we will need to upgrade this with the same system we add where we ask for specific part of the image.

The image size needs to be there because if image1 is 2500x2500 and image2 is 200x200, if we zoom on image1 and then switch to image 2, it would most likely result in a white screen since we would be panned out of 200x200 bounds

@danton267 danton267 linked an issue Jul 14, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Jul 14, 2023

Staging application has been deployed and is available at: https://dash5-services.plotly.host/ml-exchange-staging
Production app name: ml-exchange
Current branch name: preserve-zoom-and-pan
Commit: d6093d4

@danton267 danton267 self-assigned this Jul 14, 2023
@hannahker hannahker self-requested a review July 18, 2023 21:12
Copy link
Collaborator

@hannahker hannahker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 💃

@hannahker hannahker merged commit 414c432 into main Jul 18, 2023
4 checks passed
@hannahker hannahker deleted the preserve-zoom-and-pan branch July 18, 2023 21:13
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

Successfully merging this pull request may close these issues.

Persist view state when panning across slices
2 participants