labelme
labelme copied to clipboard
[Feature] shape rotation
What has changed
- Add
rotateCenterandrotateCenterBreaktoShape.rotateCenterrotate and keeps the shape, whilerotateCenterBreakbreaks the rectangle to create a quadrangle, then rotate it. The rotate action is a no-op on circles and points. - Modify the canvas to rotate the shape when the mouse scroll and there are selected shapes. If the condition is not met, the scrolling falls back to the previous behavior.
- Add undo for scroll actions.
- Modify canvas and app to block the scrolling when rotating the shapes.
The shortcut:
- No modifier: rotate the shape 5deg.
- Shift modifier: rotate and break the shape.
- Ctrl modifier: rotate 30deg.
Screencap example:
https://github.com/wkentaro/labelme/assets/33273948/f6d68cba-026d-4505-9e04-d6cc3a4cb546
LGTM