So I haven't gotten svgs working perfectly yet but am close... but I didn't
use any zoom handlers... ill have to check the status of that.

I have nonsvg overlays working but still needless a bit more cleanup before
the code is useful...    I'm hoping by the end of the summer
On Jul 30, 2013 1:48 PM, "iangilman" <notifications@github.com> wrote:

> In src/overlay.js:
>
> > @@ -181,17 +196,30 @@
> >
> >              this.adjust( position, size );
> >
> > -            position = position.apply( Math.floor );
> > -            size     = size.apply( Math.ceil );
> > +            if(this.useTransform){
> > +                var scale = Math.min(this.size.x / this.imageFullSize.x, this.size.y / this.imageFullSize.y);
> > +
> > +                var attrValue = 'translate(' + position.x + ', ' + position.y + ') scale(' + scale + ')';
> > +                // we expect the first element to be the g element of the SVG element that we can transform
> > +                element.firstElementChild.setAttribute('transform', attrValue);
> > +            }else{
> > +                position = position.apply( Math.floor );
> > +                size     = size.apply( Math.ceil );
>
> What I meant earlier about calling onDraw after the position/size
> manipulation, was doing it right after these two lines, but instead of the
> lines below. These two lines do some updating that might be important in
> some situations. I agree that you don't want the actual style manipulation
> below.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openseadragon/openseadragon/pull/160/files#r5483103>
> .
>