2013/11/7 Bryan Hoyt | Brush Technology <bryan@...2310...>:
I'm suggesting that I'd be happy to have a go at fixing it myself at some stage in the nearish future, if it's not likely to be a big project, but if there were someone else who was keen to do it, I'd be happy to let them! I'm not offering sponsorship.
My thoughts on how such a set of features should work:
- When editing the nodes of an objectBoundingBox gradient, it remains in
objectBoundingBox coordinates in the XML representation, but with no visual change in behaviour. 2) When moving or resizing an object associated with an objectBoundingBox gradient, the gradient's XML representation remains unchanged.
Strictly speaking, these two requirements are incompatible. When you rotate or skew an object, an objectBoundingBox gradient has to be modified in a non-obvious way so that it transforms with the object. In fact handling rotations and skew would probably be the hardest part of implementing this.
The relevant places are:
1. SPItem::adjust_gradient, src/sp-item.cpp line 1124 2. sp_gradient_convert_to_userspace, src/gradient-chemistry.cpp line 430 3. sp_gradient_transform_multiply, src/gradient-chemistry.cpp line 549
Regards, Krzysztof