Hi,
On Jan 22, 2008 11:01 PM, Redefined Horizons
<[EMAIL PROTECTED]> wrote:
> I am wondering how I can convert coordinates from the coordinate
> system of an SVG document to the coordinate system of the JSVGPanel.
>
> Is this the purpose of the getViewingTransform of the JSVGCanvas class?
>
> What is the difference in the getVeiwingTransform method and the
> getViewBoxTransform methods of the JSVGCanvas class?
>
> Are contributions to the Javadoc for Apache Batik accepted?
>
Last time Thomas explain the various transform used in Batik, as
Coordinate Systems | Transforms
--------------------+-----------------------------
Screen pixels |
| Painting Transform
Offscreen buffer |
| Rendering Transform -+
Initial SVG view | +- Combined into
ViewBox Transform
| Viewing Transform -+
Root <svg> local |
> It would be nice to have it all explained somewhere... taking you
> all the way from the SVG coordinate space to the actual screen pixels.
There you go.
The Viewing Transform is defined by the preserve aspect
ratio handling on the root SVG element (mapping viewBox to
the initial Canvas size).
The Rendering Transform is adjustments to that initial
Viewing Transform due to the user panning/zooming/rotating.
The Painting Transform is used to implement interactive
feedback for 'rendering transform' updates. Like panning,
'live zoom' and the like. Once the interactive operation
is completed it's added into the Rendering Transform.
Cheers
Tonny Kohar
--
Sketsa SVG Editor
imagine, design, create ...
http://www.kiyut.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]