
On 18/8/10 11:25, Alexander Roalter wrote:
On 18.08.2010 10:40, Jasper van de Gronde wrote:
As for the other things, a lot of that is already possible (Inkscape has two modes for applying transformations and you can set the precision at which it works). Any specific requests for enhancing the functionality are most welcome though.
I currently have the setting to 'optimize transformations'. After some testing, I found that what I'd need has to do with a grouped object (this also applies to the 'resize page size to object', which also produces a transformation:
If I move an object around, the coordinates are adjusted in the XML as expected. If the object is a group, the group gets a 'transform' tag which is only changed subsequently.
Not only groups always use 'preserved' transformation: - Inkscape shapes like ellipses, stars, polygons and spirals store even simple translation in the 'transform' attribute. - Inkscape's rectangles use preserved transforms for scaling or rotating. - Paths with an applied filter effect use preserved transforms for scaling or rotating. - AFAIU clones (<use>) have to use preserved transforms.
related: Bug #233935 “Moves of circle stored in transform Attribute” https://bugs.launchpad.net/inkscape/+bug/233935
The only way to apply the transformation is to ungroup-regroup, which doesn't work on the entire page (after the 'resize page size to object'). Apparently, there's currently no way for doing this.
You can delete the transform attribute of the layer(s) in the XML Editor. This will render the objects at their untransformed location. To realign the objects with the current page, select all objects in the layer and use the 'Align and Distribute' dialog to center the selection as group relative to the page (make sure to deselect all first after closing the XML Editor dialog and to activate the relevant layer again, before selecting all objects)
[ The 'transform' attribute that is added to the top-level layers/groups after resizing the page (or changing its size|orientation) often results in erratic behavior e.g. of tiled clones, connectors and some extensions (most of the errors appear to be caused by incorrect or missing handling of parent transforms of certain object types inside transformed groups). ]
~suv