M1: support pattern-only keyboard nudges

This commit is contained in:
yoriswind
2026-11-14 22:50:22 -08:00
parent 78be970bc3
commit afc94be558
7 changed files with 374 additions and 10 deletions
+18 -2
View File
@@ -317,14 +317,15 @@ pub(super) fn nudge(s: &mut Session, p: &Value) -> Result<Value> {
// Guides keep to the page's axes; art and anchors move along the constrain angle's.
let (gx, gy) = (dx, dy);
let (dx, dy) = along_constrain_angle(dx, dy, s.prefs.constrain_angle);
if !s.doc()?.selection.anchors.is_empty() {
let objects = transforms_objects(p);
if objects && !s.doc()?.selection.anchors.is_empty() {
// When the anchors move by 0, the document and its undo history stay as they are.
if dx == 0.0 && dy == 0.0 {
return ok();
}
return crate::cmd::path::move_anchors(s, &json!({ "dx": dx, "dy": dy, "patterns": p.get("patterns") }));
}
if s.doc()?.selection.is_empty() {
if objects && s.doc()?.selection.is_empty() {
let copy = bool_or(p, "copy", false);
// When guides move by 0 without a copy, the document and its undo history stay as they are.
if gx == 0.0 && gy == 0.0 && !copy {
@@ -333,6 +334,21 @@ pub(super) fn nudge(s: &mut Session, p: &Value) -> Result<Value> {
return crate::cmd::docmenu::guide_move(s, &json!({ "dx": gx, "dy": gy, "copy": copy }));
}
let ids = selected_roots_to_transform(s)?;
if !objects && !bool_or(p, "copy", false) {
// Pattern-only nudges of art without a pattern change nothing, including undo history.
if !bool_or(p, "patterns", s.prefs.transform_pattern_tiles) {
return ok();
}
let st = s.doc()?;
let paths = st.doc.index_paths(ids.iter().copied());
let mut uses_patterns = false;
for node in ids.iter().filter_map(|id| paths.get(id)).filter_map(|path| st.doc.node_at(path)) {
node.walk(&mut |n| uses_patterns |= vectorcraft_doc::pattern::uses_pattern(n, None));
}
if !uses_patterns {
return ok();
}
}
apply_transform_moving_guides(s, "Move", ids, Affine::translate((dx, dy)), p, true, Some(Vec2::new(gx, gy)))
}
+20 -2
View File
@@ -702,6 +702,19 @@ fn press_modifiers(i: &egui::InputState, key: Key) -> Modifiers {
.unwrap_or(i.modifiers)
}
/// Backquote held when `key` last went down, before any later transitions in the frame.
fn backquote_at_press(i: &egui::InputState, key: Key) -> bool {
let mut held = i.key_down(Key::Backtick);
for event in i.events.iter().rev() {
match event {
egui::Event::Key { key: k, pressed: true, .. } if *k == key => return held,
egui::Event::Key { key: Key::Backtick, pressed, repeat: false, .. } => held = !*pressed,
_ => {}
}
}
i.key_down(Key::Backtick)
}
/// Apply arrow-key movement and clear selected art when no text editor owns input, unless a Layers
/// or Appearance row has Delete/Backspace (`rows_keys`).
fn nudge_and_clear(app: &mut VectorcraftApp, ctx: &egui::Context, rows_keys: bool) {
@@ -709,9 +722,14 @@ fn nudge_and_clear(app: &mut VectorcraftApp, ctx: &egui::Context, rows_keys: boo
let arrows = [(Key::ArrowLeft, -1.0, 0.0), (Key::ArrowRight, 1.0, 0.0), (Key::ArrowUp, 0.0, -1.0), (Key::ArrowDown, 0.0, 1.0)];
for (k, dx, dy) in arrows {
// The modifiers held when the key went down, as `claimed_tool_keys` reads them.
let m = ctx.input(|i| press_modifiers(i, k));
let (m, patterns_only) = ctx.input(|i| (press_modifiers(i, k), backquote_at_press(i, k)));
if ctx.input_mut(|i| i.consume_key(m, k)) && app.session.active().is_some_and(|d| d.selection.has_objects_or_guides()) {
let _ = app.run("object.nudge", json!({"dx": dx, "dy": dy, "big": m.shift, "copy": m.alt}));
let mut params = json!({"dx": dx, "dy": dy, "big": m.shift, "copy": m.alt});
if patterns_only {
params["objects"] = json!(false);
params["patterns"] = json!(true);
}
let _ = app.run("object.nudge", params);
}
}
// Delete / Backspace clear the selection.
+321
View File
@@ -0,0 +1,321 @@
//! Backtick arrow nudges use the real App input route and original generated pattern art.
#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
use egui::{Event, Key, Modifiers, Pos2, RawInput};
use serde_json::json;
use std::sync::Mutex;
use vectorcraft_color::Paint;
use vectorcraft_doc::{Node, NodeId};
use vectorcraft_engine::Session;
use vectorcraft_ui_egui::VectorcraftApp;
// Integration tests link the production global shortcut mirror; each App owns it until its case ends.
static INPUT: Mutex<()> = Mutex::new(());
struct Scene {
app: VectorcraftApp,
ctx: egui::Context,
time: f64,
fill: NodeId,
stroke: NodeId,
solid: NodeId,
other: NodeId,
}
fn key(key: Key, pressed: bool, modifiers: Modifiers) -> Event {
Event::Key { key, physical_key: Some(key), pressed, repeat: false, modifiers }
}
impl Scene {
fn new() -> Self {
let mut app = VectorcraftApp::new(Session::new(), Default::default());
app.run("file.new", json!({"width": 400, "height": 300})).unwrap();
let rect = |app: &mut VectorcraftApp, x, y, width, height| {
NodeId(app.run("shape.rectangle", json!({"x": x, "y": y, "width": width, "height": height})).unwrap()["id"].as_u64().unwrap())
};
let seed = rect(&mut app, 0, 0, 10, 10);
app.run("paint.setFill", json!({"ids": [seed.0], "color": "#ff0000"})).unwrap();
app.run("paint.setStroke", json!({"ids": [seed.0], "none": true})).unwrap();
app.run("select.set", json!({"ids": [seed.0]})).unwrap();
app.run("object.pattern.make", json!({"name": "Dots", "width": 20, "height": 20})).unwrap();
app.run("object.pattern.done", json!({})).unwrap();
let fill = rect(&mut app, 80, 60, 80, 60);
let stroke = rect(&mut app, 200, 60, 80, 60);
let solid = rect(&mut app, 80, 170, 50, 40);
let other = rect(&mut app, 200, 170, 50, 40);
app.run("paint.setFill", json!({"ids": [fill.0, other.0], "swatch": "Dots"})).unwrap();
app.run("paint.setStroke", json!({"ids": [fill.0, stroke.0], "swatch": "Dots"})).unwrap();
app.run("paint.setFill", json!({"ids": [stroke.0], "none": true})).unwrap();
app.run("paint.setFill", json!({"ids": [solid.0], "color": "#0077cc"})).unwrap();
app.run("paint.setStroke", json!({"ids": [solid.0, other.0], "none": true})).unwrap();
app.run("prefs.set", json!({"values": {"keyboardIncrement": 2, "transformPatternTiles": false}})).unwrap();
app.run("select.set", json!({"ids": [fill.0, stroke.0, solid.0]})).unwrap();
app.select_tool("selection");
let ctx = egui::Context::default();
vectorcraft_ui_egui::theme::install_fonts(&ctx);
let mut scene = Self { app, ctx, time: 0.0, fill, stroke, solid, other };
for _ in 0..3 {
scene.frame(vec![]);
}
assert!(!scene.ctx.egui_wants_keyboard_input(), "the actual idle canvas must own arrow input");
scene
}
fn frame(&mut self, events: Vec<Event>) {
self.time += 1.0 / 30.0;
let mut raw = RawInput {
events,
time: Some(self.time),
screen_rect: Some(egui::Rect::from_min_size(Pos2::ZERO, egui::vec2(1200.0, 800.0))),
..Default::default()
};
self.app.raw_input_hook(&self.ctx, &mut raw);
let mut out = self.ctx.run_ui(raw, |ui| self.app.ui(ui));
out.textures_delta.clear();
}
fn backtick(&mut self, pressed: bool) {
self.frame(vec![Event::ModifiersChanged(Modifiers::NONE), key(Key::Backtick, pressed, Modifiers::NONE)]);
}
fn arrow(&mut self, arrow: Key, modifiers: Modifiers) {
self.frame(vec![
Event::ModifiersChanged(modifiers),
key(arrow, true, modifiers),
key(arrow, false, modifiers),
Event::ModifiersChanged(Modifiers::NONE),
]);
}
fn node(&self, id: NodeId) -> Node {
self.app.session.active().unwrap().doc.node(id).unwrap().clone()
}
fn history(&self) -> usize {
self.app.session.active().unwrap().history.undo.len()
}
}
fn pattern_shift(before: &Paint, after: &Paint, dx: f64, dy: f64) {
let (Paint::Pattern { xf: a, pattern: name_a }, Paint::Pattern { xf: b, pattern: name_b }) = (before, after) else {
panic!("both paints must remain editable patterns");
};
assert_eq!(name_a, name_b);
let (a, b) = (a.as_coeffs(), b.as_coeffs());
assert_eq!(&a[..4], &b[..4], "translation must preserve the pattern basis");
assert!((b[4] - a[4] - dx).abs() < 1e-9 && (b[5] - a[5] - dy).abs() < 1e-9, "pattern placement {a:?} -> {b:?}, expected ({dx}, {dy})");
}
fn geometry_unchanged(before: &Node, after: &Node) {
let mut normalized = after.clone();
normalized.appearance = before.appearance.clone();
assert_eq!(&normalized, before, "pattern nudging must preserve every non-appearance object field");
}
#[test]
fn pattern_nudge_baseline_backtick_arrows_move_paints_not_mixed_art() {
let _input = INPUT.lock().unwrap();
let mut s = Scene::new();
let (fill, stroke, solid, other) = (s.node(s.fill), s.node(s.stroke), s.node(s.solid), s.node(s.other));
let selection = s.app.session.active().unwrap().selection.clone();
let definitions = s.app.session.active().unwrap().doc.patterns.clone();
let history = s.history();
s.backtick(true);
s.arrow(Key::ArrowRight, Modifiers::NONE);
s.backtick(false);
let (a, b) = (s.node(s.fill), s.node(s.stroke));
// Assert paint movement first: unchanged main follows ordinary geometry movement instead.
pattern_shift(&fill.appearance.fill_paint(), &a.appearance.fill_paint(), 2.0, 0.0);
pattern_shift(&fill.appearance.stroke_paint(), &a.appearance.stroke_paint(), 2.0, 0.0);
pattern_shift(&stroke.appearance.stroke_paint(), &b.appearance.stroke_paint(), 2.0, 0.0);
geometry_unchanged(&fill, &a);
geometry_unchanged(&stroke, &b);
assert_eq!(s.node(s.solid), solid);
assert_eq!(s.node(s.other), other, "unselected user of the same definition stays unchanged");
assert_eq!(s.app.session.active().unwrap().doc.patterns, definitions);
assert_eq!(s.app.session.active().unwrap().selection, selection);
assert_eq!(s.history(), history + 1);
s.app.run("edit.undo", json!({})).unwrap();
assert_eq!(s.node(s.fill), fill);
assert_eq!(s.node(s.stroke), stroke);
assert_eq!(s.node(s.solid), solid);
}
#[test]
fn pattern_nudge_baseline_ordinary_arrow_keeps_existing_geometry_behavior() {
let _input = INPUT.lock().unwrap();
let mut s = Scene::new();
let before = s.node(s.fill);
let pattern = before.appearance.fill_paint();
let other = s.node(s.other);
let history = s.history();
s.arrow(Key::ArrowRight, Modifiers::NONE);
let after = s.node(s.fill);
let (a, b) = (before.geometric_bounds().unwrap(), after.geometric_bounds().unwrap());
assert!((b.x0 - a.x0 - 2.0).abs() < 1e-9 && b.y0 == a.y0);
assert_eq!(after.appearance.fill_paint(), pattern, "ordinary nudge respects Transform Pattern Tiles off");
assert_eq!(s.node(s.other), other);
assert_eq!(s.history(), history + 1);
s.app.run("edit.undo", json!({})).unwrap();
assert_eq!(s.node(s.fill), before);
}
#[test]
fn pattern_nudge_partial_anchors_and_idle_shape_tool_preserve_owner_geometry() {
let _input = INPUT.lock().unwrap();
for tool in ["directSelection", "rectangle"] {
let mut s = Scene::new();
s.app.run("select.set", json!({"ids": [s.fill.0]})).unwrap();
s.app.select_tool(tool);
if tool == "directSelection" {
s.app.run("select.anchors", json!({"id": s.fill.0, "anchors": [[0, 0]], "mode": "set"})).unwrap();
}
s.frame(vec![]);
let before = s.node(s.fill);
let selection = s.app.session.active().unwrap().selection.clone();
let history = s.history();
s.backtick(true);
s.arrow(Key::ArrowDown, Modifiers::NONE);
s.backtick(false);
let after = s.node(s.fill);
pattern_shift(&before.appearance.fill_paint(), &after.appearance.fill_paint(), 0.0, 2.0);
geometry_unchanged(&before, &after);
assert_eq!(s.app.session.active().unwrap().selection, selection);
assert_eq!(s.history(), history + 1);
s.app.run("edit.undo", json!({})).unwrap();
assert_eq!(s.node(s.fill), before);
s.arrow(Key::ArrowDown, Modifiers::NONE);
let ordinary = s.node(s.fill);
assert_eq!(ordinary.appearance.fill_paint(), before.appearance.fill_paint());
if tool == "directSelection" {
let a: Vec<_> = before.path_data().unwrap().anchors().map(|(_, _, a)| a.p).collect();
let b: Vec<_> = ordinary.path_data().unwrap().anchors().map(|(_, _, a)| a.p).collect();
assert_eq!(a.len(), b.len());
assert_eq!(b[0], a[0] + vectorcraft_geom::Vec2::new(0.0, 2.0));
assert_eq!(&b[1..], &a[1..], "ordinary Direct Selection nudges only the selected anchor");
} else {
let (a, b) = (before.geometric_bounds().unwrap(), ordinary.geometric_bounds().unwrap());
assert!((b.y0 - a.y0 - 2.0).abs() < 1e-9 && b.x0 == a.x0);
}
}
}
#[test]
fn pattern_nudge_shift_constrain_release_and_undo_use_press_time_increment() {
let _input = INPUT.lock().unwrap();
let mut s = Scene::new();
s.app.run("prefs.set", json!({"values": {"keyboardIncrement": 3, "constrainAngle": 90}})).unwrap();
let before = s.node(s.fill);
let solid = s.node(s.solid);
let history = s.history();
s.backtick(true);
s.arrow(Key::ArrowRight, Modifiers::SHIFT);
let after = s.node(s.fill);
pattern_shift(&before.appearance.fill_paint(), &after.appearance.fill_paint(), 0.0, -30.0);
geometry_unchanged(&before, &after);
assert_eq!(s.node(s.solid), solid);
assert_eq!(s.history(), history + 1);
s.app.run("edit.undo", json!({})).unwrap();
assert_eq!(s.node(s.fill), before);
s.app.run("edit.redo", json!({})).unwrap();
assert_eq!(s.node(s.fill), after);
s.backtick(false);
s.arrow(Key::ArrowRight, Modifiers::NONE);
let ordinary = s.node(s.fill);
let (a, b) = (after.geometric_bounds().unwrap(), ordinary.geometric_bounds().unwrap());
assert!((b.y0 - a.y0 + 3.0).abs() < 1e-9 && b.x0 == a.x0);
assert_eq!(ordinary.appearance.fill_paint(), after.appearance.fill_paint());
s.app.run("edit.undo", json!({})).unwrap();
assert_eq!(s.node(s.fill), after);
}
#[test]
fn pattern_nudge_same_frame_event_order_uses_backtick_at_arrow_press() {
let _input = INPUT.lock().unwrap();
let mut s = Scene::new();
let before = s.node(s.fill);
s.backtick(true);
s.frame(vec![
key(Key::ArrowRight, true, Modifiers::NONE),
key(Key::Backtick, false, Modifiers::NONE),
key(Key::ArrowRight, false, Modifiers::NONE),
]);
let after = s.node(s.fill);
pattern_shift(&before.appearance.fill_paint(), &after.appearance.fill_paint(), 2.0, 0.0);
geometry_unchanged(&before, &after);
s.arrow(Key::ArrowRight, Modifiers::NONE);
let ordinary = s.node(s.fill);
assert!((ordinary.geometric_bounds().unwrap().x0 - after.geometric_bounds().unwrap().x0 - 2.0).abs() < 1e-9);
assert_eq!(ordinary.appearance.fill_paint(), after.appearance.fill_paint());
let mut s = Scene::new();
let before = s.node(s.fill);
s.frame(vec![
key(Key::ArrowRight, true, Modifiers::NONE),
key(Key::Backtick, true, Modifiers::NONE),
key(Key::ArrowRight, false, Modifiers::NONE),
]);
s.backtick(false);
let after = s.node(s.fill);
assert!((after.geometric_bounds().unwrap().x0 - before.geometric_bounds().unwrap().x0 - 2.0).abs() < 1e-9);
assert_eq!(after.appearance.fill_paint(), before.appearance.fill_paint(), "a later Backtick press cannot reinterpret an earlier arrow press");
}
#[test]
fn pattern_nudge_solid_and_guide_only_are_noops_but_ordinary_arrows_work() {
let _input = INPUT.lock().unwrap();
let mut s = Scene::new();
s.app.run("select.set", json!({"ids": [s.solid.0]})).unwrap();
let before = s.app.session.active().unwrap().doc.clone();
let selection = s.app.session.active().unwrap().selection.clone();
let history = s.history();
s.backtick(true);
s.arrow(Key::ArrowRight, Modifiers::NONE);
s.backtick(false);
assert_eq!(s.app.session.active().unwrap().doc, before);
assert_eq!(s.app.session.active().unwrap().selection, selection);
assert_eq!(s.history(), history);
let solid = s.node(s.solid);
s.arrow(Key::ArrowRight, Modifiers::NONE);
assert!((s.node(s.solid).geometric_bounds().unwrap().x0 - solid.geometric_bounds().unwrap().x0 - 2.0).abs() < 1e-9);
s.app.run("view.guides.lock", json!({"locked": false})).unwrap();
let index = s.app.run("guide.add", json!({"vertical": true, "pos": 40})).unwrap()["index"].as_u64().unwrap();
s.app.run("guide.select", json!({"indexes": [index]})).unwrap();
let before = s.app.session.active().unwrap().doc.clone();
let selection = s.app.session.active().unwrap().selection.clone();
let history = s.history();
let guides = s.app.run("guide.list", json!({})).unwrap();
s.backtick(true);
s.arrow(Key::ArrowRight, Modifiers::NONE);
s.backtick(false);
assert_eq!(s.app.session.active().unwrap().doc, before);
assert_eq!(s.app.session.active().unwrap().selection, selection);
assert_eq!(s.history(), history);
s.arrow(Key::ArrowRight, Modifiers::NONE);
let moved = s.app.run("guide.list", json!({})).unwrap();
assert_eq!(moved[index as usize]["pos"].as_f64().unwrap(), guides[index as usize]["pos"].as_f64().unwrap() + 2.0);
assert_eq!(s.history(), history + 1);
s.app.run("edit.undo", json!({})).unwrap();
assert_eq!(s.app.session.active().unwrap().doc, before);
}
#[test]
fn pattern_nudge_user_shortcut_precedes_global_arrow_dispatch() {
let _input = INPUT.lock().unwrap();
let mut s = Scene::new();
s.app.run("shortcuts.set", json!({"id": "select.none", "shortcut": "Right", "force": true})).unwrap();
let before = s.app.session.active().unwrap().doc.clone();
let history = s.history();
s.backtick(true);
s.arrow(Key::ArrowRight, Modifiers::NONE);
s.backtick(false);
let after = s.app.session.active().unwrap().doc.clone();
let empty = s.app.session.active().unwrap().selection.is_empty();
let after_history = s.history();
// Reset the global command map before assertions, including a failing ownership assertion.
s.app.run("shortcuts.set", json!({"id": "select.none", "shortcut": null})).unwrap();
assert!(empty, "the user's bound Select None command owns this arrow press");
assert_eq!(after, before);
assert_eq!(after_history, history);
}
+4 -1
View File
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -1,6 +1,6 @@
# Roadmap: milestones and what's next
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-14 · **Change:** minor (Tech Circuit brush library, G5; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: M10/G5: Energy Beams brush library; MCP docs list Energy Beams; previously minor: M10/G5: Skill Icons symbol library; MCP docs list Skill Icons; previously minor: M10/G5: Status Effects graphic style library; MCP docs catch-up for symbol libraries; previously minor: M10/G5: Inventory Icons built-in symbol library; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: M10/G5: Game HUD graphic style library; previously minor: resizable icon-strip flyouts and bottom-aligned panel footers, #5713; previously minor: M10/G5: Map Markers built-in symbol library; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: G2: Effect Gallery thumbnails and in-dialog preview are in; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; M4/M7: `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; M4/M7: `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Indian-language hyphenation review and license allowlist, #4947; Hindi catalog and contributor loanword preferences; full wording review in progress; Effect dialogs: a colour swatch beside a hex colour opens the Color Picker, #5365; shape tools move the selection from its centre point and turn it from the zone outside a box corner, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x)
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-14 · **Change:** minor (Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Tech Circuit brush library, G5; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: PDF import: glyphs in a span with an empty ActualText come in as outlines, #6971; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: #6865: explicitly requested oversized editing artboard; Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: M10/G5: Energy Beams brush library; MCP docs list Energy Beams; previously minor: M10/G5: Skill Icons symbol library; MCP docs list Skill Icons; previously minor: M10/G5: Status Effects graphic style library; MCP docs catch-up for symbol libraries; previously minor: M10/G5: Inventory Icons built-in symbol library; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: M10/G5: Game HUD graphic style library; previously minor: resizable icon-strip flyouts and bottom-aligned panel footers, #5713; previously minor: M10/G5: Map Markers built-in symbol library; previously minor: right-click on type: Spelling › Auto Spell Check, with its check mark, #4936; previously minor: right-click on a word Auto Spell Check underlined: its suggestions, Ignore All and Add to Dictionary, #4936; previously minor: G2: Effect Gallery thumbnails and in-dialog preview are in; Auto Spell Check: `edit.autoSpellCheck` underlines the unknown words, #4936; previously minor: PDF editable import preserves authored ActualText once, including empty/nested spans and authored ordering (#6165); cross-line/style layout remains approximate; scores and estimates unchanged; PDF marked-text export (#6309): compatible glyphs stay on one layout line with per-glyph offsets; scores and estimates unchanged; interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; custom dictionary and Ignore All: `text.spelling.addWord`, `removeWord`, `changeWord`, `dictionary` and `ignoreAll`, #4936; previously minor: EPS import: embedded fonts (composite, Type 42, CID-keyed, Type 1, CFF FontSet) draw their glyphs; spell check engine: `text.spelling.check` and `text.spelling.suggest` on craft-proof, #4936; previously minor: floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; M4/M7: `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; M4/M7: `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Indian-language hyphenation review and license allowlist, #4947; Hindi catalog and contributor loanword preferences; full wording review in progress; Effect dialogs: a colour swatch beside a hex colour opens the Color Picker, #5365; shape tools move the selection from its centre point and turn it from the zone outside a box corner, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x)
>
> Oversized artboard import update (2026-11-12): Explicit editing-data import retains a single artboard beyond a capped 14,400 pt PDF page (#6865).
>
@@ -156,7 +156,7 @@ Gujarati interface follow-up (2026-11-14): the catalog and zero/one plural rule
| # | Milestone | Status | Est. remaining, one agent (h) |
|---|---|---|---|
| M0 | Skeleton + vertical slice | ✅ done | — |
| M1 | Selection, transform, layers, MCP (common command tools, strict keys, session resources and version-aware result hints) | ✅ mostly done (document-tab artwork drag with lossless resource transfer and one target Undo; malformed MCP app replies discard the connection without replay, #1761; bounded control socket waits and connection-slot recovery, #1726; bounded synthetic control input, #1709; no-op anchor Align keeps Undo, Redo and saved state (#1180 follow-up); transform reference point snaps to anchors/centres; rotated objects keep a rotated bounding box and their angle; Free Transform, Scale and Reflect along a rotated box pending; the Transform fields take one Tab each, the W/H link after them) | 4–6 |
| M1 | Selection, transform, layers, MCP (common command tools, strict keys, session resources and version-aware result hints) | ✅ mostly done (document-tab artwork drag with lossless resource transfer and one target Undo; malformed MCP app replies discard the connection without replay, #1761; bounded control socket waits and connection-slot recovery, #1726; bounded synthetic control input, #1709; no-op anchor Align keeps Undo, Redo and saved state (#1180 follow-up); transform reference point snaps to anchors/centres; rotated objects keep a rotated bounding box and their angle; Free Transform, Scale and Reflect along a rotated box pending; the Transform fields take one Tab each, the W/H link after them; #7717 Backquote/~ pattern arrow nudges for Selection, Direct Selection and other idle tools, with Keyboard Increment/Shift) | 4–6 |
| M2 | Drawing tools + smart guides | ✅ mostly done (#3380 deletion creates independent selected path pieces and keeps bounds-fitted gradients in place; endpoint highlighting remains open; Polygon/Star exact-size count persistence, with repeated-drag, tool-switch and Cancel regression coverage; Curvature point markers without direction handles (#1236, in part); Direct Selection segment click/Delete preserves neighboring edges, #1278; Flare, Reshape, Live Corners widget dragging and per-corner radii and kinds landed, on any path's corners; Shaper rough-shape recognition and orientation steps, the remaining Pen modifier nuances; Shaper Groups with editable sources and separate fill/stroke edits landed; custom ruler origin with drag preview, active-artboard reset, relative X/Y fields and native round-trip (#1212); construction widget/refinements pending); a shape just drawn moves by its centre point and turns from the zone outside a corner with its tool still active (#5477); Tangent and straight-segment perpendicular snapping use saved Smart Guides Geometric Guides preferences and Control bar quick access (#2537), including the existing Snap to Glyph and Alignment Guides toggles (#6164); no View submenu; Copy and Cut with the Pen or Curvature tool take the anchors a Cmd/Ctrl-lent Direct Selection picked (#6123) | 12–18 |
| M3 | Paint & appearance (swatches, color, gradient, stroke, appearance, transparency, styles) | ✅ done (M3.7–M3.98): swatches, groups, libraries, tints, Lab spots and Registration; Eyedropper copies transformed character dimensions (#6404) and styles highlighted text only (atomic transparency rejection); Eyedropper reads visible locked and outside-isolation sources (#1251); Color Picker, Color panel, Color Guide, Color Themes, Edit Colors and Recolor Artwork (screen-bounded Edit chip list, #3416); gradients that follow every transform, the annotator, linked stops, freeform gradients, focal points, gradients on strokes and Expand; visible strokes when paint is added to inherited None/zero-width art (#1253); stroke geometry, arrowheads, dashes fitted to corners, stroke on type, width profiles and the Width tool (Shift-double-click enables adjoining adjustment in Width Point Edit; finite-arithmetic follow-up regressions and full CI passed ([Validation evidence](target-app-parity.md#evidence-what-ships-today-by-area))), Scale Strokes and preview bounds; Appearance targeting, container appearance, target circles, Expand Appearance; knockout, isolation, blend accuracy, CMYK blending, overprint, Attributes, masks and clipping, Flatten Transparency; graphic styles, links and libraries; CSS library export preserves fractional linear and radial gradient stop positions. Left: freeform gradients in SVG/PDF, mixed spot/process gradients in SVG and PDF gradients mixing a spot color with RGB or Lab stops export as stops or process colors; PDF export writes dithered gradient fills with spot stops, and Perceptual spot gradients with RGB or Lab stops other than white or more than 4,096 stops on their curve, as images in process colors; confirm the Scale Strokes & Effects default; Recolor model selection is available through the engine and MCP only (#2520); the dialog retains its existing controls; Library panels' lists (swatch, Color Book, brush, symbol and graphic style libraries) fill a taller panel above its footer (#2992; scores and estimates unchanged); Graphic Styles list fills a taller panel above its footer (#2992; scores and estimates unchanged); Swatches list fills a taller panel above its footer (#1638; `the_list_fills_a_tall_panel_above_its_footer`; scores and estimates unchanged); | 4–8 |
| M4 | Files (native, SVG, PDF, raster, Export for Screens, clipboard interop) | Rename artboards in Export for Screens (#7275); Explicit editing-data import keeps oversized capped-page artboards (#6865; estimates unchanged); Save refusal continuation (#6146): ordinary Save offers Save As; unchanged format keeps options, changed format opens its Save options; cancellation/automation isolation; focused UI regressions passed, native acceptance pending; PDF authored ActualText preserved once in editable import (#6165; first-glyph line/style, bounded input; estimates unchanged); PDF export keeps harakat and zero-advance Noto Arabic dot glyphs in one compatible batch per layout line, with per-glyph vertical offsets (#6309). `crates/pdf/src/tests/realtext.rs` (`mark_text_*`) checks decoded cluster mappings, mixed Arabic/Latin/digits, contour placement against outline export, vertical columns, differing path rotations and PDF/X-1a/3/4. Editable-text import preserves authored ActualText separately (#6165), with cross-line/style layout limits; separately styled or differently rotated clusters and external viewer search/copy remain outside this export-only evidence. `.ai`/EPS type from the text document keeps its paragraphs' tab stops (#6147); `.ai`/EPS type from the text document keeps auto leading per line, its hyphenation options, and may show more of the last lines the file sets in an area frame of its own, when growing the frame by its lines' deepest descent plus 0.05 pt shows them (#6137); ✅ done (M4.14–M4.98 on 2026-10-05): Save As/Save a Copy/Revert/templates, Data Recovery and background save, SVG import and export fidelity (units, text, symbols, filters, SVGZ, Preserve Editing, SVG Options), shared guarded PDF writer and windowed reader ([pdf-backend.md](pdf-backend.md)), PDF import (colours, layers, masks, editable text, security) and export (presets, marks, bleed, ICC and output intent, raster effects, subset fonts, PDF/X-1a, X-3 and X-4, PDF layers, overprint, page thumbnails, fast web view, PDF 1.3), Place and Links, Package, EPS and DXF in and out (EPS legacy mesh corners, vector opacity masks and raster page comparison verified; closed SPLINE flags round-trip and circular paths export as native CIRCLE/ARC, #1299), EMF/WMF, TIFF/BMP/Targa/PSD/GIF/PNG-8 export, Print and print presets, slices, Save for Web, TIFF in Export for Screens and Asset Export, clipboard flavours, File Info; AF.1–AF.4 add Affinity import (native layers, artboards, vectors, text and images from Affinity 1–3 files; the embedded preview only as a warned fallback; AF.4 expands current `.af` fixtures and every-board round-trip validation); EPS Save and Save As keep an opened EPS as EPS with its page frame and complete editable VectorCraft document (2026-10-26; G9 import fidelity unchanged). Left: DWG (use DXF), PSD placement as layers, overprint read back from PDF, Affinity export, polish; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; SVG CSS classes survive export and repeated import in all four styling modes (#2480); current-main integration retains event attributes and scripts; PDF import: glyphs inside a marked-content span with an empty `ActualText` come in as outlines in their fill and stroke, adding no text (#6971; scores and estimates unchanged); | 3–6 (existing scope; Affinity export unestimated) |
@@ -207,6 +207,7 @@ separate. Scores and hours unchanged. [Behavior and command details](development
| Date | Change | Summary |
|---|---|---|
| 2026-11-14 | minor | #7717: Backquote/~ arrow nudges for selected pattern fills and strokes retain normal increment/Shift and idle-tool behavior. Scores and estimates unchanged. |
| 2026-11-14 | minor | Tech Circuit adds three original procedural brushes (Circuit Trace, Bus Lines, Terminal Nodes); ten built-in brush libraries. G5 remaining estimate 3–13 h (estimated); parity scores and headline totals unchanged. |
| 2026-11-14 | minor | Gujarati (#6613): contributor proofreading completed for all 387 additions, with 11 wording corrections; 4,673 reviewed catalog rows. Status/error messages remain partial; web selection requires a bundled Gujarati face. Scores and estimates unchanged. |
| 2026-11-12 | minor | Gujarati (`gu`): 4,286-row machine-assisted catalog reviewed by a native speaker, zero/one singular plurals, desktop font fallback and optional Gujarati craft-fonts fallback; all 72 translation tests pass; a web font and about 2,600 untranslated messages remain; scores and estimates unchanged |
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -1,6 +1,6 @@
# UI and interaction parity
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-13 · **Change:** minor (Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Remove Background in the Contextual Task Bar, Properties › Quick Actions and the Control bar; previously minor: Ruler origin: the corner drag snaps as a drawn point does; previously minor: Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: Outline view: images and gradient meshes are picked on what Outline draws, so a click inside them reaches the path behind, #6437; previously minor: a middle-click on a document tab closes it, #6506; previously minor: Blob Brush: a round tip's preview is the outline of the area it adds, round at both ends, as the stroke it commits (#4343); scores and estimates unchanged; previously:; ruler double-click adds a guide at the pointer, #5239; G5: Inventory Icons built-in symbol library (four built-ins); previously minor: files that record no units open in Preferences › Units › General, #5820; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Layers: Rename (`ui.rename`) opens the name field of the selected layer, group or object, #5324; Properties in Edit Artboards: Transform section above the Artboards section, #5219; scrubby labels: the Control bar's Stroke: and Opacity: links and the Properties panel's Stroke link scrub their fields, #4088; Properties: Quick Actions has Repeat Options for one selected repeat, #5181; Direct Selection: Shift-click picks several blend spine points, which drag together, #5285; Direct Selection: Cmd/Ctrl held lends the Selection tool and shows its bounding box, #3901; Join tool trims two crossing open paths and joins them at the crossing, #5844; Control bar: Paragraph: link and Align left/center/right while type is selected, #5372; shape tools: a press on the selection's centre point moves it and one in the rotate zone outside a box corner turns it, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged)
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-14 · **Change:** minor (Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: Graphic Styles list fills a taller panel, #2992; scores and estimates unchanged; previously: library panels' lists fill a taller panel, #2992; scores and estimates unchanged; previously: Swatches list fills a taller panel, #1638; scores and estimates unchanged; previously: icon-strip flyouts also resize from the top edge and the canvas-side top corner, keeping the moved top in workspaces (storytold/craft-libs#1094); scores and estimates unchanged; previously: macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Remove Background in the Contextual Task Bar, Properties › Quick Actions and the Control bar; previously minor: Ruler origin: the corner drag snaps as a drawn point does; previously minor: Live Paint Bucket fills faces crossed in one drag (#6373); previously: #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: Outline view: images and gradient meshes are picked on what Outline draws, so a click inside them reaches the path behind, #6437; previously minor: a middle-click on a document tab closes it, #6506; previously minor: Blob Brush: a round tip's preview is the outline of the area it adds, round at both ends, as the stroke it commits (#4343); scores and estimates unchanged; previously:; ruler double-click adds a guide at the pointer, #5239; G5: Inventory Icons built-in symbol library (four built-ins); previously minor: files that record no units open in Preferences › Units › General, #5820; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; floating tab groups collapse into the side icon rail and opened rail panels fold back into it, #5925 in part; numeric fields step on wheel hover without taking keyboard focus, #5949; Character Styles panel: a double-click on a style's row opens its Character Style Options; the dialog keeps a fixed width and scrolls its sections, so its buttons stay on screen; Selection QoL: marquee modes and visible feedback, #5313; #3380 deletion-only review follow-up: independent survivors keep gradient placement, owned subpaths avoid discarded copies, and contracts/status/evidence are clarified; endpoint highlighting remains open; scores and estimates unchanged; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Layers: Rename (`ui.rename`) opens the name field of the selected layer, group or object, #5324; Properties in Edit Artboards: Transform section above the Artboards section, #5219; scrubby labels: the Control bar's Stroke: and Opacity: links and the Properties panel's Stroke link scrub their fields, #4088; Properties: Quick Actions has Repeat Options for one selected repeat, #5181; Direct Selection: Shift-click picks several blend spine points, which drag together, #5285; Direct Selection: Cmd/Ctrl held lends the Selection tool and shows its bounding box, #3901; Join tool trims two crossing open paths and joins them at the crossing, #5844; Control bar: Paragraph: link and Align left/center/right while type is selected, #5372; shape tools: a press on the selection's centre point moves it and one in the rotate zone outside a box corner turns it, #5477; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged)
>
> Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5).
>
@@ -200,6 +200,7 @@ tools, never checked side by side) isn't captured row by row.
| Behaviour | Status | Notes |
|---|---|---|
| Backquote/~ arrow nudges move selected pattern fills and strokes | done | #7717: Selection, partial-anchor Direct Selection and other idle tools; Keyboard Increment/Shift; geometry, guides and anchor selection stay fixed. Tests: `crates/ui-egui/tests/pattern_only_nudge.rs` |
| Deleting segments or anchors that disconnect an ordinary path creates independent selected objects | done | #3380, deletion only: first piece retains its ID, styles and transforms carry over in sibling order, bounds-fitted gradients keep their original placement, and one Undo restores the original. Existing multi-subpath paths and compound members stay intact. `delete_path_pieces` covers transformed/styled rectangles, cubic handles and Undo/Redo. Endpoint highlighting remains open. |
| Click/Shift-click anchors; marquee toggles with Shift | done | #483 |
| Align selected anchors to their bounds or the artboard; repeating an alignment that moves nothing keeps Undo, Redo and saved state | done | #1180 follow-up; engine regressions include rounding-only moves and unchanged handles; #1641 (fixes #1636): Align and Distribute act on the anchors selected with Direct Selection, the points of one path aligning to each other and Distribute spacing them |
@@ -543,6 +544,7 @@ before release (#6373). [Paint faces and edges](https://helpx.adobe.com/illustra
| Date | Change | Summary |
|---|---|---|
| 2026-11-14 | minor | #7717: Backquote/~ arrow nudges for selected pattern fills and strokes retain normal increment/Shift and idle-tool behavior. Scores and estimates unchanged. |
| 2026-11-14 | minor | Tech Circuit adds three original procedural brushes (Circuit Trace, Bus Lines, Terminal Nodes); ten built-in brush libraries. G5 remaining estimate 3–13 h (estimated); parity scores and headline totals unchanged. |
| 2026-11-12 | minor | Numeric fields: a focus click released more than 1 pt from its press keeps the caret; a tap within 1 pt still selects the whole value (#6659, follow-up to #1326). Scores and estimates unchanged. |
| 2026-11-12 | minor | Remove Background for a selected image in the Contextual Task Bar, Properties › Quick Actions and the Control bar, which runs at once with its defaults. Scores and estimates unchanged. |