This PR applies the snap-to-grid function correctly to rotated items. It tries to make snapping more foreseeable and toi better fit user expectations for rotated items.
When moving an arbitrarily rotated item the corners of the item snap. Snap indicators are now correctly shown at the item corners. Until now, a scene bounding rectangle of the item snapped and the snap indicators have been shown on that virtual, invisible rectangle.
Snapping is now also correctly applied to flipped items.
Resizing of rotated items can now also snap to the grid if the angle is 0°, 90°, 180° or 270°. For other angles it makes no sense to snap resizing.
Scaling of an item (i.e. resizing with the bottom-right handle) never snaps.
This PR applies the snap-to-grid function correctly to rotated items. It tries to make snapping more foreseeable and toi better fit user expectations for rotated items.
See also https://github.com/letsfindaway/OpenBoard/issues/185 for a discussion of this feature and the list of tests I have conducted.