Thanks Thomas,
That works almost perfectly, I think I must have been
setting it too early
before (before the document was loaded in). The only
trouble is now it
"bounces" (goes to the origin for a second then to
the right position).
I think I must be setting it in the wrong load event (there
seemed to be too
many of them), which of them should I use as I couldn't work
it out.
Jon
thomas.deweese wrote:
>
> Hi Jon,
>
> For 'compatible' documents (same viewBox[*]) this is
as simple as
> copying the Rendering Transform
(JSVGCanvas.getRenderingTransform())
> before
> you load the new document and then set that
RenderingTransform (best done
> in the SVG on load event).
>
> [*] BTW if the viewBox spec's don't match then it's
actually a little hard
> to
> say what it means to keep the same zoom/pan/rotate (you
would have to have
> some
> 'other' way to 'align' the underlying coordinate
system).
>
--
View this message in context: http://www.nabble.com/JSVGCanvas-Tr
ansform-Retention-tf4548468.html#a13042476
Sent from the Batik - Users mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribe xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help xmlgraphics.apache.org
|