>>>>> "RB" == Reinhard Brandst�dter <[EMAIL PROTECTED]> writes:
RB> Is there an easy way to translocate elements in a document/canvas.
RB> I have a SVGDoc rendered in a JSVGCanvas and now I want to display
RB> another document at several different positions within the other
RB> document. It's easy for simple shapes like rectangles (just
RB> change the "x" and "y" attributes but it gets more complex for
RB> polygons or combined objects. For polygons I would have to change
RB> all single point accordingly to position the whole object
RB> correctly, since all values are absolute coordinates.
They are 'absolute' in the local user coordinate system.
Try reading Chaper 7 of the SVG specification. In particular
the stuff about the 'transform' attribute:
<g transform="translate(10, 10)">
<!-- Everything is now shited 10 user space units in x & y. -->
....
</g>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]