Hi Diederik,
Have you planned to do anything about this matter ?
I was working on bug 168651 (tiled clones in transformed groups) and found it quite a hassle to find what was going on in which coordinate system for the center. I also found a bug related to the new unit stuff (when in a non-px document, a transformation center is wrongly computed for tiled clones)
-- Mc
Le 16/08/2014 23:21, Diederik van Lierop a écrit :
Hi people,
The past weeks I've been trying to fix some transformation center offset regressions, which were caused by the new unit/viewbox stuff. That should all work reasonably well again, but it remains a headache. IMHO this transformation center handling is broken by design, and judging by some comments in the code I'm not the only one to think so. It requires all kinds of special casing everywhere transformations are being applied, due to the transformation center being expressed in horizontal/vertical coordinates, relative to the center of the bounding box. Does anybody know why it was designed like this?
If there are no strong objections, then I'd propose to use absolute coordinates, and to apply transformations as if it were simply a point of a path. This would make code much cleaner. We will no longer need to call document->ensureUpToDate() to force an update of the bounding box everytime the center is requested or changed. It might also allow us to get rid of the weird behavior of the transformation center (which should rotate with the item in case an object is rotated!)
Not that I'm going to change this now, but I might get to this after the 0.91 release.
Diederik
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel