These are chat archives for openseadragon/openseadragon

17th
Oct 2014
aeschylus
@aeschylus
Oct 17 2014 00:16
I'm not able to update overlays, and they don't appear in viewer.overlays.
Ian Gilman
@iangilman
Oct 17 2014 00:27
@rsinghal excellent.
@aeschylus I'd have to look... I'm not sure updating overlays is something we support. Might have to remove and recreate?
Was this something that you had working before?
aeschylus
@aeschylus
Oct 17 2014 00:31
I've never had to (or been able to) update the size of an overlay dynamically. However, the documentation has an update method for overlays: http://openseadragon.github.io/docs/OpenSeadragon.Overlay.html#update
I'm not sure how I can reference the overlays either, because, although they appear on the canvas, viewer.overlays is empty.
Also, is there something like viewer.panHorizontal = false;
viewer.panVertical = false; for zooming as well (so I can freeze the zoom behaviour while in editing mode)?
aeschylus
@aeschylus
Oct 17 2014 00:36
Viewer also has its own method updateOverlay, but I have no way of passing it an existing overlay.
Ian Gilman
@iangilman
Oct 17 2014 00:38
Man, seems like a mess. We probably have some broken code in there :-(
try viewer.currentOverlays … Looks like that's the array where they are stored
you may need to call viewer.forceRedraw() after you call update() on the overlay in question.
Ian Gilman
@iangilman
Oct 17 2014 00:44
Or you could do viewer.updateOverlay(overlay.element, …) If you prefer
aeschylus
@aeschylus
Oct 17 2014 00:45
Hm. Uh oh.
Let me try these.
Ian Gilman
@iangilman
Oct 17 2014 00:49
Looks like it's not broken, so much as poorly documented. Presumably at some point we changed overlays to currentOverlays and forgot to update the documentation.
Ian Gilman
@iangilman
Oct 17 2014 01:09
I'm off to dinner; I may check in later. Otherwise I'll be back tomorrow!
aeschylus
@aeschylus
Oct 17 2014 01:10
Okay. Thanks a lot for your help Ian. Have a good evening; I'll try to get through these possibilities tonight.
Ian Gilman
@iangilman
Oct 17 2014 17:33
@/all I'm thinking about also adding an email discussion group: https://groups.io/org/groupsio/openseadragon any thoughts?
We get a lot of "question" issues on GitHub, which I guess is fine, but maybe they'd be better in an email list?
Or maybe between GitHub and this chat, we're covered.
Antoine Vandecreme
@avandecreme
Oct 17 2014 17:35
I prefer having everything centralized on github. That is more work for you to tag every "issue" though. So, as you wish :)
Ian Gilman
@iangilman
Oct 17 2014 17:36
I don't mind having it all on GitHub.
I guess another possible reason for a mailing list could be for release announcements.
Though there's already channels for that, too.
Anyway, just toying with different options.
Antoine Vandecreme
@avandecreme
Oct 17 2014 17:39
I don't know exactly who get notify when a new release happen on github
everyone who starred the repo?
clone?
something else?
Ian Gilman
@iangilman
Oct 17 2014 17:50
Well, I fire off a tweet from @openseadragon at least.
...and I can also mention it in here.
aeschylus
@aeschylus
Oct 17 2014 17:53
If you are "watching" the repo, you will receive notifications in your github feed. Whether or not you receive an email update is up to your github settings.
You can "Watch" a repo with the button right next to the "Star" button.
Antoine Vandecreme
@avandecreme
Oct 17 2014 17:54
ho yeah forgot that watch thing as well
Ian Gilman
@iangilman
Oct 17 2014 18:14
I don't think releases show up as part of "watching".
Of course, we could file an issue for each release, and that would show up.
aeschylus
@aeschylus
Oct 17 2014 18:15
Weird.
Ian Gilman
@iangilman
Oct 17 2014 18:15
Come to think of it, I've already filed an issue for the upcoming release.
Ian Gilman
@iangilman
Oct 17 2014 18:16
I actually have to head out... I'll take a look when I get back!
aeschylus
@aeschylus
Oct 17 2014 18:16
No worries. Talk to you soon.
Ian Gilman
@iangilman
Oct 17 2014 21:03
@aeschylus okay, I'm back. What am I looking at?
Ah... annotations... looking good!
Ian Gilman
@iangilman
Oct 17 2014 21:35
@aeschylus openseadragon/openseadragon#505
I figure you should give it a try and see if it even does what you want.
Let me know if you encounter issues with it.