These are chat archives for openseadragon/openseadragon

2nd
May 2016
Ian Gilman
@iangilman
May 02 2016 16:17
@mitchellyons Yes, probably so.
Ian Gilman
@iangilman
May 02 2016 16:23
@stephenrparsons Wonderful! 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
Anyway, keep me posted on your progress!
Stephen Parsons
@stephenrparsons
May 02 2016 16:28
Will do, thank you!
Ian Gilman
@iangilman
May 02 2016 16:31
:)
Alexey Tikhonov
@altert
May 02 2016 19:59
I’ve used openseadragon in somewhat unsuspected way http://altert.net/demo/3d/
I don’t know if that could be useful to others
Ian Gilman
@iangilman
May 02 2016 21:00
@altert Nice! So each frame is a separate tiledImage?
Ian Gilman
@iangilman
May 02 2016 21:05
I could see it being quite handy for sites like http://www.zoosphere.net/sequence/113/Pancala/gemmata%20var.%20viridescens
Alexey Tikhonov
@altert
May 02 2016 21:45
@iangilman нуы
yes
but osd version would work with high-res of course
right now it’s a (rather rough) wordpress plugin. I can release it as wordpress plugin, or just javascript part for OSD recipes. what do you think would be more useful?