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

Multiple Plot zoom and unzoom support #733

Open
TCL735 opened this issue Feb 8, 2022 · 0 comments
Open

Multiple Plot zoom and unzoom support #733

TCL735 opened this issue Feb 8, 2022 · 0 comments

Comments

@TCL735
Copy link
Contributor

TCL735 commented Feb 8, 2022

When an app has multiple <Plot> components visible, there are cases where a user wants to zoom in one <Plot> (click-drag) and have that behavior reflected on all <Plot>s. Same for unzoom. (Giraffe may already have this for unzoom, but it should also work with zoom seamlessly). Make this behavior easier to implement.

There should be a way to do the following:

  • allow multiple <Plot>s to be zoomed and unzoomed at the same time
  • even when they have different dimensions
  • access the default zoom and unzoom behavior from the custom callbacks for the domain
  • set the min and max based on a percentage
  • translate the mouse position offset using a percentage (of the <Plot> the user is interacting with) and sending it to all <Plot>s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant