Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Upgrade to OSD 2.0 #39

Open
csparker247 opened this issue Jun 3, 2015 · 1 comment
Open

Upgrade to OSD 2.0 #39

csparker247 opened this issue Jun 3, 2015 · 1 comment

Comments

@csparker247
Copy link
Contributor

OSD 2.0 was just released and it includes "True Multi-Image Support": http://openseadragon.github.io/examples/multi-image/

Porting our viewer to work with this new mode seems doable and should fix some of the weird things we have to do to keep our two views in sync (e.g. We have to turn off animations because there's a slight delay in propagating the zoom changes)

csparker247 added a commit that referenced this issue Aug 26, 2015
@stephenrparsons
Copy link

I plan to look at this in the summer. OSD does have clipping, but only rectangular clipping at the moment. I am going to look at implementing arbitrary clipping for them. They gave me some pointers:

"This is where the clipping happens: https://github.com/openseadragon/openseadragon/blob/master/src/tiledimage.js#L1482 We just need to figure out how to get a more complicated shape there.
I suppose you could just special case a circle option, but it seems better to provide for any arbitrary shape.
So one option would be to send out an event that gives the chance to set the clip however you want, using canvas commands. It would be similar to how the tile-loaded event works: https://github.com/openseadragon/openseadragon/blob/master/src/tiledimage.js#L1222
Another option would be to have an explicit callback that you have to set on the tiled image that serves the same purpose
Another option would be to come up with some way to describe arbitrary clipping paths, but that seems like reinventing the wheel."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants