Commit Graph
132 Commits
Author SHA1 Message Date
FredApps b04d18a735 Select UI suite items through explicit registries 2026-11-19 12:20:08 +01:00
David Mann 93e68f35a1 Merge remote-tracking branch 'origin/next' into anchor/12708-edit-existing
# Conflicts:
#	crates/draw/src/ui/pen/bezier/mod.rs
#	crates/draw/tests/it/bezier.rs
2026-11-19 02:31:29 +01:00
David MannandClaude Opus 5.5 4d78bb2de2 Add Anchor: Alt selects or copies the whole subpath
In the reference application Alt does not turn Add Anchor Point into
Delete Anchor Point: an Alt click on a segment selects every anchor of
its subpath and adds nothing, an Alt drag moves a copy of the subpath
(the copy ends up selected), an Alt click on an anchor deletes nothing,
and the cursor is the arrow with a plus.

The overlay now does the same under Add Anchor, reusing Direct
Selection's Alt segment press (`PathEdit::DuplicateSubpath`, or the
subpath itself on a path that takes no copies). Delete Anchor with Alt
still adds an anchor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 23:03:09 +01:00
David MannandClaude Opus 5.5 0274c3e5a0 Add Anchor: select and edit existing anchors and handles
In the reference application the Add Anchor Point tool edits the
anchors and handles a path already has as Direct Selection does; only
a press on a segment adds an anchor. The overlay took a press on an
anchor and did nothing with it, and never took a handle.

