These are chat archives for openseadragon/openseadragon

10th
Feb 2016
Alexey Tikhonov
@altert
Feb 10 2016 10:22
added pull request for plugins link for https://github.com/altert/OpenseadragonFabricjsOverlay
Ian Gilman
@iangilman
Feb 10 2016 17:29
Awesome! Just a small grammar nitpick...
Alexey Tikhonov
@altert
Feb 10 2016 17:30
sure thing) should I edit that and made pull request again?
my english is somewhat wonky, sorry)
Ian Gilman
@iangilman
Feb 10 2016 17:30
You should be able to just change it and push, no need to remake the PR
No worries...I figure I can suggest improvements to English just like code ;)
Alexey Tikhonov
@altert
Feb 10 2016 17:31
of course
Ian Gilman
@iangilman
Feb 10 2016 17:32
What's your first language? I bet I'm not so good at it as you are with English!
Alexey Tikhonov
@altert
Feb 10 2016 17:32
russian
Ian Gilman
@iangilman
Feb 10 2016 17:33
очень хорошо!
Alexey Tikhonov
@altert
Feb 10 2016 17:34
haha)
you know some russian for real, or just googled it?)
Ian Gilman
@iangilman
Feb 10 2016 17:36
I've actually been to the Soviet Union...haven't been back since then though.
I've been to Leningrad, but never St.Petersburg
I know those words, but Googled to get the cyrillic spelling
Alexey Tikhonov
@altert
Feb 10 2016 17:36
oh, cool. I was born in Leningrad and living in St.Petersburg now
Ian Gilman
@iangilman
Feb 10 2016 17:37
Moved to another city without having to travel at all!
It's a beautiful city, I recall
Alexey Tikhonov
@altert
Feb 10 2016 17:37
to another country even)
Ian Gilman
@iangilman
Feb 10 2016 17:37
Indeed :)
Alexey Tikhonov
@altert
Feb 10 2016 17:37
oh yes, it is.
Ian Gilman
@iangilman
Feb 10 2016 17:37
I was part of Peace Child back in the 80's
Cross cultural musical theater
Very different from zooming web tech, I suppose ;)
So I can say дитя мира but can't really construct a full sentence
Ian Gilman
@iangilman
Feb 10 2016 17:40
Wow...in fact I was part of that exact event!
Alexey Tikhonov
@altert
Feb 10 2016 17:40
sometimes internet is great)
this guy from russian side - Stas Namin, made really great mostly pirate radio station around that time. Was my main source of rock music education before it collapsed under FM radio onslaught
Ian Gilman
@iangilman
Feb 10 2016 17:44
Nice! We performed as backup chorus for the Stas Namin group in Moscow during the children's festival in 1985 and spent some time in the studio with them recording backup for their album at the time
Small world :)
Alexey Tikhonov
@altert
Feb 10 2016 17:48
yes)
Ian Gilman
@iangilman
Feb 10 2016 17:52
Thanks for this trip through memory lane ;)
Alexey Tikhonov
@altert
Feb 10 2016 18:01
heh) Visit St.Petersburg again at some time. It's changed, and some of changes are for the better
Ian Gilman
@iangilman
Feb 10 2016 18:03
I would love that...someday :)
VoidVolker
@VoidVolker
Feb 10 2016 18:07
wow )
we all near )
lol
Ian Gilman
@iangilman
Feb 10 2016 18:08
Nice :)
Ian Gilman
@iangilman
Feb 10 2016 18:35
@altert Speaking of canvas overlays: openseadragon/openseadragon#842
Alexey Tikhonov
@altert
Feb 10 2016 18:47
cool) I was just going to make vanilla canvas plugin as well, it could help there, as it would be just second canvas, but without lots of objects in memory
Ian Gilman
@iangilman
Feb 10 2016 18:48
Indeed
It would need a callback for when the view changed so it could redraw
I guess the advantage to having a second canvas, rather than drawing directly on the OSD canvas, is it can stay unchanged when the viewport remains the same (even if OSD is repainting due to new tiles coming in)
You could also auto shift (and even zoom ) the contents of the overlay canvas in anticipation of actual redraws if you wanted to
i.e. if the user pans left 20px, you can shift the canvas contents left 20px and then all you need to redraw is the right 20px strip
That could make a big performance difference in a scenario where you're talking about drawing thousands of objects
...theoretically
Alexey Tikhonov
@altert
Feb 10 2016 19:35
but the problem is that after I resize the canvas, I have to redraw it
so we can either store it in plugin, or leave it for plugin user to redraw
I wonder what would be the best apporach here
Ian Gilman
@iangilman
Feb 10 2016 19:39
Well, there is resize and there is zoom. You definitely need to redraw the canvas when you resize the viewer, but theoretically that won't happen too frequently. When you zoom you can scale the image on the canvas but also let the app redraw as needed.
Or maybe for starters the best approach is ask the app to redraw always
At any rate, it should be a matter of calling a callback or sending an event so the app (i.e. the user of your plugin's API) can do whatever it needs
Antoine Vandecreme
@avandecreme
Feb 10 2016 20:40
Nice :) There is a 'fabricjsOverlayInfo' at the beginning which should be replaced by 'canvasOverlayInfo' I think.
Alexey Tikhonov
@altert
Feb 10 2016 20:40
thanks!
Ian Gilman
@iangilman
Feb 10 2016 21:39
@altert Off to a good start...I'll add some API comments
Ian Gilman
@iangilman
Feb 10 2016 21:51
Ok, comments added...I hope you don't mind the feedback!
Alexey Tikhonov
@altert
Feb 10 2016 21:55
I appreciate it very much! I'm more of a hack than a programmer, in fact, so that kind of feedback really helps
Ian Gilman
@iangilman
Feb 10 2016 21:56
You're too modest ;)
David Rogers
@dwrogers
Feb 10 2016 23:58
Trying to get started with OSD. I have a bunch of hdv.xml files and image pyramids I used with the silverlight viewer and created with HDMake . Can I use them with OSD? Also, I found a section called "Getting Started" on the github site, but is there something a little more hand-holdy?