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

Event Model - responding to user moving and zooming #178

Open
tomcrane opened this issue May 19, 2022 · 1 comment
Open

Event Model - responding to user moving and zooming #178

tomcrane opened this issue May 19, 2022 · 1 comment

Comments

@tomcrane
Copy link
Contributor

tomcrane commented May 19, 2022

Comments from Getty:

It would be useful to understand an event model which would allow us to interact with a user’s adjustment of the ImageService or Canvas – A couple of examples here –

  • Implementing Zoom or Home buttons for an image viewer. We need to know the current state of the viewer so we can disable these buttons when the user has zoomed in to the max, or zoomed out.
  • A mini navigation viewer – if we rolled our own, we need to know when an image service has changed so we can updated where the box shows on the navigation (note the navigation here doesn’t work)
  • Firing a @change event which included both the target (x,y,w,h) as well as the current zoom level might suffice for the basic functionality, but finer grain events might also be useful
  • Is there a way to get the min-zoom or max-zoom for an ImageService when loaded? Again, useful for managing button state.
@tomcrane tomcrane changed the title Event Model Event Model - responding to user moving and zooming May 19, 2022
@stephenwf stephenwf self-assigned this Jun 22, 2022
@stephenwf stephenwf moved this to Todo in Canvas panel v1.0 Jun 22, 2022
@stephenwf stephenwf added this to the v1.0 milestone Jun 22, 2022
@stephenwf
Copy link
Member

Fire events for each time the viewport changes will be quite noisy, but we should add events for hitting min and max zoom that you could use to enable/disable buttons.

@stephenwf stephenwf moved this from Todo to In Progress in Canvas panel v1.0 Jul 13, 2022
@stephenwf stephenwf moved this from In Progress to To discuss in Canvas panel v1.0 Jul 14, 2022
@sarahos sarahos moved this from To discuss to Todo in Canvas panel v1.0 Aug 1, 2022
@sarahos sarahos moved this from Todo to In Progress in Canvas panel v1.0 Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants