On 3/20/07, bulia byak <buliabyak@...400...> wrote:
- Support for snapping non-node corners of rectangles
As for (6), this is usually taken care of by bounding-box snapping, but that doesn't work when the rectangle has undergone a transformation, making its corners not at the corners of its bounding box.
In current SVN, any shape handles snap (and of course they still snap regardless of whether the shape is transformed or not). Try it.
Actually, I think this is currently done wrong. If you resize a rotated rectangle by handles, it snaps, but the handle is not on grid. It snaps the same as it would snap unrotated, but with rotation transformation this puts the handle off the grid and thus is not what we need.
Diederik, can you please look into fixing it? It should be easy: instead of snapping the rectangle x/y/w/h values, snap the actual position of the handle, and then obtain the x/y/w/h from that snapped position by applying the rect's transform if any. Same should be done for all other shapes.