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

Add a lasso for selecting spots #3

Open
eriksjolund opened this issue Sep 10, 2016 · 0 comments
Open

Add a lasso for selecting spots #3

eriksjolund opened this issue Sep 10, 2016 · 0 comments

Comments

@eriksjolund
Copy link
Owner

eriksjolund commented Sep 10, 2016

Add a lasso for selecting spots to the
from_layout viewer

One way to do it is by using Paper.js together with
https://github.com/eriksjolund/OpenSeadragonPaperjsOverlay

The function
http://paperjs.org/reference/path/#hittest-point
would then be used for determining if a spot is inside the lasso.

It could be done in a similar way as it is done in:
http://eriksjolund.github.io/osd-spot-viewer/adjust_spots/adjust_spots.html
but here only the lasso would be painted by Paper.js not the circles.

By painting the circles directly on the tiles, the circles are shown without any wobbling effects.
Obects painted by OpenSeadragon overlays (e.g. OpenSeadragonPaperjsOverlay) tend
to have some wobbling effects when zooming in or out.

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