Steve Lamont wrote:

   I suspect that you  are seeing the effects of the
preserveAspectRatio attribute. By default this will cause the
document to be scaled so the largest dimension fits in the
Canvas and the other dimension is 'centered'.  Read about
preserveAspectRatio in the SVG specification.

That seems to be the culprit.


Is there some way of setting this other than in the SVG document?

You can override the implementation of calculateViewingTransform from JSVGComponent. The easiest thing would be to call the baseclass version and then strip the translation from the AffineTransform it returns.

As a side note/question -- has anyone written a book or other
comprehensive reference on Batik?  The SVG Specification is somewhat
less than an optimal tutorial reference, at least for someone like me,
who wants to simply use the API, not develop it.

Yah, so this has been asked about/requested a couple of times, the basic problem is that the book would have to cover an immense amount of information (SVG, JavaScript, CSS, and the Batik implementation) to really deliver a comprehensive answer.


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



Reply via email to