These are chat archives for openseadragon/openseadragon

23rd
Feb 2016
Alexey Tikhonov
@altert
Feb 23 2016 00:21 UTC
that did it. cool, thanks!
Ian Gilman
@iangilman
Feb 23 2016 00:33 UTC
Excellent :)
Alexey Tikhonov
@altert
Feb 23 2016 00:38 UTC
ipad gets somewhat sluggish with about 10 layers of OSD images, but it's to be expected I think)
Ian Gilman
@iangilman
Feb 23 2016 00:39 UTC
Probably so, though of course it would be great to improve on that!
Are they all on top of each other?
Alexey Tikhonov
@altert
Feb 23 2016 00:40 UTC
yes
with opacity change on slider
Ian Gilman
@iangilman
Feb 23 2016 00:42 UTC
So you can potentially see through all 10?
With all of them semi transparent?
Alexey Tikhonov
@altert
Feb 23 2016 00:44 UTC
no, only two of them are semi-transparent at a time. I guess I can disable unseen in some other way than setting opacity to 0 and that could possibly improve performance?
Ian Gilman
@iangilman
Feb 23 2016 00:44 UTC
Or you can fix openseadragon/openseadragon#806 :)
Alexey Tikhonov
@altert
Feb 23 2016 00:45 UTC
oh) interesting
Alexey Tikhonov
@altert
Feb 23 2016 00:51 UTC
wow that improved performance a lot
Ian Gilman
@iangilman
Feb 23 2016 00:51 UTC
:)
Please make a patch when you get a chance!
Alexey Tikhonov
@altert
Feb 23 2016 00:52 UTC
I've just added if (this.opacity != 0) check
Ian Gilman
@iangilman
Feb 23 2016 00:52 UTC
Glad it helped!
Yeah, it's a simple fix :)
But totally worth it, evidently
Alexey Tikhonov
@altert
Feb 23 2016 00:55 UTC
well it made significant performance improvement not just on ipad, but on pretty powerful desktop too, so I guess for scenarios with many hidden layers it definitely worth it
Ian Gilman
@iangilman
Feb 23 2016 00:56 UTC
Excellent
Matthias Guth
@ChiSamurai
Feb 23 2016 09:41 UTC
@iangilman I use the coordinate system conversion functions i.e. to convert OSD viewport coordinates to image pixel coords. Indeed it needed some thinking to get through the different system (especially when handling conversion from viewport-pixels to image-pixels) but after I got that it was well understandable :) OSD is initialized on a div which hast an offset due to preceeding divs with content. Now I try to get the mousevent coorinates and try to translate it into image pixel coordinates. Is it possible that https://openseadragon.github.io/docs/OpenSeadragon.Viewport.html#windowToImageCoordinates is not aware of that offset? Maybe I'm on the wrong way for this, but at the moment I do some offset calculation taking the document-offset of the topleft image point in relation to the OSD div... (geee... the more I try to explain the more I lose the understanding of what I'm doing :) ).
Short summary: does the windowToImageCoordinates function respect possible offsets and scrolling?
foobarable
@foobarable
Feb 23 2016 12:04 UTC
Hi there, im experimenting with multi-image mode. http://openseadragon.github.io/examples/multi-image/ When I pass X or Y coordinates into the tilesources options array, they are ignored. The tiled images are all put on 0/0
So, can't add the X and Y attributes to one tilesources object?
foobarable
@foobarable
Feb 23 2016 12:16 UTC
When I call world.getItemCount(); I get 0 items although the world object has 24 element in _items
confused
foobarable
@foobarable
Feb 23 2016 12:38 UTC
Ah, the creation of the viewer takes a while so I need to wait for the viewer to be ready before placing items
foobarable
@foobarable
Feb 23 2016 12:46 UTC
@sickrandir Do you see any point not adding scope.osd to the wrapper in angular-openseadragon?
foobarable
@foobarable
Feb 23 2016 13:30 UTC
@sickrandir I also found your question here, asking the same thing: MaitreDede/angular-openseadragon#2
sickrandir
@sickrandir
Feb 23 2016 14:11 UTC
@foobarable I'm trying to put openseadragon object in an angular service and use it both in the directive
and controller
i'll send you a gist in some minutes
sickrandir
@sickrandir
Feb 23 2016 15:00 UTC
@foobarable this is what I hacked together right now: https://gist.github.com/sickrandir/2ff9ab4a88b02ea1113e
sickrandir
@sickrandir
Feb 23 2016 16:02 UTC
can someone point me to a good example of how the MouseTracker can be attached to an overlay?
Ian Gilman
@iangilman
Feb 23 2016 17:26 UTC
@ChiSamurai windowToImageCoordinates should take into account the real position of the viewer on the page. If it's not working, can you make a test case and share it?
@foobarable Sounds like you figured out the issue with initializing your multi images?
Ian Gilman
@iangilman
Feb 23 2016 17:36 UTC
@sickrandir It should just be something like:
var tracker = new OpenSeadragon.MouseTracker({
    element: overlayElement,
    clickHandler: handler
});
Are you having trouble with it?
Alexey Tikhonov
@altert
Feb 23 2016 17:46 UTC
@iangilman hi, I have style question. I'm preparing PR for #806. should I change updateViewport( this ); to updateViewport(this); ?
Ian Gilman
@iangilman
Feb 23 2016 17:46 UTC
@altert Yes please; we're slowly moving the style
Alexey Tikhonov
@altert
Feb 23 2016 17:47 UTC
ok