>>>>> "N" == Nicolas  <[EMAIL PROTECTED]> writes:

N> Greetings, I'm quite new to SVG, have been playing around with
N> Batik libs. I need to clip an SVG document, at the SVG level,
N> i.e. remove elements not crossing a given view point, and remove
N> them from the SVG. For that matter, I would need to be able to
N> compute the bounding box of elements.  From the way SVG works, this
N> can't be computed directly, since elements can be transformed, etc.

N> Anyone got an idea how to proceed? Could I use the rendering engine
N> to make the calculation, then copy back the bounding box to the
N> DOM?

   You can walk the GVT tree which has bounding box information and
transform information.  Most SVG things map 1:1 to nodes in the GVT
tree but obviously things can get more complicated when you consider
filtering, or patterns.

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

Reply via email to