inkscape-applytransforms icon indicating copy to clipboard operation
inkscape-applytransforms copied to clipboard

Cannot do a translate on a rectangle

Open abvgdeyoj opened this issue 2 years ago • 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" />

abvgdeyoj avatar Feb 22 '22 16:02 abvgdeyoj

even a simple translate. eh? shucks

PRs welcome.

Klowner avatar Mar 11 '22 13:03 Klowner

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

vmario89 avatar Sep 02 '22 15:09 vmario89