mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
* fix(ui): Roundness previews its radius within 1 px too, and a held frame survives a factor change (#10474) Follow-up to #10524 from its last CodeRabbit review. - Roundness's disc reaches floor(r) pixels along an axis, so at 6 px and k = 4 the proxy radius 1.5 reached 1 proxy px: a 4 px preview for a 6 px result. The factor now keeps floor(r / k) * k within 1 px of floor(r), as Squareness already does with round (k = 3 at 6 px, k = 2 at 50 px). One whole-pixel function per mode replaces the special case. - A canvas test drives the worker across a factor change: the frame for k = 2 stays on the canvas, at its own size, until the k = 1 frame lands. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(ui): a fractional Roundness radius previews closer at its chosen factor (#10474) CodeRabbit on #11081: only the factors were pinned. At 6.5 px the Roundness preview at the chosen k = 3 is compared with OK's result and must differ less than the k = 4 preview did. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(ui): a mid-drag frame for the previous proxy factor still reaches the canvas (#10474) CodeRabbit on #11081: the display gate keeps a held frame at any factor, but the mid-drag publish arm still required the same factor, so a frame finished for the factor the drag just left was dropped. It now uses same_target_at_any_scale too; a frame already exact for the dialog is still never displaced. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>