Jean-Christophe Arnu m'expliquait  (le 03.06.2005 21:06):

   I'll look into this bug and may request a reproducible test case if
I have some problems reproducing it on my own.  In the mean time I
would suggest looking into using the currentScale currentTranslate API's
on the SVGSVGElement to adjust the view.  When you have the viewBox the
adjustment is fairly simple.  The simplest method is to set
currentTranslate to the x,y of the viewBox you want, and then set
the currentScale to min(viewBox.width/viewport.width,
                    viewBox.height/viewport.height).

   This won't quite center the view to do that you would need to tweak
the translate for cases where the aspect ratio of the viewBox doesn't
match that of the viewport.

   mmm SVGOMSVGElement needs to implement the .getViewBox() ;)
   Never mind I have dom.svg to do the whole job.

   Do you mean I need to do something like this?
           coords=root.getCurrentTranslate();
          coord.setX(newX-initialVB.getX());
          coord.setY(newY-initialVB.getY());

--
Jean-Christophe Arnu
Paratronic


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to