Is there a command to move the whole SVG path to a new position?
Is there a command to move the whole SVG path to a new position, instead of adding the offsets to each point of the 开发者_如何学Pythonpath?
Thanks to sehe's comment. The solution is: wrap the path into
<g transform="translate(offset_x,offset_y)"></g>
<path transform="translate(x, y)" d="....">
If your path already has transforms and you'd rather not interfere with them:
<g transform="translate(x, y)">
<path transform="..." d="....">
</g>
Stealing from Phrogz's comment and Powerboy's answer.
精彩评论