Files
vectorcraft/crates
dotCooCoo c6a09abe68 Live Corners: an unfinished corner radius stays with the corners it was typed for
A value typed into a corner radius field and not yet entered stayed in
the field when the selection moved to other corners with the same
radius, so Enter applied the old expression to the new corners: "3+"
typed with one rectangle selected and "1" Enter after selecting another
gave the second rectangle 4 pt.

Each corner radius field now passes NumberField::edit_target a key for
what it edits: the document, its File › Revert and Undo or Redo counts,
the selected objects in id order and the corners the field sets. The
key covers the Properties panel's Corner Radius, the Control bar's
Corner Radius, the Corners pop-up's Radius, a live shape's Corner
Radius and the per-corner fields of a live rectangle. The same objects
selected in another order keep the value. Rounding a Direct-Selected
corner leaves the unrounded path as it was, so a scrub that rounds it
keeps going. The per-corner fields keep a value while only the
Direct-Selected anchors change, since they set a fixed corner of each
selected live rectangle.

A live rectangle's, polygon's or star's corners keep their order and are
keyed by index and corner count, so the value stays while the shape
moves, rotates or scales, and goes when a polygon gains a side. A
corner of any other path is keyed by its index and by its subpath:
where that subpath starts, whether it is closed, and its anchors and
handles measured from its first anchor. Moving the path, or reversing
or moving another subpath, keeps the value; reversing, rotating or
scaling the corner's own subpath drops it.

PickedCorners gains these corner keys beside its command items. The
corners a live shape's Corner Radius sets, and the selected live
rectangles the per-corner fields set, are measured once per document
revision.
2026-12-04 12:00:13 -08:00
..