mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-19 08:51:13 +01:00
* Shapes: rotation in the model, XLSX and object.move Shape gains `rotation` (degrees clockwise about its centre, serde default 0 so older workbooks load). XLSX reads and writes it as the shape's `a:xfrm rot`. `object.move` takes `rotation` for shapes and refuses it for charts, pictures and slicers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * UI: select, resize and rotate shapes with a full frame A selected shape showed no frame, so clicking it looked like nothing happened; only text boxes drew one. Every selected object now draws the frame with eight resize handles (corners only on small frames), and shapes add a rotation handle above the top edge. - Each handle resizes from its own side; the opposite side stays put. Shift keeps the aspect ratio on a corner. - The rotation handle turns the shape; Shift snaps to 15 degrees. - A turned shape paints, hit-tests and resizes along its own axes. - Each handle shows the cursor for its direction; the body shows Move. - Arrow keys nudge the selected object 6 pt (Ctrl/Alt: 1 pt), Escape deselects it, Enter/F2 edits a text box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Shape text test: the new rotation field starts at zero Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Shapes: keep flat lines flat, Ctrl+arrow nudges, finite rotation, ink does not rotate Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Shapes: no resize handles on ink, handles act only over cells, arrows follow the screen on right-to-left sheets Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Merge upstream main into fix/shape-select-rotate Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Print rotated shapes and shape text * Fix rotated PDF regression assertion * Fix protected rotation and flat-line resizing * Format shape rotation regression changes --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Fluorine <joseph.anglada92@gmail.com>