Klowner/inkscape-applytransforms

Cannot do a translate on a rectangle

Opened this issue · 2 comments

Currently cannot perform even a simple translate transformation on a rect element.

Example:
<rect width="1" height="1" x="2" y="2" id="rect1" transform="translate(2, 2)" />

Expected result:
<rect width="1" height="1" x="4" y="4" id="rect1" />

even a simple translate. eh? shucks

PRs welcome.

regular svg:rectangle elements cannot be worked out with this extension, because the root definition does not allow to rotate rectangles without having a transform like rotate(25). We could only REDUCE some of those transformations, e.g. having transform="translate(2, 2) rotate(25)" could be reduced to the rotation only