mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 11:23:43 +01:00
Merge pull request #8668 from storytold/train/carry7822
Support Backquote-arrow pattern-only nudging (#7822)
This commit is contained in:
7 files changed
+369
-7
No files matched your search
@@ -326,14 +326,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"), "interpolate": p.get("interpolate") }));
|
||||
}
|
||||
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 {
|
||||
@@ -342,6 +343,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)))
|
||||
}
|
||||
|
||||
|
||||
@@ -765,6 +765,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) {
|
||||
@@ -772,9 +785,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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -954,6 +954,7 @@ trap, and the defaults (0.25 pt, 100%, 40%) are VectorCraft's own, the pages giv
|
||||
| 2026-11-16 | minor | Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged. |
|
||||
| 2026-11-16 | minor | Eraser review (#6582): hidden Rasterize rows and hidden strokes with gradients along or across their paths do not block preserving visible fitted gradients. Visible unsupported paint branches retain existing fitting. Scores and estimates unchanged. |
|
||||
| 2026-11-16 | minor | Eraser review (#6582): ordinary Group/Layer own paints and reproducible evaluated gradient placements are preserved as members are cut. Replacement-art effects, plug-ins/Rasterize, along/across-stroke gradients and placements that cannot reproduce the original appearance keep existing fitting. Scores and estimates unchanged. |
|
||||
| 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 | Type: Middle Eastern & South Asian and Standard composers per paragraph (#4935): Paragraph panel menu, paragraph styles, `text.setFormat {composer}` and the native file; the Standard composers set Indic, Arabic and Hebrew type glyph by glyph. `.ai`, EPS and PDF files carry no composer. 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 | Direct Selection: Space during an ordinary path's direction-handle drag moves its anchor and both handles; releasing Space resumes handle adjustment, and a Cmd/Ctrl loan preserves Pen continuation (#7237, request 3 only). Handle-hover labels remain open; scores and estimates unchanged. |
|
||||
|
||||
+2
-1
@@ -1,6 +1,6 @@
|
||||
# Roadmap: milestones and what's next
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: M4: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, #8128; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: M1: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; M1: an Alt-drag in the Layers panel copies a row above or below its own place, #8237; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; M1: Layers panel Alt-drag shows the copy cursor, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: M7: Check Spelling modal dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; M10/G5: Neon & Glow built-in graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); 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; Line truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: M4: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, #8128; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: M1: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; M1: an Alt-drag in the Layers panel copies a row above or below its own place, #8237; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; M1: Layers panel Alt-drag shows the copy cursor, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: M7: Check Spelling modal dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; M10/G5: Neon & Glow built-in graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); 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 customLine truncated
|
||||
>
|
||||
> Oversized artboard import update (2026-11-12): Explicit editing-data import retains a single artboard beyond a capped 14,400 pt PDF page (#6865).
|
||||
>
|
||||
@@ -246,6 +246,7 @@ not take the artwork yet. Overflow-menu drag remains separate. Scores and hours
|
||||
| 2026-11-16 | minor | Color panel: the spectrum fills the vertical space of a resized panel, with options shown or hidden (#8005). Compact auto-fit flyouts and embedded mixers keep their existing size. Evidence: panels::color::tests::the_spectrum_grows_with_the_color_panel. Scores and estimates unchanged. |
|
||||
| 2026-11-15 | minor | PDF import: stroked type (text rendering modes 1, 2, 5 and 6, and glyphs under `ActualText`) keeps the line cap, line join and miter limit of the graphics state it is stroked with, as paths do, instead of butt caps, miter joins and a miter limit of 10; a glyph filled and then stroked otherwise than the run its fill joined comes in as a run of its own, so the glyphs before it keep their stroke (#7741; `imported_stroked_type_keeps_the_files_cap_join_and_miter_limit` in `crates/pdf/src/tests/textstroke.rs`). Scores and estimates unchanged. |
|
||||
| 2026-11-15 | minor | M10/G5: Neon & Glow built-in graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); estimates unchanged |
|
||||
| 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 | Color panel: the spectrum names its displayed mode on hover, including after Shift-click mode changes and with Hide Options enabled (part of #7235). Spectrum rendering and vertical resizing remain open. Scores and estimates unchanged. |
|
||||
| 2026-11-14 | minor | Direct Selection: Space during an ordinary path's direction-handle drag moves its anchor and both handles; releasing Space resumes handle adjustment, and a Cmd/Ctrl loan preserves Pen continuation (#7237, request 3 only). Handle-hover labels remain open; scores and estimates unchanged. |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Parity with Adobe Illustrator
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: SVG export preserves document units on root width/height for physical units, #864; G11 estimate 8–15 → 6–13 h; previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: #8128: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, so the compound clipping path clips its clipping group; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Twist: a strongly twisted path joins its pieces without kinks, #7069; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; Layers panel: Alt over the list shows the copy cursor while rows or the selection square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Properties panel: the Character section shows the font of the Type tool's selection, not the first run's (#8189); scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Paragraph composers (#4935): the Paragraph panel menu and paragraph styles offer four composers, the Middle Eastern & South Asian Single-line and Every-line (how all type is set, and the default) and a Standard Single-line and Every-line that set Indic, Arabic and Hebrew type glyph by glyph as the font maps it, for legacy fonts that keep a script on Latin character codes; PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; G5: Neon & Glow joins built-in graphic style libraries (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); scores and estimates unchanged; previously: Pencil ignores Smart Guides and Snap to Point and shows no Smart Guides, #7252; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged; previously: G5: Weather Icons joins built-in symbol libraries (Sun, Moon, Cloud, RainLine truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: SVG export preserves document units on root width/height for physical units, #864; G11 estimate 8–15 → 6–13 h; previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: #8128: `.ai` and EPS import: clipping paths grouped in a compound path are its subpaths, so the compound clipping path clips its clipping group; scores and estimates unchanged; previously: import: type filled and stroked by a `TJ` whose kerning starts a new line comes in filled and stroked, #8543; PDF Retype phase 1 (#4934): Type › Retype (`type.retype`) turns outlined text that exactly matches an available font back into point text; scores and estimates unchanged; previously: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: PDF export writes the document language as the catalog's `/Lang`, #3644; Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Twist: a strongly twisted path joins its pieces without kinks, #7069; scores and estimates unchanged; previously: PDF import: a glyph filled only after a glyph filled and stroked comes in filled only, not stroked, #8300; PDF import: translucent type filled and stroked comes in as a filled type object and a stroked one, as the file composites them, and an upright glyph is never kept as the outline of its glyph alone, #8015; PDF import: type filled and stroked by one text-showing operator comes in as one type object, filled and stroked, not a stroked copy over a filled one, #8015; Layers panel: Alt over the list shows the copy cursor while rows or the selection square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Properties panel: the Character section shows the font of the Type tool's selection, not the first run's (#8189); scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; scores and estimates unchanged; previously: Paragraph composers (#4935): the Paragraph panel menu and paragraph styles offer four composers, the Middle Eastern & South Asian Single-line and Every-line (how all type is set, and the default) and a Standard Single-line and Every-line that set Indic, Arabic and Hebrew type glyph by glyph as the font maps it, for legacy fonts that keep a script on Latin character codes; PDF import: stroked type keeps the line cap, line join and miter limit the file strokes it with, a glyph stroked otherwise than the run it joins coming in as a run of its own, #7741; G5: Neon & Glow joins built-in graphic style libraries (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); scores and estimates unchanged; previously: Pencil ignores Smart Guides and Snap to Point and shows no Smart Guides, #7252; previously: Pencil continuation, straight-line and closing cursors; scores and estimates unchanged;Line truncated
|
||||
>
|
||||
> Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5).
|
||||
>
|
||||
@@ -756,6 +756,8 @@ since 2026-10-01.
|
||||
- **Fill and Stroke and Opacity stay inside a narrow Control bar:** the Control bar leaves out a Fill and Stroke, Opacity or Graphic Style control it has no room for, whole, instead of drawing it past the panel menu button or under it. The bar draws its controls from left to right, each only when the room left still holds it, so a narrower control can still show after a wider one that was left out: the Opacity link with its field can show when the Stroke link with its weight field did not fit, the Style link with its chip can show when the Opacity link with its field did not, and with nothing selected Preferences can show when Document Setup did not fit. With something selected, the Fill and Stroke, Opacity, Graphic Style and Character controls show only while the Transform link still has room after them, so the bar keeps the link and leaves those controls out first. The Character controls show whole or not at all, and while they are left out the Paragraph, vertical alignment and Align controls after them are left out too. The Snapping menu, the selection's label, the Convert and Anchors groups, the isolation button, Document Setup and Preferences also show only while they fit, and a group separator only while it has room. This is VectorCraft's own rule. Regression tests: `the_control_bar_s_controls_stay_inside_the_bar_in_a_narrow_window`, `a_narrow_control_bar_shows_the_style_link_without_the_opacity_field`, `a_narrow_control_bar_shows_preferences_without_document_setup` and `the_control_bar_shows_the_inline_transform_fields_only_when_they_fit` in `crates/ui-egui/src/chrome/tests.rs`, `the_control_bar_trims_its_paragraph_section_after_the_controls_to_its_right` in `crates/ui-egui/src/panels/paragraph/tests.rs`.
|
||||
- **Tool, image, trace, envelope, symbol and artboard controls stay inside a narrow Control bar:** a shape tool's options, the Dimension, Mirror & Cut, Puppet Warp and Crop Image tools' options, a linked or embedded image's controls, an Image Trace object's, a warp or mesh envelope's, symbol instances' and the Artboard tool's controls each show a control, or a label with its field or menu, only while the room left in the bar holds it and, with something selected, the Transform link's room after it. Once one is left out, the rest of its group is left out too, so each group loses controls from its right end; an image's file name too long for the room is left out alone, and the Artboard tool's Transform link shows whenever it fits. The panel menu button shows in every width, docked or floating. Buttons in these groups grow to hold a longer translated label instead of cutting it off, and the Transform link keeps room for its underline. While one of these controls is left out, Select Similar Objects is left out too. This is VectorCraft's own rule. Regression tests: `the_control_bar_s_controls_stay_inside_the_bar_in_a_narrow_window` (in English and German, docked to the top or bottom and floating), `a_narrow_control_bar_shows_embed_without_edit_original_and_the_artboard_link_without_its_options` and `select_similar_stays_out_while_an_image_control_is_left_out` in `crates/ui-egui/src/chrome/tests.rs`.
|
||||
- **Pattern-only backquote drags:** With Selection move, bounding-box scale or rotate, or the Rotate, Reflect, Scale or Shear tool, backquote held at mouse release applies the drag matrix to selected pattern paint while object geometry stays in place. The key may be pressed after mouse press; if released before the mouse button, the drag commits as an ordinary transform. Objects without pattern paint stay still; stroke-only patterns and patterned objects in mixed selections take the same matrix. Regression tests: `backquote_move_uses_release_state_and_one_commit` and `backquote_box_scale_and_rotate_use_pattern_matrix_at_release` in `select/tests.rs`, `backquote_drag_previews_and_commits_pattern_only_for_each_transform_tool` in `xform/transform.rs`, `selection_backquote_drag_changes_pattern_fill_and_stroke_without_moving_mixed_art` and `selection_backquote_drag_changes_stroke_only_pattern` in `tests/pattern.rs`, `egui_backtick_drag_uses_key_state_at_release` in `canvas/tests.rs`, and `synthetic_pointer_backquote_keeps_solid_object_in_place` in `control/tests.rs`. Scores and hours unchanged.
|
||||
|
||||
- **Backquote/~ arrow pattern nudges (#7717):** Backquote plus an arrow moves selected pattern fills and strokes by Keyboard Increment; Shift keeps the tenfold step and existing constrain angle. This works with Selection, ordinary Direct Selection including partial anchors, and other idle tools. Object geometry, guides, anchor selection, shared patterns and unselected users stay fixed. Releasing Backquote restores ordinary nudging. Existing Alt-copy remains available, including copying selected solid-only art. Without Alt-copy, solid-only and guide-only pattern nudges are no-ops. Tool-owned arrows, active operations, typing, focused fields and user shortcuts retain precedence. Tests: `crates/ui-egui/tests/pattern_only_nudge.rs`. Scores and hours unchanged.
|
||||
- **Existing-guide Escape cancellation (G1):** Escape clears a pending guide press or drag through Selection and Direct/Group Selection, cancelling a begun preview. Eight app-input regressions cover both axes, move/copy, temporary selection-tool borrowing from idle Pen, preselected-guide document/interaction-start selection and Undo/Redo/saved-state preservation, later on-canvas motion/release, Shift-press cancellation, and ordinary-release/Enter/idle controls. Historical focused checks on `8ab574b7` recorded five expected RED failures with three passing controls, then all eight GREEN tests and the Direct Selection Escape control passed. All nine also passed in current full CI. A full CI retry on the five-unit combined source at `a0671777` passed all seven stages with 6,613 test outcomes on 2026-10-14. An earlier full-CI run on the identical source panicked in the randomized `ai_mutated_save_never_panics` test; the cause remains unresolved. This five-fix batch does not claim to repair that failure. The original 1280×960 headless app capture from `b076025a` was reviewed for one vertical Selection guide after Escape; source review found its scene unchanged on `a0671777`. Scores and hours unchanged.
|
||||
- **Escape in more tool drags:** Escape during an Anchor Point drag, a Mesh tool drag, a Direct Selection drag of a mesh point, a corner widget or the brackets of type on a path, or a Shape Builder drag cancels it: the art goes back to how the press found it, no undo step is added, the release does nothing, and the tool stays chosen. Escape during a Measure tool drag brings back the measurement before it. Regression tests: `escape_cancels_*` in `draw2/anchor/tests.rs`, `meshedit.rs`, `direct/tests.rs`, `builder/tests.rs` and `xform/measure.rs`, and `escape_cancels_an_anchor_point_mesh_shape_builder_or_measure_drag` in `tests/toolescape.rs`.
|
||||
- **Shift-click on corner widgets (#5188):** with Direct Selection, when every corner of a path is selected (the path selected whole), a Shift-click on a corner widget picks that corner alone, so the next drag rounds just it. The other corners' widgets then hide; a Shift-click on another corner's anchor adds that corner and shows its widget, and a Shift-click on a showing widget deselects its corner. Adding a corner by Shift-clicking its widget while it is hidden stays open (#1232). Corner widgets are chosen by clicking one and Shift-clicking the others ([Logos By Nick, rounded corners in Illustrator](https://logosbynick.com/?p=15787)). Test: `corners::tests::a_shift_click_on_a_widget_of_a_whole_path_picks_its_corner`.
|
||||
@@ -3076,6 +3078,7 @@ Edit › Copy and Cut put the selected ruler guides on the clipboard, with the s
|
||||
| 2026-11-16 | minor | Eraser review (#6582): hidden Rasterize rows and hidden strokes with gradients along or across their paths do not block preserving visible fitted gradients. Visible unsupported paint branches retain existing fitting. Scores and estimates unchanged. |
|
||||
| 2026-11-16 | minor | Eraser review (#6582): ordinary Group/Layer own paints and reproducible evaluated gradient placements are preserved as members are cut. Replacement-art effects, plug-ins/Rasterize, along/across-stroke gradients and placements that cannot reproduce the original appearance keep existing fitting. Scores and estimates unchanged. |
|
||||
| 2026-11-16 | minor | Color panel: the spectrum fills the vertical space of a resized panel, with options shown or hidden (#8005). Compact auto-fit flyouts and embedded mixers keep their existing size. Evidence: panels::color::tests::the_spectrum_grows_with_the_color_panel. Scores and estimates unchanged. |
|
||||
| 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 | Paragraph composers (#4935): `text.setFormat {composer}` and paragraph styles take `singleLine` and `everyLine` (the Middle Eastern & South Asian composers, what all type used and the default) and `standardSingleLine` and `standardEveryLine`, which break lines the same way and set a complex script (Indic, Arabic, Hebrew) glyph by glyph as the font maps its characters, with no conjuncts, reordering, marks placed or joining forms. The choice is per paragraph, saved in the native file only when it is not Every-line, and not written to `.ai`, EPS or PDF files, whose composer setting this app has no recorded format for. Scores and estimates unchanged. Tests `tests::composers`. |
|
||||
| 2026-11-14 | minor | Direct Selection: Space during an ordinary path's direction-handle drag moves its anchor and both handles; releasing Space resumes handle adjustment, and a Cmd/Ctrl loan preserves Pen continuation (#7237, request 3 only). Handle-hover labels remain open; scores and estimates unchanged. |
|
||||
| 2026-11-14 | minor | Color panel: the spectrum names its displayed mode on hover, including after Shift-click mode changes and with Hide Options enabled (part of #7235). Spectrum rendering and vertical resizing remain open. Scores and estimates unchanged. |
|
||||
|
||||
+3
-1
@@ -1,6 +1,6 @@
|
||||
# UI and interaction parity
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); scores and estimates unchanged; previously: Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Layers panel: Alt over the list shows the copy cursor while rows or the selected-art square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; 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 Line truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-18 · **Change:** minor (Backquote/~ arrow pattern nudges (#7717); scores and estimates unchanged; previously: Window > Toolbars > Compact Tools offers optional denser main Tools spacing (#7234); default layout, scores and estimates unchanged; previously: Direct Selection: Space during an ordinary path's handle drag repositions its anchor and handles, including a Pen loan (#7237, request 3 only; scores and estimates unchanged); previously: Floating panels keep their window level while focus moves between the app's windows, so a press on one panel's bar no longer hands the keyboard to another, #6986; scores and estimates unchanged; previously minor: Lock Guides: a selection marquee (Selection, Direct Selection, Group Selection, Enclosing Lasso) leaves out paths made into guides inside groups and compound paths too, as clicks do (#3074), so a group is no longer selected by a locked guide in it; an enclosing marquee measures a group without its locked or hidden guides, and Direct Selection takes no anchor or segment of a guide that can't be picked; a guide in a group still moves with its group (#8538); scores and estimates unchanged; previously: Production Preflight: output-aware fonts, text overflow, linked files and effective image resolution, clickable findings and automatic rechecking; scores and estimates unchanged; previously: Layers panel: an Alt-drag copies a row above or below itself, so the top layer dragged up, the bottom layer dragged down and a lone layer are copied, #8237; scores and estimates unchanged; previously: Layers panel: Alt over the list shows the copy cursor while rows or the selected-art square are dragged, #8217; scores and estimates unchanged; previously: Gradient panel: the add-stop strip under the ramp shows the white arrow with a plus on Windows and X11, #8241; scores and estimates unchanged; previously: Recolor Artwork follow-up (#8031, remaining #4028): native Lab input, picker swatch libraries and Assign-row menus; UI interaction regression coverage; scores and estimates unchanged; previously: Eraser review: hidden Rasterize and Along/Across stroke rows do not block preserving visible gradients; scores and estimates unchanged; previously: Eraser review: ordinary Group/Layer paints and reproducible evaluated gradient placements are preserved; other placements retain existing fitting; scores and estimates unchanged; previously: Eraser: shared fill-only area cutting for fixed and varied tips and the Alt-drag marquee, #6582; scores and estimates unchanged; previously: #8005: the Color spectrum fills a resized panel; 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; #3380Line truncated
|
||||
>
|
||||
> Tech Circuit update (2026-11-14): three original procedural brushes; ten built-in brush libraries (G5).
|
||||
>
|
||||
@@ -232,6 +232,7 @@ tools, never checked side by side) isn't captured row by row.
|
||||
| Behaviour | Status | Notes |
|
||||
|---|---|---|
|
||||
| Path and compound-path interior selection follows enabled non-None fill rows | done | #6625; lower visible fill beneath a top None row stays selectable; hidden-only/None interiors miss; zero-opacity, edge, Outline/path-only and hole controls in `crates/engine/tests/path_fill_hits.rs`; hidden-fill and no-fill stroke cap/join CPU regressions passed |
|
||||
| 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 |
|
||||
@@ -618,6 +619,7 @@ before release (#6373). [Paint faces and edges](https://helpx.adobe.com/illustra
|
||||
| 2026-11-16 | minor | Eraser review (#6582): hidden Rasterize rows and hidden strokes with gradients along or across their paths do not block preserving visible fitted gradients. Visible unsupported paint branches retain existing fitting. Scores and estimates unchanged. |
|
||||
| 2026-11-16 | minor | Eraser review (#6582): ordinary Group/Layer own paints and reproducible evaluated gradient placements are preserved as members are cut. Replacement-art effects, plug-ins/Rasterize, along/across-stroke gradients and placements that cannot reproduce the original appearance keep existing fitting. Scores and estimates unchanged. |
|
||||
| 2026-11-16 | minor | Color panel: the spectrum fills the vertical space of a resized panel, with options shown or hidden (#8005). Compact auto-fit flyouts and embedded mixers keep their existing size. Evidence: panels::color::tests::the_spectrum_grows_with_the_color_panel. Scores and estimates unchanged. |
|
||||
| 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 | Keyboard Shortcuts lists Switch Selection Tools (`tool.switchSelectionTools`, #7645), with no default key: Selection goes to Direct Selection, and other tools go to Selection through the normal explicit tool-choice path. Existing V/A and Touch behavior stay unchanged. Scores and estimates unchanged. |
|
||||
| 2026-11-12 | minor | Floating panels: the app counts as inactive only once none of its windows has had focus for 0.25 s, so focus moving between its own windows (a press on a panel's bar) leaves the panels' OS windows at their level; with two floating panels, a press on one panel's bar no longer hands the keyboard to the other or leaves both behind the main window (#6986). `focus_moving_between_the_apps_windows_leaves_the_palettes_on_top`; scores and estimates unchanged. |
|
||||
|
||||
Reference in new issue
Block a user