Under Add Anchor a press on an anchor now selects and drags it as
Direct does (Shift adds to the selection), a press on a shown handle
drags it (Alt moves it alone), and a click on empty canvas deselects
the anchors and keeps the path. Alt on an anchor is still Delete
Anchor's click, and a click on a segment still adds an anchor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:59:49 +01:00
aiongg e79a3ed16e TransformBox: trial that a frame run twice reports each drag move once
A frame's second pass runs the box's update again with the press still
held at the same point. The proposal it makes equals the one the first
pass reported, and the gesture reports an equal proposal only once, so a
host that applies each Update applies it once per move. The trial runs
a drag with every frame run twice and counts the updates.
2026-11-18 20:59:41 +00:00
aiongg cd157c7e8c clippy: update's Linux cancel trials are a cfg(test) module; tail expressions in the corner and raster trials 2026-11-17 17:47:17 +00:00
aiongg 35b0b38909 Rename our craft-color to craft-color-ui; keep storytold main's craft-color (frame colour tags) at crates/color 2026-11-17 12:54:32 +00:00
aiongg 4d600ed6da Transform box: arrows move the whole box unless the keyboard picked a part 2026-11-17 00:22:35 +00:00
aiongg a4570cb03c Merge branch 'red/t2c' into fw/mac1
# Conflicts:
#	crates/draw/src/ui/pen/curvature_mode.rs
2026-11-16 23:37:48 +00:00
aiongg 4b28aad62f Merge branch 'red/t3c' into fw/mac1 2026-11-16 23:37:38 +00:00
aiongg 79a5564061 rustfmt the crates round B changed 2026-11-16 23:32:27 +00:00
aiongg dd0c65a680 BezierOverlay: an open press declares and handles its parts from the paths it began on; Add and Delete Anchor report a press on empty canvas (pressed_empty), whose doc says which tools report it 2026-11-16 23:01:15 +00:00
aiongg d824fa99d7 Curvature Pen: a press away from every end point carries on the subpath the host names (PenTool::carry_on), adding its anchor to it 2026-11-16 22:50:40 +00:00
aiongg fcde55c303 bezier trials: a host-cancelled press restores nothing; arrow trial empties the Tab-arrival selection 2026-11-16 22:48:42 +00:00
aiongg cb14f32232 Merge branch 'red/t4d' into fw/mac1 2026-11-16 22:47:46 +00:00
aiongg d69d80d2cd Merge branch 'red/t10' into fw/mac1 2026-11-16 22:47:46 +00:00
aiongg b865bd53ad Merge branch 'red/t9' into fw/mac1 2026-11-16 22:47:46 +00:00
aiongg a8d15655ac Pen trial: the carried-anchor press lands on a middle anchor, since a press on the first anchor of a draft of three closes it 2026-11-16 22:47:33 +00:00
aiongg 6de8fd7139 rustfmt the crates round A changed 2026-11-16 22:44:29 +00:00
aiongg d3b57ecae9 TransformBox RotateZone::Border: the outside rotates only within a reach of the box's sides; further out a press is the box's and does nothing, with the arrow pointer (PhotoCraft's type box with Command held, pc-prod-e76 type_transform.rs:145-152, 213-216, 310-318); TransformOverlay::rotate_zone passes it to the box 2026-11-16 22:22:26 +00:00
aiongg 0233569408 TransformBox move reach: the corners are round, every point within the reach of the border and no further (a strip along each side and a sector outside each corner), as PhotoCraft's type move reach (pc-prod-e76 type_transform.rs:156-196) 2026-11-16 22:22:26 +00:00
aiongg b1d4d02aa6 Snap rounds the points it gives to whole document units when the app turns on the pixel grid, after the target snap and with snapping off or suspended; the transform box reads the grid from the canvas snap and loses its own pixel_grid prop 2026-11-16 22:03:47 +00:00
aiongg 7d991dcb64 TransformBox: the whole outside is four parts, the outside nearest each corner, under the band parts' keys, so a band press at any corner keeps rotating after the Move controls hand the drag to Free Transform 2026-11-16 22:02:45 +00:00
aiongg 46b2a85470 Merge branch 'red/lag' into red/t4d 2026-11-16 22:00:35 +00:00
aiongg 0734fdde26 Merge branch 'red/lag' into fw/mac1 2026-11-16 21:52:46 +00:00
aiongg 8cb12aa24f Merge branch 'red/t4c' into fw/mac1 2026-11-16 21:52:46 +00:00
aiongg c065f71978 Corner widgets: a trial of a triangle's apex rounding with the pointer travel 2026-11-16 21:45:24 +00:00
aiongg 242d00d30f Pen trial: the close badge shows only over the first anchor 2026-11-16 21:41:44 +00:00
aiongg 5eefdb88a1 Run the tool host in the canvas body at every caller but tool_story and PageView
Gallery mock panels, ui-bench, review story, doc examples and the test sites run
ToolHost::run on the ToolPass the canvas publishes, after the body's controls and
before the picture, which paints with .picture().
2026-11-16 21:37:38 +00:00
aiongg 4c563057cd Merge branch 'red/t5' into fw/mac1 2026-11-16 21:35:40 +00:00
aiongg e546c64d77 Merge branch 'red/t4' into fw/mac1 2026-11-16 21:35:40 +00:00
aiongg e6ab0f2153 Merge branch 'red/t3' into fw/mac1 2026-11-16 21:35:40 +00:00
aiongg 7a0eb4c0ee TransformOverlay reach: TransformReach::MoveOnly offers only the move reach outside the frame (no handles, sides, inside, outside, keys or menu; drawn only while its drag runs), replacing the f32 move reach; the box and overlay report the part their open press holds 2026-11-16 21:35:23 +00:00
aiongg 19f06c9322 Transform session: Undo or Redo inside the nudge pause records the nudges as their own step first, so Redo finds nothing after them 2026-11-16 21:33:31 +00:00
aiongg 1231eaa6ff Crop tool trial: a Straighten line inside a frame snaps its ends as points, never as a frame move 2026-11-16 21:31:42 +00:00
aiongg edd7a2afcd A host cancels an open press by its owner through the press lifecycle Escape uses; BezierOverlay's parts follow the press's tool
cancel_press_of(ctx, owner) marks the arena holding the owner's open press; its next lifecycle run ends the press with
PressCancel::Host, which step 9 turns into a HostChanged cancel of the gesture. PartsCx reads the component's press
slot, so BezierOverlay declares its parts under the tool the press began with, as it handles them. The overlay lets go
of a press that is cancelled or that none of its parts carries, and a release with nothing held does nothing.
2026-11-16 21:29:20 +00:00
aiongg de2c2972c2 BezierOverlay: an open press keeps the tool it began under; the host can cancel the open press 2026-11-16 21:17:55 +00:00
aiongg 02732c6cb1 Crop session: a first Set records a box step (the history starts from the frame before the change) 2026-11-16 21:16:52 +00:00
aiongg 3151102d53 Trial: a ratio typed in several steps fits from the frame the edit began with 2026-11-16 21:15:41 +00:00
aiongg c53698127e TransformBox snapping follows PhotoCraft: inside drags snap the box's bounds, the reference point snaps to the box's nine points only, Distort corners snap to guides only and Ctrl keeps their snapping, and a folded-short corner reports no line 2026-11-16 21:15:37 +00:00
aiongg 83152b550a Trial: the pen's eraser end keeps a drawn crop frame pending 2026-11-16 21:15:14 +00:00
aiongg c1fa0841a0 Trial: P and H belong to the crop only while a frame is pending 2026-11-16 21:14:49 +00:00
aiongg 35d4413ffd Direct Selection: a click on empty canvas keeps the path being edited; trials for the marquee gesture, the deselect click, the Convert click edit and the arrow nudges 2026-11-16 21:14:45 +00:00
aiongg 6c064a218c Curvature Pen: a press on a carried anchor adds an anchor and a double click on a carried anchor changes nothing, as the path's handles stay 2026-11-16 21:12:29 +00:00
aiongg 960d74f6b2 Trial: a Cmd line keeps turning the frame in place after Cmd is let go 2026-11-16 21:11:17 +00:00
aiongg f1cc690bbc Pen: the anchors Undo and Delete never take back are the draft's kept run, so a draft handed back by Undo loses its anchors 2026-11-16 21:09:13 +00:00
aiongg b1766bb698 Merge remote-tracking branch 'upstream/next' into fw/mac1 2026-11-16 19:42:31 +00:00
aiongg 4d1063b6dc PaintBar follows the Pro options bar: pen toggles, rules, no size or hardness fields; bar Home and tool buttons at the standard control size 2026-11-16 16:04:10 +00:00
aiongg 2103be6de1 Fix clippy and rustdoc errors in automation, draw, imaging, svg, ui-patterns and ui-widgets 2026-11-16 15:40:46 +00:00
aiongg fe7246f6c6 TransformBox: one predicate decides which parts follow inside the slop, for the declared sense and the grip; a click that ends with the box as pressed cancels (CancelReason::Unchanged) 2026-11-16 14:15:26 +00:00