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

Expose a way to redraw the canvas without having to trigger an OSD redraw #8

Open
iangilman opened this issue Apr 20, 2018 · 2 comments

Comments

@iangilman
Copy link
Contributor

For interactive graphics or animations you might want to redraw the overlay multiple times even when the underlying OSD doesn't need updating. It would be nice to be able to trigger a draw just of the overlay. You can already do this via the _updateCanvas method, but the underscore marks it as private. Maybe just make it public?

See openseadragon/openseadragon#1452 for more discussion.

@sebastianbk
Copy link

You could just use:

viewer.raiseEvent('update-viewport');

@iangilman
Copy link
Contributor Author

Good point! Still, it would be nice to have it as an explicit part of the API, I think.

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