Commit Graph
78 Commits
Author SHA1 Message Date
aiongg 4ad172d12d Tool host: a drag's readout ends with its gesture; trial 2026-11-16 21:17:26 +00:00
aiongg db27e2c1c7 Crop overlay: a crop that fills what a turn uncovers keeps the press frame; Content-Aware Fill sets it 2026-11-16 21:12:00 +00:00
aiongg a0e01972e0 Fit Layers asks for the layers' bounds only when it runs
Canvas::layer_bounds takes a LayerBounds provider; ViewCommands::apply and available take it in place of
ViewTarget::layers, which is gone. Fit Layers is available when the canvas has a provider and calls it only in
the pass that applies the command. Trial: showing the canvas asks for no bounds; firing Fit Layers asks once.
2026-11-16 17:42:23 +00:00
aiongg 9b8dbfb332 Shell slots and dock panel bodies settle when they give a content version
Slot::content and AppShell::content give a slot the version of the app data it shows; DockPanels::content
gives one per panel body. With one, the slot or body runs in a settling Lazy. Trials: a versioned slot and a
versioned panel body run only when their version changes; a stroke whose tool asks for repaints runs no
versioned panel beside the canvas and one pass per move frame.
2026-11-16 17:42:23 +00:00
aiongg 45a14a4dad Rulers: minor tick token, mid tick 6/9, ticks end at the divider band, vertical labels step by the label size, horizontal labels sit one gap below the strip top 2026-11-16 16:45:11 +00:00
aiongg 63a4811416 cargo fmt 2026-11-16 14:34:57 +00:00
aiongg f647f41e82 Merge branch 'dl/api' into dl/all 2026-11-16 13:39:11 +00:00
aiongg b39d967677 Merge branch 'dl/contract' into dl/all 2026-11-16 13:39:10 +00:00
aiongg fbe5a16ffe design-lint: api/non-exhaustive: #[non_exhaustive] on public types and variants, constructors where other crates build them 2026-11-16 13:31:29 +00:00
aiongg 62523e765b design-lint: contract/egui-import, contract/memory, test/cfg-test: ui-canvas's picture slot is a contract PaintSlot (PaintUi::reserve_slot); tool fixture and brush story ids and memory through runtime::memory and StoryData; ruler tick trial in the integration binary 2026-11-16 13:19:50 +00:00
aiongg 0347762847 Merge branch 'fw/merge-f' into fw/merge-fb 2026-11-16 13:01:41 +00:00
aiongg 4119da5b95 Merge branch 'fw/merge-d' into area/fwb2 2026-11-16 12:57:54 +00:00
aiongg b3f6f9a4fb merge-c4: Q9: the precise cursor trial discards the tool host's reply 2026-11-16 12:50:35 +00:00
aiongg 802cf26cc6 merge-f: F6: trial for the Show Transformation Values gate over tool readouts and huds; Fixture::root_value 2026-11-16 12:47:53 +00:00
aiongg a809ccadc6 merge-fwd: item 1: FW3: windows::mount_window decides a viewport mount's own window (not from a full-screen or Wayland-maximized opener) at all six sites; trials 2026-11-16 12:37:57 +00:00
aiongg 518da9acb9 merge-c4: Q9: the canvas publishes the precise cursor in its CanvasSpace (Canvas::precise_cursors, toggled by Caps Lock); ToolHost::precise_cursors goes 2026-11-16 12:37:53 +00:00
aiongg c36394fe4b merge-fwd: item 3: the window reads the focused canvas's leftover Escape last (with_window_intents), leave_to_window goes; a full-window dialog closes on Escape from its focused canvas; trial 2026-11-16 12:35:28 +00:00
aiongg bacbfc1ffb merge-c4: 3.2: Rotate View Clockwise and Counterclockwise step in screen space, so a mirrored view turns the same way (#4931) 2026-11-16 12:35:07 +00:00
aiongg cc00dbd368 Clippy and test-target lints: redundant must_use, type aliases for complex types, boxed large variants, argument structs, struct-update initialisers, deprecated egui calls, unused imports and dead code; the swatch library's reorder test runs as a trial 2026-11-16 02:30:55 +00:00
aiongg dc65acc35a tfix5-f12: the Escape a focused document canvas's sessions and tool leave reaches the window's intents (keys::leave_to_window from the tool host; with_window_intents answers while the document canvas is focused); trial 2026-11-16 01:26:07 +00:00
aiongg 5329642822 tfix5-f12: a momentary tool takes the press over the canvas's session members (pointer::withhold_members, set by the tool host each pass); trial: a held Space pans over a crop corner and leaves the crop 2026-11-16 01:23:00 +00:00
aiongg 7e54540765 tfix5-f8: a secondary click with the momentary Hand asks for the canvas menu; the canvas background senses CONTEXT_CLICK so the press machine tells a secondary click from a drag 2026-11-15 23:20:57 +00:00
aiongg fb8838ed41 tfix3-f5: a tool that takes every move gets every move from the press, inside the click distance too; other tools keep click-vs-drag 2026-11-15 19:02:41 +00:00
aiongg 563be77452 ui-canvas: path_runs flattens per segment with a bounded point count and breaks runs at non-finite segments 2026-11-15 13:52:13 +00:00
aiongg 791b10e9b0 fwb2-fix: ToolHost::controls_pressing
(cherry picked from commit 93d1dbd7d798831fda938917098eebdf72c1181f)
2026-11-15 12:06:38 +00:00
aiongg c4e9efbe18 ui-canvas trials: Play's scripted line runs inside the shown document and the trial runs the injected steps to the end 2026-11-15 10:41:52 +00:00
aiongg 83b8649a7d R76: tool-host injection rides the window host's injected lanes
ToolHost::inject hands each ToolInput to the window host's injected lane of the
canvas's viewport, one step per pass: presses, moves and releases as egui
pointer events (InjectedPointer), carrying the pen's reading, which the step's
pass reads in place of the tablet's; Hold/LetGo as steps with no event that the
lane holds (WindowHost::inject_hold, inject_let_go, injected_holds). The tool
reads its input from the canvas's press and the pass pointer as for a hand's,
so the Color HUD, hover and egui's button state see injected moves.

Held keys end where the lane drops input (withdrawal, focus loss, cancel, end
of the session). A held key's momentary command applies to the whole pass, as
the real key's does.

Removed: HostState.queued and injected_held, WindowHost::inject_pass and its
trial, the injected gesture path in the host (Active.injected, Run::injected,
pick_momentary), Momentary::press, ToolInput.clicks.

Trials: the injection trials run until injected_idle; new trials for a held
Space ended by a cancel, an injected pen reading, and the Color HUD picking at
an injected move.
2026-11-15 10:32:47 +00:00
aiongg e109644146 ui-canvas, draw: the fixture and trials that name their canvas import Props 2026-11-15 10:25:26 +00:00
aiongg 14d5ec609a cargo fmt 2026-11-15 10:23:21 +00:00
aiongg 144a157148 ui-canvas: a body names its canvas to the controls keyed by it; the canvas space's id stays internal (it exists only once the view settles) 2026-11-15 10:23:21 +00:00
aiongg 39835bdf73 fwb1 review: one key lookup for the key stage, binds_scoped and bound_around
Matcher::single matches one press without the double-press state; Matcher::press
builds on it. board.rs's KeyScopes (keymap + scopes around a chain -> Active ->
matcher) is the one lookup for the key stage, binds_scoped and bound_around,
which drop their own copies. bound_around reads the key through the viewport's
layout, routes the command as take_around does (Board::instance_around) and
returns it only when it resolves enabled (gate, modal, live); binds_scoped also
requires an enabled command. Fixture::gate sets the app gate in trials.
2026-11-15 10:13:00 +00:00
aiongg 8d2b4c67a3 canvas-widgets-w14: net change of 2 commits
- canvas-widgets-w14: review fixes (review-1)
- canvas-widgets-w14: review fixes (round 2)
2026-11-15 09:18:08 +00:00
aiongg b119a18735 canvas-widgets-w19: net change of 2 commits
- canvas-widgets-w19: written by an agent
- canvas-widgets-w19: review fixes (review-1)
2026-11-15 09:18:07 +00:00
aiongg 7053fe0c7a tools-w17: net change of 2 commits
- tools-w17: written from its sheet
- tools-w17: SourceMarker and StrokeTrail list Role::None in ALT_ROLES, as their access picks it (tools run round)
2026-11-15 04:46:08 +00:00
aiongg df0d2cc021 tools-w16: net change of 9 commits
- tools-w16: written by an agent
- tools-w16: finished by an agent
- tools-w16: finished by an agent
- tools-w16: review fixes (review-1.md)
- tools-w16: review fixes (review-1.md): placed_in keeps no clamp
- tools-w16: placed rects keep inside their bounds (T3)
- Integration: icons keep framework-01-w12's dash-align drawings in stroke_drawings and dialogs-w17's circle-filled in the attribution
- tools-w16: the task bar trial's frame lies high on the 360-point story canvas, so the bar has room below it after each move and drop (tools run round)
- Integration: measure_layer keeps dialogs-w17's family tier beside Overlay::full_window
2026-11-15 04:46:08 +00:00
aiongg a9b04134a8 tools-w15: net change of 3 commits
- tools-w15: written by an agent
- tools-w15: review fixes (review-1)
- tools-w15: the crop rig records only the real run of each pass, not the canvas body's measuring run (tools run round)
2026-11-15 04:46:08 +00:00
aiongg 58ef53128a canvas-widgets-w2: net change of 4 commits
- canvas-widgets-w2: written from its sheet
- canvas-widgets-w2: repair 1
- canvas-widgets-w2: review fixes (review-1)
- canvas-widgets-w2: the view-tool rig's frames are dt apart (the fixture's own step included), and the zoom press-point trial runs with Overscroll on (fwcw round 3)
2026-11-15 04:46:06 +00:00
aiongg 45aa93e89e canvas-widgets-w1: net change of 7 commits
- canvas-widgets-w1: written from its sheet
- canvas-widgets-w1: repair 1
- canvas-widgets-w1: review fixes (review-1)
- canvas-widgets-w1: review fixes (review-1), test compile fixes
- canvas-widgets-w1: drags follow the pass's own moves (per-frame input rule)
- canvas-widgets-w1: the run lends the tool and stand-ins for the pass only, so the host's state is free after it (combine)
- canvas-widgets-w1: the stand-in cursor trial's selected tool refuses Command, and the claimed-chord trial gives the canvas focus back from the opener (fwcw round 3)
2026-11-15 04:46:06 +00:00
aiongg b7ee7384fc canvas-widgets-w9: net change of 3 commits
- canvas-widgets-w9: written by an agent
- canvas-widgets-w9: review fixes (review-1)
- canvas-widgets-w9: the typed-zoom press trial reads the row's commit (a plain typed number proposes as typed) and shows the canvas tall enough for its pasteboard press (fwcw round 3)
2026-11-15 04:46:06 +00:00
aiongg 1e8c2736ed canvas-widgets-w4: net change of 11 commits
- canvas-widgets-w4: written by an agent
- canvas-widgets-w4: finished by an agent
- canvas-widgets-w4: review fixes (review-1)
- canvas-widgets-w4: pen readings drain in the pass that carries moves (per-frame input rule)
- Integration: input hook keeps canvas-widgets-w13's frame key and inject_pass beside the focus-loss withdrawal and inject_ime
- canvas-widgets-w4: tp.T39 ControlClick moved from PhotoCraft (Integration: top-w7's item, on this set's hot path)
- canvas-widgets-w4: Control-click trial in the it binary (tp.T39)
- canvas-widgets-w4: the gesture-gap trial reads the wake once egui's wheel smoothing has settled (fwcw round 3)
- canvas-widgets-w4: the list-end trial starts a new wheel gesture at the list's end, as a running gesture keeps its taker (fwcw round 3)
- canvas-widgets-w4: the free-slider wheel trial points inside the panel, which is as wide as its members (fwcw round 3)
- canvas-widgets-w4: the Tab-and-paste trial uses prose editors, as a code editor part keeps Tab (fwcw round 3)
2026-11-15 04:46:06 +00:00
aiongg f83986ad4b canvas-widgets-w3: net change of 9 commits
- canvas-widgets-w3: partly written (run interrupted)
- canvas-widgets-w3: partly written (run interrupted)
- canvas-widgets-w3: partly written (run interrupted)
- canvas-widgets-w3: written by an agent
- canvas-widgets-w3: review fixes (review-1)
- Integration: canvas trials keep canvas-widgets-w10's split module
- canvas-widgets-w3: the drag's snap reads the press bounds alone, so the release can take the gesture (combine)
- canvas-widgets-w3: the ruled guides trial shows its canvas in a room that holds the bounds, so its releases land on the canvas (fwcw round 3)
- canvas-widgets-w3: review fixes (review-tl-1)
2026-11-15 04:46:06 +00:00
aiongg 2151ca4cd4 canvas-widgets-w11: net change of 12 commits
- canvas-widgets-w11: partly written (run interrupted)
- canvas-widgets-w11: partly written (run interrupted)
- canvas-widgets-w11: partly written (run interrupted)
- canvas-widgets-w11: written by an agent
- canvas-widgets-w11: review fixes (review-1)
- canvas-widgets-w11: a root's response reports the presses on every part of its own, whatever egui widget took them; the part results say which part (fwcw round 3)
- canvas-widgets-w11: a press keeps focus only on the framework's focused stop, so a press on the canvas background focuses the canvas while a body member holds the stop (fwcw round 3)
- Integration: ui-widgets exports TextWords for Alert::range (dialogs-w4, cw.N6)
- canvas-widgets-w11: the held edit-menu selection drives the text part's keys and survives the pass focus takes to come back (top run round)
- canvas-widgets-w11: a root's own background is a hover candidate below its parts, and the root's response hovers by the framework's resolve wherever its arena is under the pointer; the press fallback to the background folds into the same shape (top run round)
- canvas-widgets-w11: an activation closes only the layers its walk out of the layer it ran in crosses, so a pick in a field's edit menu inside Help leaves Help open (top run round)
- Integration: overlay pass keeps framework-01-w9's layer spaces beside the activation's closed layers
2026-11-15 04:46:05 +00:00
aiongg 1951630307 canvas-widgets-w10: net change of 5 commits
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: partly written (run interrupted)
- canvas-widgets-w10: finished by an agent
- canvas-widgets-w10: review fixes (review-1)
2026-11-15 04:46:05 +00:00
aiongg e9e3a961f4 Merge next (CI lint fixes) into phase2/stubs
# Conflicts:
#	crates/color/src/ui/swatches/menu.rs
2026-11-14 03:13:33 +00:00
aiongg 38ce55467c Contract stubs: craft-ui-canvas, craft-ui-shell (plus stage-4 carry) 2026-11-14 01:59:24 +00:00
aiongg 8378864db3 Lints: gate test-only items, simplify types, struct literals, doc link 2026-11-14 01:25:10 +00:00
aiongg f759fce00f Canvas: Overscroll off centres a document smaller than the view; the wheel's modifiers carry a held Alt the wheel events miss (Windows); a part read in a run that stopped before the parts step (an egui sizing pass) reads idle 2026-11-13 18:44:56 +00:00
aiongg 9b957ec673 Canvas wheel zoom: anchor at the pointer the wheel came at (Wheel::at, in the taker's layer space from take_wheel), so an app widget over the body does not move the anchor to the centre 2026-11-13 18:44:56 +00:00
aiongg e1ae7a64a4 Canvas wheel: a line pans Photoshop's 16 points (Component::wheel_notch), Alt with the Control key zooms as Alt does; a focused field takes the field's share of the wheel wherever the pointer is; FrameOutput.delivered records the commands components took 2026-11-13 18:44:56 +00:00
aiongg 7399b2124d RasterDisplay: a mapped picture with Extent::Tiled repeats its area a whole area apart 2026-11-13 18:44:56 +00:00