Commit Graph
280 Commits
Author SHA1 Message Date
aiongg 5c50580db9 Sensing: a press past the root's clip (automation's) is taken by a part that shows inside the clip, never by one the clip hides wholly; suite drives skip wholly hidden parts of a canvas control (the clip of its arena), and the corner widgets' drive grips a widget the fixture shows 2026-11-17 04:15:51 +00:00
aiongg 9db1bef17f Value gestures: a host that keeps a number in f32 echoes the proposal rounded to it; Slider, SliderField, AngleDial and TransformBox read that echo as their own value (craft_behavior::same_in_f32), so a live drag runs on as one gesture 2026-11-17 02:39:48 +00:00
aiongg 86ff913c14 cargo fmt 2026-11-17 01:37:58 +00:00
aiongg 0ea70922fb Merge branch 'red/t6e' into fw/mac1 2026-11-17 01:05:29 +00:00
aiongg 8f46d3c69a Merge branch 'red/t45e' into fw/mac1
# Conflicts:
#	crates/ui-contract/src/runtime/focus/nav.rs
#	crates/ui-widgets/tests/it/body/scroll.rs
2026-11-17 01:05:29 +00:00
aiongg 98477eec5c Gradient palette: the presets take their content height up to five small control heights, then scroll
In a content-sized popover (the paint chip's Gradient tab) the palette's preset browser filled the
popover's whole room, so the gradient options under it (Reverse, Dither, Align) fell below the
window. The old palette scrolled past five small control heights, as PhotoCraft's 120 px preset
list does; the browser's room_height gives that bound.
2026-11-17 00:34:27 +00:00
aiongg 2c7ce20114 Empty-part cursor: copy the part result before the cursor call 2026-11-17 00:29:18 +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 8a30a026fe The anchor tools' empty-canvas part shows the tool's off-path cursor 2026-11-17 00:21:36 +00:00
aiongg 959927e686 rustfmt the crates round C changed 2026-11-17 00:18:07 +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 93bfcb46fe Pen: the knot a press acts on is named knot, so the snapped point at stays the new anchor's place 2026-11-16 23:32:16 +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 5d9a02e86b Merge branch 'red/t7' into fw/mac1
# Conflicts:
#	crates/behavior/src/geometry/draft.rs
#	crates/behavior/tests/geometry/draft.rs
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 cdea1067e7 Pen and Curvature Pen place and pull their anchors at the point the canvas snaps the pointer to (View > Snap To and the pixel grid), as the other drawing tools do 2026-11-16 22:04:17 +00:00
aiongg e902b2d306 Merge branch 'red/lag' into fw/mac1 2026-11-16 22:03:51 +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 88a153964a Tool stories run their tool in the canvas body
The story body is the canvas body: it shows the canvas controls, runs the
tool through the StoryHost on the canvas's tool pass, then shows what reads
the tool's state, so the canvas shows a press and its moves in the same pass.
The run closure applies the tool's events and the story buttons' edits to the
document after the canvas. The body gets the document mutably, since some
tools edit it themselves.
2026-11-16 22:02:07 +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 f5b4138b17 CropOverlay reports a secondary press released on its parts as a context click, as the gradient overlay does 2026-11-16 21:51:16 +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