PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Pen tool: Shift constrains segments and handles to 45° (TOOL-214-10, #3751) (#3756)
David Mann835f33a476cb
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rsindex 3fe97a1fc..47c0ce4ed 100644--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@ -4870,7 +4870,7 @@ fn tool_move(app: &mut PhotocraftApp, x: f64, y: f64, pressure: f32, mods: egui:crate::vector_ui::pen_break_handle(app);}if tool == Tool::Pen {- crate::vector_ui::pen_move(app, x, y);+ crate::vector_ui::pen_move(app, x, y, mods.shift);} else if tool == Tool::CurvaturePen {crate::vector_ui::curvature_move(app, x, y);}@@ -5176,7 +5176,7 @@ pub fn tool_event(app: &mut PhotocraftApp, ev: ToolEvent, mods: egui::Modifiers)}Tool::Pen => {if !(mods.alt && crate::vector_ui::pen_grab_handle(app, x, y)) {- crate::vector_ui::pen_down(app, x, y);+ crate::vector_ui::pen_down(app, x, y, mods.shift);}return;}diff --git a/crates/ui-egui/src/canvas_tool_menu.rs b/crates/ui-egui/src/canvas_tool_menu.rsindex e1466f09a..8d4837bd5 100644--- a/crates/ui-egui/src/canvas_tool_menu.rs+++ b/crates/ui-egui/src/canvas_tool_menu.rs@@ -1374,7 +1374,7 @@ mod tests {let mut app = app();app.ui.tool = Tool::Pen;for (x, y) in [(2.0, 2.0), (20.0, 2.0), (20.0, 20.0)] {- crate::vector_ui::pen_down(&mut app, x, y);+ crate::vector_ui::pen_down(&mut app, x, y, false);crate::vector_ui::pen_up(&mut app);}crate::vector_ui::pen_commit(&mut app, true);@@ -1396,7 +1396,7 @@ mod tests {let mut app = app();app.ui.tool = Tool::Pen;for (x, y) in [(2.0, 2.0), (20.0, 2.0), (20.0, 20.0)] {- crate::vector_ui::pen_down(&mut app, x, y);+ crate::vector_ui::pen_down(&mut app, x, y, false);crate::vector_ui::pen_up(&mut app);}assert!(app.session.active().unwrap().doc.work_path.is_none());@@ -1536,7 +1536,7 @@ mod tests {app.ui.tool = Tool::Pen;app.ui.tool_options.vector_mode = "shape".into();for (x, y) in [(2.0, 2.0), (20.0, 2.0), (20.0, 20.0)] {- crate::vector_ui::pen_down(&mut app, x, y);+ crate::vector_ui::pen_down(&mut app, x, y, false);crate::vector_ui::pen_up(&mut app);}assert!(open(&mut app, &Context::default(), Tool::Pen, [10.0, 10.0]));diff --git a/crates/ui-egui/src/shortcuts.rs b/crates/ui-egui/src/shortcuts.rsindex 0c488d74e..0dce678e2 100644--- a/crates/ui-egui/src/shortcuts.rs+++ b/crates/ui-egui/src/shortcuts.rs@@ -752,7 +752,7 @@ mod tests {app.run("shape.create", serde_json::json!({"kind": "rect", "rect": [10, 10, 40, 40], "fill": "#ff0000"})).unwrap();let history = app.session.active().unwrap().history.past_len();for (x, y) in [(10.0, 10.0), (50.0, 10.0), (50.0, 50.0)] {- crate::vector_ui::pen_down(&mut app, x, y);+ crate::vector_ui::pen_down(&mut app, x, y, false);crate::vector_ui::pen_up(&mut app);}let ctx = egui::Context::default();@@ -785,7 +785,7 @@ mod tests {app.run("file.new", serde_json::json!({"width": 200, "height": 200})).unwrap();app.ui.tool = crate::state::Tool::Pen;for (x, y) in [(10.0, 10.0), (50.0, 10.0)] {- crate::vector_ui::pen_down(&mut app, x, y);+ crate::vector_ui::pen_down(&mut app, x, y, false);crate::vector_ui::pen_up(&mut app);}app.session.prefs.edit(|p| p.shortcuts.insert("edit.undo".into(), "Cmd+Shift+Y".into()));diff --git a/crates/ui-egui/src/vector_ui.rs b/crates/ui-egui/src/vector_ui.rsindex e9d998b04..99dcdbab2 100644--- a/crates/ui-egui/src/vector_ui.rs+++ b/crates/ui-egui/src/vector_ui.rs@@ -206,8 +206,9 @@ pub fn closes_path_at(app: &PhotocraftApp, tool: Tool, x: f64, y: f64) -> bool {}/// Pen press: close on the first anchor, reshape the last anchor's outgoing handle,-/// or add a new anchor (dragging a new anchor pulls symmetrical handles).-pub fn pen_down(app: &mut PhotocraftApp, x: f64, y: f64) {+/// or add a new anchor (dragging a new anchor pulls symmetrical handles). With ⇧ a new anchor+/// lands on the nearest 45° ray from the previous one, at the pointer's projection onto it.+pub fn pen_down(app: &mut PhotocraftApp, x: f64, y: f64, shift: bool) {let tol = 6.0 / app.point_zoom().max(0.01) as f64;let pen = app.ui.pen.get_or_insert_with(PenPath::default);if let Some(first) = pen.knots.first().map(|k| k[0])@@ -234,18 +235,25 @@ pub fn pen_down(app: &mut PhotocraftApp, x: f64, y: f64) {pen.adjusting_last = true;return;}- pen.knots.push([[x, y]; 3]);+ let p = match pen.knots.last() {+ Some(prev) => shift_45(prev[0], [x, y], shift),+ None => [x, y],+ };+ pen.knots.push([p; 3]);pen.dragging = true;pen.adjusting_last = false;}-pub fn pen_move(app: &mut PhotocraftApp, x: f64, y: f64) {+/// Pen drag: pull out the handles of the anchor just placed. ⇧ (read live, as it is held)+/// turns the handle to the nearest 45° direction from its anchor.+pub fn pen_move(app: &mut PhotocraftApp, x: f64, y: f64, shift: bool) {if let Some(pen) = app.ui.pen.as_mut()&& pen.dragging{let adjusting_last = pen.adjusting_last;if let Some(k) = pen.knots.last_mut() {let a = k[0];+ let [x, y] = shift_45(a, [x, y], shift);k[2] = [x, y];if !adjusting_last {k[1] = [2.0 * a[0] - x, 2.0 * a[1] - y];@@ -254,6 +262,11 @@ pub fn pen_move(app: &mut PhotocraftApp, x: f64, y: f64) {}}+/// `p`, or with ⇧ `p` projected onto the nearest 45° ray from `origin` (Pen tool constraint).+fn shift_45(origin: [f64; 2], p: [f64; 2], shift: bool) -> [f64; 2] {+ if shift { crate::stroke_constraint::snap45(origin, p) } else { p }+}+/// Undo the most recently placed Pen anchor while its path is still in progress./// These knots are editor-only gesture state, not document history until Enter or/// clicking the first anchor commits the path. Therefore Cmd/Ctrl+Z must consume one@@ -1002,6 +1015,9 @@ pub fn draw_overlay(app: &PhotocraftApp, painter: &egui::Painter, xf: &ViewXformpainter.add(egui::Shape::dashed_line(&pts, Stroke::new(1.0, accent), 4.0, 3.0));}} else {+ // The rubber band ends where a ⇧-click would put the next anchor.+ let shift = painter.ctx().input(|i| i.modifiers.shift);+ let h = if pen.curvature { h } else { shift_45(last[0], h, shift) };painter.add(egui::Shape::dashed_line(&[to_scr(last[0]), to_scr(h)], Stroke::new(1.0, accent), 4.0, 3.0));}}@@ -2076,11 +2092,11 @@ mod tests {fn pen_shows_the_close_cue_only_over_the_first_anchor_of_a_real_segment() {let mut app = app();app.ui.tool = Tool::Pen;- pen_down(&mut app, 20.0, 20.0);+ pen_down(&mut app, 20.0, 20.0, false);pen_up(&mut app);let one = app.ui.pen.clone().unwrap();assert!(!over_first_anchor(&one, [20.0, 20.0], 6.0), "a single anchor has nothing to close");- pen_down(&mut app, 120.0, 20.0);+ pen_down(&mut app, 120.0, 20.0, false);pen_up(&mut app);let two = app.ui.pen.clone().unwrap();assert!(over_first_anchor(&two, [22.0, 21.0], 6.0));@@ -2092,13 +2108,13 @@ mod tests {let mut app = app();app.ui.tool = Tool::Pen;for (x, y) in [(20.0, 20.0), (120.0, 20.0)] {- pen_down(&mut app, x, y);+ pen_down(&mut app, x, y, false);pen_up(&mut app);}- pen_down(&mut app, 120.0, 120.0);- pen_move(&mut app, 140.0, 140.0); // smooth knot+ pen_down(&mut app, 120.0, 120.0, false);+ pen_move(&mut app, 140.0, 140.0, false); // smooth knotpen_up(&mut app);- pen_down(&mut app, 20.5, 20.5); // click the first anchor: close+ pen_down(&mut app, 20.5, 20.5, false); // click the first anchor: closepen_up(&mut app);assert!(app.ui.pen.is_none());let wp = app.session.active().unwrap().doc.work_path.clone().unwrap();@@ -2110,6 +2126,75 @@ mod tests {assert_eq!((wp.subpaths[0].knots[0].anchor.x, wp.subpaths[0].knots[0].anchor.y), (30.0, 25.0));}+ fn close(a: [f64; 2], b: [f64; 2]) -> bool {+ (a[0] - b[0]).abs() < 1e-9 && (a[1] - b[1]).abs() < 1e-9+ }++ #[test]+ fn pen_shift_click_puts_the_next_anchor_on_a_45_degree_ray() {+ let mut app = app();+ app.ui.tool = Tool::Pen;+ // The first anchor has nothing to constrain against: it lands where clicked.+ pen_down(&mut app, 20.0, 20.0, true);+ pen_up(&mut app);+ assert_eq!(app.ui.pen.as_ref().unwrap().knots[0][0], [20.0, 20.0]);+ // ~30° below horizontal snaps to the 45° diagonal at the pointer's projection.+ let (dx, dy) = (100.0 * 30f64.to_radians().cos(), 100.0 * 30f64.to_radians().sin());+ pen_down(&mut app, 20.0 + dx, 20.0 + dy, true);+ pen_up(&mut app);+ let k = app.ui.pen.as_ref().unwrap().knots[1];+ let t = 100.0 * 15f64.to_radians().cos() / std::f64::consts::SQRT_2;+ assert!(close(k[0], [20.0 + t, 20.0 + t]), "{:?}", k[0]);+ assert!(k[1] == k[0] && k[2] == k[0], "a click stays a corner");+ // ~10° off vertical snaps to straight down from the previous anchor.+ let prev = k[0];+ pen_down(&mut app, prev[0] + 8.0, prev[1] + 50.0, true);+ pen_up(&mut app);+ assert!(close(app.ui.pen.as_ref().unwrap().knots[2][0], [prev[0], prev[1] + 50.0]));+ // Without ⇧ the anchor stays at the pointer.+ pen_down(&mut app, 200.0, 190.0, false);+ pen_up(&mut app);+ assert_eq!(app.ui.pen.as_ref().unwrap().knots[3][0], [200.0, 190.0]);+ // ⇧ does not stop a click on the first anchor from closing the path.+ pen_down(&mut app, 20.5, 20.5, true);+ pen_up(&mut app);+ assert!(app.ui.pen.is_none());+ assert!(app.session.active().unwrap().doc.work_path.as_ref().unwrap().subpaths[0].closed);+ }++ #[test]+ fn pen_shift_drag_turns_handles_to_45_degrees_live() {+ let mut app = app();+ app.ui.tool = Tool::Pen;+ pen_down(&mut app, 20.0, 20.0, false);+ pen_up(&mut app);+ pen_down(&mut app, 100.0, 100.0, false);+ // Without ⇧ the handle follows the pointer.+ pen_move(&mut app, 130.0, 110.0, false);+ assert_eq!(app.ui.pen.as_ref().unwrap().knots[1][2], [130.0, 110.0]);+ // Pressing ⇧ mid-drag snaps the handle (~18°) to horizontal; the opposite handle mirrors it.+ pen_move(&mut app, 130.0, 110.0, true);+ let k = app.ui.pen.as_ref().unwrap().knots[1];+ assert!(close(k[2], [130.0, 100.0]) && close(k[1], [70.0, 100.0]), "{k:?}");+ assert_eq!(k[0], [100.0, 100.0], "the anchor does not move");+ // Releasing ⇧ frees it again.+ pen_move(&mut app, 120.0, 140.0, false);+ assert_eq!(app.ui.pen.as_ref().unwrap().knots[1][2], [120.0, 140.0]);+ // ⌥ breaks the pair; ⇧ then constrains the outgoing handle alone (~63° → 45°).+ pen_break_handle(&mut app);+ pen_move(&mut app, 120.0, 140.0, true);+ let k = app.ui.pen.as_ref().unwrap().knots[1];+ assert!(close(k[2], [130.0, 130.0]), "{k:?}");+ assert_eq!(k[1], [80.0, 60.0], "the incoming handle stays where it was");+ pen_up(&mut app);+ // Degenerate: ⇧ with the pointer on the anchor leaves the handle on it.+ pen_down(&mut app, 200.0, 100.0, false);+ pen_move(&mut app, 200.0, 100.0, true);+ let k = app.ui.pen.as_ref().unwrap().knots[2];+ assert!(k.iter().all(|p| *p == [200.0, 100.0]), "{k:?}");+ pen_up(&mut app);+ }+/// #4721: a second Pen path joins the Work Path it was drawn after (still selected), as a new/// subpath, instead of replacing it; a saved path that is selected takes it instead; with no/// path selected, the new path replaces the Work Path, as in Photoshop.@@ -2119,10 +2204,10 @@ mod tests {app.ui.tool = Tool::Pen;let draw = |app: &mut PhotocraftApp, x: f64| {for (dx, dy) in [(0.0, 0.0), (40.0, 0.0), (40.0, 40.0)] {- pen_down(app, x + dx, 20.0 + dy);+ pen_down(app, x + dx, 20.0 + dy, false);pen_up(app);}- pen_down(app, x + 0.5, 20.5); // close+ pen_down(app, x + 0.5, 20.5, false); // closepen_up(app);};let work = |app: &PhotocraftApp| app.session.active().unwrap().doc.work_path.clone().unwrap();@@ -2163,16 +2248,16 @@ mod tests {let mut app = app();app.ui.tool = Tool::Pen;assert!(!closes_path_at(&app, Tool::Pen, 20.0, 20.0), "no path yet");- pen_down(&mut app, 20.0, 20.0);+ pen_down(&mut app, 20.0, 20.0, false);pen_up(&mut app);assert!(!closes_path_at(&app, Tool::Pen, 20.0, 20.0), "one anchor: a click there doesn't close");- pen_down(&mut app, 120.0, 20.0);+ pen_down(&mut app, 120.0, 20.0, false);assert!(!closes_path_at(&app, Tool::Pen, 20.0, 20.0), "not while dragging the new anchor");pen_up(&mut app);assert!(closes_path_at(&app, Tool::Pen, 21.0, 22.0), "over the first anchor");assert!(!closes_path_at(&app, Tool::Pen, 120.0, 20.0) && !closes_path_at(&app, Tool::Pen, 60.0, 60.0), "the last anchor and empty canvas");assert!(!closes_path_at(&app, Tool::CurvaturePen, 20.0, 20.0), "a Pen path isn't the Curvature Pen's");- pen_down(&mut app, 21.0, 22.0);+ pen_down(&mut app, 21.0, 22.0, false);pen_up(&mut app);assert!(app.ui.pen.is_none() && !closes_path_at(&app, Tool::Pen, 20.0, 20.0), "the click closed it");@@ -2195,12 +2280,12 @@ mod tests {app.run("shape.create", json!({"kind": "rect", "rect": [10, 10, 40, 40], "fill": "#ff0000"})).unwrap();let old_history = app.session.active().unwrap().history.past_len();- pen_down(&mut app, 20.0, 20.0);+ pen_down(&mut app, 20.0, 20.0, false);pen_up(&mut app);- pen_down(&mut app, 120.0, 20.0);- pen_move(&mut app, 120.0, 60.0);+ pen_down(&mut app, 120.0, 20.0, false);+ pen_move(&mut app, 120.0, 60.0, false);pen_up(&mut app);- pen_down(&mut app, 120.0, 120.0);+ pen_down(&mut app, 120.0, 120.0, false);pen_up(&mut app);let original_first_two = app.ui.pen.as_ref().unwrap().knots[..2].to_vec();@@ -2221,7 +2306,7 @@ mod tests {fn pen_undo_of_first_anchor_cancels_empty_draft() {let mut app = app();assert!(!pen_undo_last_point(&mut app));- pen_down(&mut app, 15.0, 17.0);+ pen_down(&mut app, 15.0, 17.0, false);pen_up(&mut app);assert!(pen_undo_last_point(&mut app));assert!(app.ui.pen.is_none());@@ -2243,10 +2328,10 @@ mod tests {// Drawing a work path with the Pen selects it.app.ui.tool = Tool::Pen;for (x, y) in [(20.0, 20.0), (120.0, 20.0), (120.0, 120.0)] {- pen_down(&mut app, x, y);+ pen_down(&mut app, x, y, false);pen_up(&mut app);}- pen_down(&mut app, 20.5, 20.5);+ pen_down(&mut app, 20.5, 20.5, false);pen_up(&mut app);assert_eq!(app.ui.selected_path.as_deref(), Some("work"));let wp = app.session.active().unwrap().doc.work_path.clone().unwrap();@@ -2336,13 +2421,13 @@ mod tests {for zoom in [0.25, 1.0, 4.0] {let mut app = app();app.ui.views[0].zoom = zoom;- pen_down(&mut app, 20.0, 20.0);+ pen_down(&mut app, 20.0, 20.0, false);pen_up(&mut app);- pen_down(&mut app, 100.0, 100.0);- pen_move(&mut app, 110.0, 120.0);+ pen_down(&mut app, 100.0, 100.0, false);+ pen_move(&mut app, 110.0, 120.0, false);pen_up(&mut app);let incoming = app.ui.pen.as_ref().unwrap().knots[1][1];- pen_down(&mut app, 100.0 + 5.0 / f64::from(zoom), 100.0);+ pen_down(&mut app, 100.0 + 5.0 / f64::from(zoom), 100.0, false);pen_up(&mut app);let pen = app.ui.pen.as_ref().unwrap();assert_eq!(pen.knots.len(), 2);@@ -2352,7 +2437,7 @@ mod tests {let restored: PenPath = serde_json::from_value(saved).unwrap();assert_eq!(restored, *pen);assert_eq!(pen_to_json(&restored, false)["subpaths"][0]["knots"][1]["smooth"], false);- pen_down(&mut app, 100.0 + 7.0 / f64::from(zoom), 100.0);+ pen_down(&mut app, 100.0 + 7.0 / f64::from(zoom), 100.0, false);assert_eq!(app.ui.pen.as_ref().unwrap().knots.len(), 3);}let legacy: PenPath = serde_json::from_value(json!({"knots": [[[10, 10], [10, 10], [10, 10]]]})).unwrap();diff --git a/docs/scorecard.md b/docs/scorecard.mdindex d8d580267..a902efcb9 100644--- a/docs/scorecard.md+++ b/docs/scorecard.md@@ -8,7 +8,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js|---|---:|---:|---:|---|| [Performance](#performance) | 3 | 22 | 22 | 56 scenarios: 3 within budget, 22 over budget or failing, 9 tracked only, 17 not run, 5 not measurable yet (baseline 2026-10-05) || [File compatibility](#file-compatibility) | 7 | 13 | 7 | io corpus: oracle ≥ 146/170, round trip ≥ 169/170; psd-tools corpus: oracle ≥ 241/309, round trip ≥ 308/309; photoshop oracles: oracle ≥ 149/256, round trip ≥ 258/256 |-| [Tools](#tools) | 31 | 12 | 0 | |+| [Tools](#tools) | 32 | 11 | 0 | || [Workspace and UI](#workspace-and-ui) | 13 | 6 | 4 | settings that do nothing: 26 of 160 (target 0) || [Type](#type) | 4 | 3 | 2 | || [Automation](#automation) | 5 | 2 | 4 | 631 of 631 menu items live (100.0%) |@@ -154,7 +154,7 @@ Corpus floors (`crates/io/tests/corpus.rs`): the enforced minimums; the corpus t| TOOL-214-7 | Content-Aware Scale through the Free Transform box with a live proxy preview | done | [#214](https://github.com/storytold/photocraft/issues/214) | Edit > Content-Aware Scale opens a scale-only Free Transform box (cas_transform.rs) with Amount, Protect and Protect Skin Tones in the options bar; edit.contentAwareScale carves a 384 px copy in the background for the live preview, and Enter runs it with the box's size and x/y as one step (#3096) || TOOL-214-8 | A measured ruler angle prefills Image Rotation > Arbitrary (0.01 deg) | done | [#214](https://github.com/storytold/photocraft/issues/214) | analysis_ui.rs: image.rotation.arbitrary opens seeded with the ruler angle and the direction that straightens it; arbitrary_rotation_starts_at_the_ruler_angle checks 5.7106 deg within 1e-3 and cw/ccw for three measured lines || TOOL-214-9 | Crop: W x H x Resolution with units, saved crop presets, Straighten in the options bar | done | [#214](https://github.com/storytold/photocraft/issues/214) | Ratio dropdown and fields, Straighten (TOOL-214-21); W x H x Resolution with units, built-in size presets and Front Image (crop_size.rs, image.crop targetWidth/targetHeight/resolution, #2443); New / Delete Crop Preset save and delete crop tool presets (crop_presets.rs, tool.presets.* with tool crop, persisted with the preferences) |-| TOOL-214-10 | Pen: Alt breaks a handle, Shift 45 deg, Ctrl direct-selects, Backspace, close-drag handle | partial | [#214](https://github.com/storytold/photocraft/issues/214) | Ctrl/Cmd = Direct Selection and Alt = Convert Point on existing paths (direct_select.rs, #790); Backspace/Delete retracts the last point while drawing (#1466); Alt during a drag breaks the handle pair, Alt-drag turns the last anchor's outgoing handle alone, and dragging on the first anchor closes with that anchor's handles (vector_ui.rs, #3306); no Shift 45 deg |+| TOOL-214-10 | Pen: Alt breaks a handle, Shift 45 deg, Ctrl direct-selects, Backspace, close-drag handle | done | [#214](https://github.com/storytold/photocraft/issues/214) | Ctrl/Cmd = Direct Selection and Alt = Convert Point on existing paths (direct_select.rs, #790); Backspace/Delete retracts the last point while drawing (#1466); Alt during a drag breaks the handle pair, Alt-drag turns the last anchor's outgoing handle alone, and dragging on the first anchor closes with that anchor's handles (vector_ui.rs, #3306); Shift-click puts the next anchor on the nearest 45 deg ray from the previous one and Shift-drag turns the handles to 45 deg steps, live (vector_ui.rs pen_shift_click_puts_the_next_anchor_on_a_45_degree_ray, pen_shift_drag_turns_handles_to_45_degrees_live, #3751) || TOOL-214-11 | Stroke Path dialog: pick any brush-based tool, Simulate Pressure | done | [#214](https://github.com/storytold/photocraft/issues/214) | path.stroke tool: Brush, Pencil, Eraser and every other brush-based tool (Background Eraser, Clone/Pattern Stamp, Healing/Spot Healing Brush, History Brush, Blur, Sharpen, Smudge, Dodge, Burn, Sponge, Color Replacement, Mixer Brush: their paint.* command along the path, one step) plus simulatePressure (taper both ends); Stroke Path dialog from the Pen menu, the Paths panel menu and Alt-click on its Stroke button (#2978) || TOOL-214-12 | Shapes: on-canvas corner radius handles, shape feather, selection to shape with tolerance | partial | [#214](https://github.com/storytold/photocraft/issues/214) | select.convertToShape with tolerance (vector_cmds.rs:1256); radius as a field only || TOOL-214-13 | Mask Properties: Density and Feather controls | partial | [#214](https://github.com/storytold/photocraft/issues/214) | Vector-mask density/feather in the engine (vector_cmds.rs:948); no UI controls |diff --git a/docs/ui-parity.md b/docs/ui-parity.mdindex dc2a3f2d0..202b9b89a 100644--- a/docs/ui-parity.md+++ b/docs/ui-parity.md@@ -1,6 +1,6 @@# UI parity: tools, handles, modifiers and feel-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed) · **Target:** Adobe Photoshop 2026+> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (Pen ⇧ 45°; last selected tool restored at launch; Layers panel filter-type dropdown with Kind, Name and Mode, #5048; Free Transform box and marching ants follow the selection, #5297; History: the trash deletes the selected snapshot, rows drag onto the trash, #5324; smart filter reordering by drag; smart object perspective row corrected to done, #426; Free Transform H/V skew fields; toolbar tool shortcuts can be reassigned; ⇧-dragged guides land on ruler ticks; layer and selection keys; tool keys; spring-loaded tool letters; type formatting keys; Pen Auto Add/Delete, #4144; smart filter rows; stale missing-tool rows corrected: Color Replacement, Red Eye and the Add/Delete Anchor Point pair are live toolbar tools, Frame landed; no percentage changed) · **Target:** Adobe Photoshop 2026How PhotoCraft's direct manipulation compares with Photoshop 2026 (27.11.0): the toolbox, thehandles and modifier keys of each gesture, nudging, snapping, numeric precision, navigation,@@ -118,7 +118,7 @@ Triangle and Curvature Pen (minus legacy Rounded Rectangle and Targeted Adjustme| Behaviour | Status | Evidence ||---|---|---|-| Click corner, drag smooth, ⌥ breaks a handle, ⌘ direct-selects, ⇧ 45° | partial | TOOL-214-10 |+| Click corner, drag smooth, ⌥ breaks a handle, ⌘ direct-selects, ⇧ 45° | done | TOOL-214-10; `vector_ui.rs` (#3751) || Handle on the last point, close-drag handle | partial | #1482 || Pen Auto Add/Delete: click a segment of the active path to add, an anchor to delete; ⇧ suspends it | done | #4144 || Path operations in the options bar (combine, subtract, intersect, exclude) | partial | `layer.combineShapes.*`; Pen options #1397 |@@ -238,5 +238,6 @@ Paragraph; the rest open as in-app floating windows.| 2026-10-12 | minor | Smart filter rows can be selected, and dragged (⌥: copied) onto another smart object or onto Delete (#4271) || 2026-10-12 | minor | Free Transform options bar: H and V skew fields; a sheared box reads as skew instead of a taller H || 2026-10-13 | minor | Smart filter rows can be dragged up or down their stack to reorder the filters |+| 2026-10-11 | minor | Pen ⇧ 45° done: ⇧-click puts the next anchor on the nearest 45° ray, ⇧-drag turns its handles in 45° steps (TOOL-214-10 done, #3751) || 2026-10-14 | minor | Last selected tool restored across launches; temporary overrides excluded, explicit Eraser choices retained, and final selection flushed on normal exit || 2026-10-13 | minor | Free Transform with a selection: the box is the selection's rectangle, and the marching ants follow it while it is transformed (#5297) |diff --git a/scorecard/tools.toml b/scorecard/tools.tomlindex 6c3f84974..bc33d2009 100644--- a/scorecard/tools.toml+++ b/scorecard/tools.toml@@ -176,9 +176,9 @@ note = "Ratio dropdown and fields, Straighten (TOOL-214-21); W x H x Resolution[[item]]id = "TOOL-214-10"target = "Pen: Alt breaks a handle, Shift 45 deg, Ctrl direct-selects, Backspace, close-drag handle"-status = "partial"+status = "done"issue = 214-note = "Ctrl/Cmd = Direct Selection and Alt = Convert Point on existing paths (direct_select.rs, #790); Backspace/Delete retracts the last point while drawing (#1466); Alt during a drag breaks the handle pair, Alt-drag turns the last anchor's outgoing handle alone, and dragging on the first anchor closes with that anchor's handles (vector_ui.rs, #3306); no Shift 45 deg"+note = "Ctrl/Cmd = Direct Selection and Alt = Convert Point on existing paths (direct_select.rs, #790); Backspace/Delete retracts the last point while drawing (#1466); Alt during a drag breaks the handle pair, Alt-drag turns the last anchor's outgoing handle alone, and dragging on the first anchor closes with that anchor's handles (vector_ui.rs, #3306); Shift-click puts the next anchor on the nearest 45 deg ray from the previous one and Shift-drag turns the handles to 45 deg steps, live (vector_ui.rs pen_shift_click_puts_the_next_anchor_on_a_45_degree_ray, pen_shift_drag_turns_handles_to_45_degrees_live, #3751)"[[item]]id = "TOOL-214-11"