diff --git a/crates/ui-egui/src/panels/doc_info.rs b/crates/ui-egui/src/panels/doc_info.rs index 17776982d4..f63f831cc4 100644 --- a/crates/ui-egui/src/panels/doc_info.rs +++ b/crates/ui-egui/src/panels/doc_info.rs @@ -39,26 +39,76 @@ pub(crate) fn row(ui: &mut Ui, label: &str, value: &str) -> bool { Text::new(label.to_string()).shade(Shade::Muted).show(ui); // The value can be selected and copied, and a click copies all of it (#8432). A drag selects // and a Shift-click extends the selection, so neither copies. - let shown = SelectableText::new(label.to_string(), value).show(ui); - // The click's own position and keys: a move or a key change after the release in the same - // frame leaves the pointer and the held keys elsewhere. A frame with more than one release - // copies nothing, since the click flags below do not say which release they describe. - let area = shown.interact_rect.intersect(ui.clip_rect()); - let primary = egui::PointerButton::Primary; - let release = ui.input(|i| { - let mut releases = i.events.iter().filter_map(|e| match e { - egui::Event::PointerButton { pos, button, pressed: false, modifiers } if *button == primary => Some((*pos, *modifiers)), - _ => None, - }); - let release = releases.next().filter(|_| releases.next().is_none()); - let single = i.pointer.button_clicked(primary) && !i.pointer.button_double_clicked(primary) && !i.pointer.button_triple_clicked(primary); - release.filter(|_| single) - }); - clicked = release.is_some_and(|(pos, keys)| keys.is_none() && area.contains(pos) && ui.ctx().layer_id_at(pos) == Some(ui.layer_id())); + clicked = copy_value(ui, label, value, false); }); clicked } +/// The framework readout policy introduced for Document Info in #9353: the first plain +/// primary release copies immediately, while subsequent double-clicks select text. +pub(crate) fn copy_value(ui: &mut Ui, label: &str, value: &str, mono: bool) -> bool { + let text = SelectableText::new(label.to_string(), value); + let shown = if mono { text.mono().show(ui) } else { text.show(ui) }; + copy_shown(ui, &shown, value) +} + +/// The same guarded full-value copy for an already shown readout. An elided path remains +/// static text: selection indices must describe the text actually shown by the framework. +pub(crate) fn copy_shown(ui: &mut Ui, shown: &egui::Response, value: &str) -> bool { + // The click's own position and keys: a move or a key change after the release in the same + // frame leaves the pointer and the held keys elsewhere. A frame with more than one release + // copies nothing, since the click flags below do not say which release they describe. + let area = shown.interact_rect.intersect(ui.clip_rect()); + let primary = egui::PointerButton::Primary; + let press_id = shown.id.with("readout_copy_press"); + let saved_origin = ui.ctx().data(|d| d.get_temp::(press_id)); + let eligible = ui.is_enabled() && !value.is_empty() && area.is_positive(); + let (events, single) = ui.input(|i| { + let events: Vec<_> = i + .events + .iter() + .filter_map(|event| match event { + egui::Event::PointerButton { pos, button, pressed, modifiers } if *button == primary => Some((*pos, *pressed, *modifiers)), + _ => None, + }) + .collect(); + let single = i.pointer.button_clicked(primary) && !i.pointer.button_double_clicked(primary) && !i.pointer.button_triple_clicked(primary); + (events, single) + }); + let mut origin = saved_origin; + let mut release = None; + let mut release_count = 0_usize; + // egui clears pointer.press_origin on release. Remember only an eligible press in + // this clipped readout's own layer, including a press/release in the same frame. + for (pos, pressed, modifiers) in events { + if pressed { + origin = (eligible && area.contains(pos) && ui.ctx().layer_id_at(pos) == Some(ui.layer_id())).then_some(pos); + } else { + release_count += 1; + release = Some((origin.take(), pos, modifiers)); + } + } + let release = release.filter(|_| release_count == 1 && single); + if origin != saved_origin { + ui.ctx().data_mut(|d| match origin { + Some(pos) => { + d.insert_temp(press_id, pos); + } + None => d.remove::(press_id), + }); + } + ui.ctx().accesskit_node_builder(shown.id, |node| { + node.set_description(tl!("Copy")); + node.add_action(egui::accesskit::Action::Click); + }); + let activated = ui.input(|i| i.num_accesskit_action_requests(shown.id, egui::accesskit::Action::Click) > 0); + eligible + && (activated + || release.is_some_and(|(origin, pos, keys)| { + origin.is_some() && keys.is_none() && area.contains(pos) && ui.ctx().layer_id_at(pos) == Some(ui.layer_id()) + })) +} + /// Whether no artwork is selected. Artboards the Artboard tool has selected are not artwork: /// `document.info` lists them under Document whatever this says. fn no_artwork_selected(app: &VectorcraftApp) -> bool { @@ -129,7 +179,13 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { for (k, r) in rows.iter().enumerate() { let (label, value) = (r[0].as_str().unwrap_or_default(), r[1].as_str().unwrap_or_default()); if value.is_empty() { - Text::new(super::label_or_name(label, !named.contains(&k)).to_string()).shade(Shade::Muted).show(ui); + if named.contains(&k) && !label.is_empty() { + if copy_value(ui, label, label, false) { + copy = Some(label.to_string()); + } + } else { + Text::new(super::label_or_name(label, !named.contains(&k)).to_string()).shade(Shade::Muted).show(ui); + } } else { let shown = shown_value(&i, id, k, (label, value), named.contains(&k)).unwrap_or_else(|| value.to_string()); if row(ui, super::label_or_name(label, !named.contains(&k)), &shown) { diff --git a/crates/ui-egui/src/panels/info.rs b/crates/ui-egui/src/panels/info.rs index 4a782235e2..3c2df76111 100644 --- a/crates/ui-egui/src/panels/info.rs +++ b/crates/ui-egui/src/panels/info.rs @@ -6,12 +6,11 @@ use craft::behavior::ColumnWidth; use craft::keymap::CommandRef; use craft::ui::contract::{Show as _, ShowContainer as _}; -use craft::ui::display::{Divider, Picture, Shade, Text}; +use craft::ui::display::{Divider, Picture}; use craft::ui::layout_components::{Grid, Row, Stack}; use craft::ui::list::ThumbAspect; use craft::ui::menu::PanelRow; use craft::ui::runtime::commands::{CommandState, CommandStates}; -use craft::ui::style::TypeRole; use egui::Ui; use serde_json::Value; use vectorcraft_color::{Color, Paint}; @@ -86,14 +85,15 @@ pub(crate) struct InfoLines { type_block: Option<(String, String)>, } -fn mono(ui: &mut Ui, s: &str) { - Text::new(s.to_string()).role(TypeRole::Mono).show(ui); +fn mono(ui: &mut Ui, s: &str) -> bool { + super::doc_info::copy_value(ui, s, s, true) } /// One paint's tile and readout. A solid tint's name sits below its channel values. /// A mixed paint keeps the tile's room empty. -fn paint_block(ui: &mut Ui, p: &PaintLines) { +fn paint_block(ui: &mut Ui, p: &PaintLines) -> Option { let (inline_note, tint_name) = if p.values.is_empty() { (p.note.as_ref(), None) } else { (None, p.note.as_ref()) }; + let mut copy = None; Row::new().show(ui, |ui, _| { Picture::painter("", ThumbAspect::SQUARE, |cx, rect| { if !p.mixed { @@ -102,15 +102,22 @@ fn paint_block(ui: &mut Ui, p: &PaintLines) { }) .show(ui); for v in &p.values { - mono(ui, v); + if mono(ui, v) { + copy = Some(v.clone()); + } } - if let Some(note) = inline_note { - Text::new(note.clone()).shade(Shade::Muted).show(ui); + if let Some(note) = inline_note + && super::doc_info::copy_value(ui, note, note, false) + { + copy = Some(note.clone()); } }); - if let Some(name) = tint_name { - Text::new(name.clone()).shade(Shade::Muted).show(ui); + if let Some(name) = tint_name + && super::doc_info::copy_value(ui, name, name, false) + { + copy = Some(name.clone()); } + copy } /// What the panel reads from the document and the tool for its rows of numbers ([`Rows::of`]). @@ -241,26 +248,38 @@ const HALVES: &[ColumnWidth] = &[ColumnWidth::fill(1.0); 2]; pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { let l = lines(app, ui.ctx()); + let mut copy = None; // Two equal halves of the panel, as the reference app's columns were. let _ = Grid::new(HALVES).show(ui, |ui, _| { for column in [&l.left, &l.right] { Stack::new().show(ui, |ui, _| { for s in column { - mono(ui, s); + if mono(ui, s) { + copy = Some(s.clone()); + } } }); } }); for s in l.zoom.iter().chain(&l.brush) { - mono(ui, s); + if mono(ui, s) { + copy = Some(s.clone()); + } } Divider::horizontal().show(ui); - paint_block(ui, &l.fill); - paint_block(ui, &l.stroke); + copy = paint_block(ui, &l.fill).or(copy); + copy = paint_block(ui, &l.stroke).or(copy); if let Some((font, size)) = &l.type_block { Divider::horizontal().show(ui); - mono(ui, font); - mono(ui, size); + for value in [font, size] { + if mono(ui, value) { + copy = Some(value.clone()); + } + } + } + if let Some(text) = copy { + app.clipboard_out = Some(text); + app.status("Copied the value"); } } diff --git a/crates/ui-egui/src/panels/links.rs b/crates/ui-egui/src/panels/links.rs index d2765a0af9..3f5900d5bb 100644 --- a/crates/ui-egui/src/panels/links.rs +++ b/crates/ui-egui/src/panels/links.rs @@ -26,10 +26,10 @@ use craft::behavior::{IconId, Selection, keyed}; use craft::host::{PickKind, PickRequest, Picked}; use craft::keymap::CommandRef; use craft::ui::buttons::IconButton; -use craft::ui::contract::{Bind, CollectionEvent, Props as _, Show as _, ShowCollection as _, ShowContainer as _}; +use craft::ui::contract::{Bind, CollectionEvent, FieldLayout, Props as _, Show as _, ShowCollection as _, ShowContainer as _}; use craft::ui::display::{Elide, Shade, Text}; use craft::ui::form::Field; -use craft::ui::layout_components::Row; +use craft::ui::layout_components::{Row, Stack}; use craft::ui::list::{List, ListRow, ThumbSize}; use craft::ui::menu::{Menu, MenuItem, PanelRow}; use craft::ui::runtime::commands::{CommandState, CommandStates}; @@ -764,13 +764,20 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { let mut footer_pick = None; let (mut activated, mut menu_for, mut row_act, mut info_reveal) = (None, None, None, None); + let mut info_copy = None; Panel::new(tl!("Links")) .collection_body() .footer(|ui, _| { - let info = FooterAction::new(IconId::new(if o.info { "chevron-down" } else { "chevron-right" }), tl!("Show Link Info")); - let actions = std::iter::once(info) - .chain(FOOTER.iter().map(|(a, icon, label)| FooterAction::new(IconId::new(icon), tl!(label)).enabled(can(view, *a, &facts, None)))); - footer_pick = FooterBar::actions(actions).at_start(1).show_footer(ui).picked; + Stack::new().fill_width().show(ui, |ui, _| { + if o.info { + info_reveal = link_info(ui, view, cache.info.as_ref().map(|(id, i)| (*id, i)), units, &mut info_copy); + } + let info = FooterAction::new(IconId::new(if o.info { "chevron-down" } else { "chevron-right" }), tl!("Show Link Info")); + let actions = std::iter::once(info).chain( + FOOTER.iter().map(|(a, icon, label)| FooterAction::new(IconId::new(icon), tl!(label)).enabled(can(view, *a, &facts, None))), + ); + footer_pick = FooterBar::actions(actions).at_start(1).show_footer(ui).picked; + }); }) .show(ui, |ui, _| { let empty = if o.show == "all" { tl!("No images") } else { tl!("Nothing matches the Show filter.") }; @@ -816,9 +823,6 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { if let Some(r) = menu_for.or(open_menu).and_then(|id| by_id.get(&id).copied()) { row_act = show_row_menu(ui, &out.response, view, &facts, r); } - if o.info { - info_reveal = link_info(ui, view, cache.info.as_ref().map(|(id, i)| (*id, i)), units); - } }); app.ui.links.selection = selection; @@ -832,6 +836,10 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) { if let Some(id) = activated { go_to(app, id); } + if let Some(text) = info_copy { + app.clipboard_out = Some(text); + app.status("Copied the value"); + } if let Some(id) = info_reveal { crate::menus::invoke(app, "links.reveal", json!({ "id": id })); } @@ -937,15 +945,17 @@ pub(crate) fn date_label(ms: u64) -> String { } /// One line of Link Info: a labelled field whose text is its value. -fn info_row(ui: &mut Ui, label: &'static str, value: String) { +fn info_row(ui: &mut Ui, label: &'static str, value: String, copy: &mut Option) { Field::new(label).value(value.clone()).show(ui, |ui, _| { - Text::new(value.clone()).show(ui); + if super::doc_info::copy_value(ui, label, &value, false) { + *copy = Some(value.clone()); + } }); } /// The Link Info section: the details of `info` (`links.info` of image `id`), or a hint. Returns /// the image whose file the Location row's Show in Folder button was clicked for. -fn link_info(ui: &mut Ui, app: &VectorcraftApp, info: Option<(u64, &Value)>, units: vectorcraft_doc::Unit) -> Option { +fn link_info(ui: &mut Ui, app: &VectorcraftApp, info: Option<(u64, &Value)>, units: vectorcraft_doc::Unit, copy: &mut Option) -> Option { let mut reveal = None; crate::panels::section(tl!("Link Info")).show(ui, |ui, _| { let Some((id, i)) = info else { @@ -960,26 +970,33 @@ fn link_info(ui: &mut Ui, app: &VectorcraftApp, info: Option<(u64, &Value)>, uni _ => String::new(), } }; - info_row(ui, tl!("Name"), i["fileName"].as_str().or(i["name"].as_str()).unwrap_or_default().into()); - info_row(ui, tl!("Format"), i["format"].as_str().unwrap_or_default().into()); - info_row(ui, tl!("Color Space"), i["colorMode"].as_str().unwrap_or_default().into()); + info_row(ui, tl!("Name"), i["fileName"].as_str().or(i["name"].as_str()).unwrap_or_default().into(), copy); + info_row(ui, tl!("Format"), i["format"].as_str().unwrap_or_default().into(), copy); + info_row(ui, tl!("Color Space"), i["colorMode"].as_str().unwrap_or_default().into(), copy); if let Some(l) = i["location"].as_str() { // Show in Folder for the image shown here: off while its file is missing and without a // file manager (the web). let can_reveal = i["path"].is_string() && i["status"] != "missing" && app.services.reveal.is_some(); - Field::new(tl!("Location")).value(l.to_string()).show(ui, |ui, _| { - Row::new().show(ui, |ui, _| { + // Keep the translated caption from taking the compound row's path width. + Field::new(tl!("Location")).layout(FieldLayout::Above).value(l.to_string()).show(ui, |ui, _| { + Row::new().fill_width().show(ui, |ui, _| { if IconButton::new(IconId::new("folder-open")).label(tl!("Show in Folder")).enabled(can_reveal).show(ui).clicked() { reveal = Some(id); } - Text::new(l.to_string()).elide(Elide::Path).tooltip(l.to_string()).show(ui); + if IconButton::new(IconId::new("copy")).label(tl!("Copy Location")).enabled(!l.is_empty()).show(ui).clicked() { + *copy = Some(l.to_string()); + } + let shown = Text::new(l.to_string()).elide(Elide::Path).tooltip(l.to_string()).show(ui); + if super::doc_info::copy_shown(ui, &shown, l) { + *copy = Some(l.to_string()); + } }); }); } // A placed document has no resolution: its rows are left out. for (label, k) in [(tl!("PPI"), "ppi"), (tl!("Effective PPI"), "effectivePpi")] { if i.get(k).is_some() { - info_row(ui, label, pair(k)); + info_row(ui, label, pair(k), copy); } } // Pixels, or a placed document's artboard size. @@ -988,22 +1005,22 @@ fn link_info(ui: &mut Ui, app: &VectorcraftApp, info: Option<(u64, &Value)>, uni (None, Some(w), Some(h)) => format!("{} × {}", units.format(w), units.format(h)), _ => String::new(), }; - info_row(ui, tl!("Dimensions"), dims); + info_row(ui, tl!("Dimensions"), dims, copy); let scale: Vec = i["scale"].as_array().into_iter().flatten().filter_map(Value::as_f64).collect(); if let [x, y] = scale[..] { - info_row(ui, tl!("Scale"), format!("H: {x:.1}% V: {y:.1}%")); + info_row(ui, tl!("Scale"), format!("H: {x:.1}% V: {y:.1}%"), copy); } - info_row(ui, tl!("Rotation"), format!("{:.1}°", i["rotation"].as_f64().unwrap_or(0.0))); + info_row(ui, tl!("Rotation"), format!("{:.1}°", i["rotation"].as_f64().unwrap_or(0.0)), copy); if let Some(b) = i["fileSize"].as_u64() { - info_row(ui, tl!("Size"), size_label(b)); + info_row(ui, tl!("Size"), size_label(b), copy); } for (k, label) in [("created", tl!("Created")), ("modified", tl!("Modified"))] { if let Some(ms) = i[k].as_u64() { - info_row(ui, label, date_label(ms)); + info_row(ui, label, date_label(ms), copy); } } if let Some(p) = i["page"].as_u64() { - info_row(ui, tl!("Page"), p.to_string()); + info_row(ui, tl!("Page"), p.to_string(), copy); } let status = match i["status"].as_str().unwrap_or_default() { "ok" => tl!("Linked"), @@ -1011,7 +1028,7 @@ fn link_info(ui: &mut Ui, app: &VectorcraftApp, info: Option<(u64, &Value)>, uni "modified" => tl!("Modified"), _ => tl!("Embedded"), }; - info_row(ui, tl!("Status"), status.into()); + info_row(ui, tl!("Status"), status.into(), copy); }); reveal } diff --git a/crates/ui-egui/src/panels/tests_links.rs b/crates/ui-egui/src/panels/tests_links.rs index 5c54fe7ef2..15cc220638 100644 --- a/crates/ui-egui/src/panels/tests_links.rs +++ b/crates/ui-egui/src/panels/tests_links.rs @@ -287,10 +287,10 @@ fn a_link_inside_a_symbol_is_listed_and_picked_in_the_panel() { let row = list["links"].as_array().unwrap().iter().find(|r| r["name"] == "inside.png").unwrap_or_else(|| panic!("{list}")).clone(); assert_eq!(row["owner"]["kind"], "symbol", "{list}"); let mut h = Panel::new(app, super::links::show); - assert!(h.shows("20 × 20 px"), "Link Info of the selected image in the layers"); + assert!(h.label_has_value("Dimensions", "20 × 20 px"), "Link Info of the selected image in the layers"); h.click_with("inside.png", egui::Modifiers::NONE); assert!(selected(&h.app()).is_empty(), "the canvas can't select it"); - assert!(h.shows("30 × 20 px"), "Link Info of the symbol's image"); + assert!(h.label_has_value("Dimensions", "30 × 20 px"), "Link Info of the symbol's image"); // Copy Info without ids copies the row picked in the panel. assert!(crate::menus::enabled(&h.app(), "links.copyInfo")); assert_eq!(h.app().run("links.copyInfo", json!({})).unwrap()["text"], "inside.png"); @@ -302,13 +302,13 @@ fn a_link_inside_a_symbol_is_listed_and_picked_in_the_panel() { h.advance(1.0); h.click_with("layer.png", egui::Modifiers::COMMAND); assert!(selected(&h.app()).is_empty()); - assert!(h.shows("30 × 20 px"), "the symbol's image is still picked"); + assert!(h.label_has_value("Dimensions", "30 × 20 px"), "the symbol's image is still picked"); h.app().run("select.set", json!({"ids": [layer]})).unwrap(); h.frame(); - assert!(h.shows("20 × 20 px")); + assert!(h.label_has_value("Dimensions", "20 × 20 px")); h.app().run("select.set", json!({"ids": []})).unwrap(); h.frame(); - assert!(!h.shows("30 × 20 px") && !h.shows("20 × 20 px"), "nothing is picked"); + assert!(!h.label_has_value("Dimensions", "30 × 20 px") && !h.label_has_value("Dimensions", "20 × 20 px"), "nothing is picked"); // Go To clears the selection and says the link has no place on the canvas. h.app().run("select.set", json!({"ids": [layer]})).unwrap(); super::links::go_to(&mut h.app(), row["id"].as_u64().unwrap()); diff --git a/crates/ui-egui/src/tests/panel_harness.rs b/crates/ui-egui/src/tests/panel_harness.rs index 12bb325ca8..2d360d03fe 100644 --- a/crates/ui-egui/src/tests/panel_harness.rs +++ b/crates/ui-egui/src/tests/panel_harness.rs @@ -364,6 +364,14 @@ impl Panel { self.fixture.tree().value_of(self.look_role(name, role).node).map(str::to_owned) } + /// Whether a label named `name` has exactly `value`, where a field's static label may share its name and role. + pub(crate) fn label_has_value(&self, name: &str, value: &str) -> bool { + let tree = self.fixture.tree(); + tree.keys().into_iter().any(|key| { + tree.role_of(key) == Some(craft::ui::contract::Role::LABEL) && tree.name_of(key) == Some(name) && tree.value_of(key) == Some(value) + }) + } + /// The description of the control named `name` (a list row's trailing texts). pub(crate) fn description(&self, name: &str) -> Option { self.fixture.tree().description_of(self.look(name).node).map(str::to_owned) diff --git a/crates/ui-egui/tests/panel_readout_copy.rs b/crates/ui-egui/tests/panel_readout_copy.rs new file mode 100644 index 0000000000..f86e93f895 --- /dev/null +++ b/crates/ui-egui/tests/panel_readout_copy.rs @@ -0,0 +1,683 @@ +//! Copy actual information-panel readouts without replacing them with artwork SVG. +//! These frames prove host clipboard intent; they do not access the OS clipboard. +#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] + +use std::io::Cursor; +use std::path::PathBuf; +use std::sync::{Arc, Mutex, mpsc}; +use std::time::Duration; + +use craft::platform::clipboard::{Clipboard, ClipboardBackend, ClipboardError, ClipboardImage, Flavor}; +use craft::ui::runtime::frame::take_output; +use craft::ui::shell::embed; +use egui::{Event, Modifiers, PointerButton, Pos2, Rect, Shape, vec2}; +use serde_json::{Value, json}; +use vectorcraft_engine::Session; +use vectorcraft_ui_egui::{Services, VectorcraftApp, background}; + +const COPIED: &str = "Copied the value"; +const LENGTH: &str = "234 pt"; + +type ClipboardOffers = Arc>>>; + +struct Board(ClipboardOffers); + +impl ClipboardBackend for Board { + fn write(&mut self, flavors: &[Flavor]) -> Result { + self.0.lock().unwrap().push(flavors.to_vec()); + Ok(0) + } + + fn read(&mut self, _: &[&str], _: u64) -> Result, ClipboardError> { + Ok(None) + } + + fn read_image(&mut self, _: u64) -> Result, ClipboardError> { + Ok(None) + } + + fn read_files(&mut self, _: usize) -> Result>, ClipboardError> { + Ok(None) + } + + fn has(&mut self, _: &[&str]) -> bool { + false + } + + fn owns(&mut self) -> Option { + Some(false) + } + + fn readable_any_time(&self) -> bool { + true + } +} + +struct App { + app: VectorcraftApp, + ctx: egui::Context, + time: f64, +} + +impl App { + fn new() -> Self { + let mut app = VectorcraftApp::new(Session::new(), Services::default()); + app.run("file.new", json!({"width": 400, "height": 300})).unwrap(); + app.run("shape.rectangle", json!({"x": 200, "y": 150, "width": 20, "height": 20})).unwrap(); + app.run("shape.rectangle", json!({"x": 20, "y": 20, "width": 37, "height": 40})).unwrap(); + let ctx = egui::Context::default(); + ctx.enable_accesskit(); + embed::install(&ctx, craft::ui::testing::install_spec(), &vectorcraft_ui_egui::ui_fonts()).unwrap(); + let mut a = Self { app, ctx, time: 0.0 }; + a.settle(); + a + } + + fn frame_after(&mut self, seconds: f64, events: Vec) -> egui::FullOutput { + self.time += seconds; + let mut raw = egui::RawInput { + events, + time: Some(self.time), + focused: true, + screen_rect: Some(Rect::from_min_size(Pos2::ZERO, vec2(1600.0, 1000.0))), + ..Default::default() + }; + self.app.adopt_context(&self.ctx); + self.app.raw_input(&self.ctx, &mut raw); + embed::before_input(&self.ctx, |out| self.app.frame_input(out)); + let mut out = self.ctx.run_ui(raw, |ui| { + self.app.tick(ui.ctx()); + self.app.ui(ui); + }); + let _ = self.app.frame_input(take_output(&self.ctx)); + out.textures_delta.clear(); + out + } + + fn frame(&mut self, events: Vec) -> egui::FullOutput { + self.frame_after(0.02, events) + } + + fn settle(&mut self) -> egui::FullOutput { + let mut out = self.frame(vec![]); + for _ in 0..3 { + out = self.frame(vec![]); + } + out + } + + fn delay(&self) -> f64 { + self.ctx.options(|o| o.input_options.max_double_click_delay) + } + + fn deadline(&mut self) -> egui::FullOutput { + self.frame_after(self.delay() + 0.05, vec![]) + } + + fn snapshot(&self) -> Value { + let st = self.app.session.active().unwrap(); + json!({"doc": st.doc, "selection": st.selection, "undo": st.history.undo.len(), "redo": st.history.redo.len()}) + } + + fn tap(&mut self, at: Pos2) -> egui::FullOutput { + self.frame(vec![Event::PointerMoved(at), button(at, true)]); + self.frame(vec![button(at, false)]) + } + + fn panel(&mut self, panel: &str) -> egui::FullOutput { + self.app.run("window.panel", json!({"panel": panel})).unwrap(); + self.settle() + } + + fn close_panel(&mut self, panel: &str) { + self.app.run("window.panel.close", json!({"panel": panel})).unwrap(); + self.settle(); + } + + fn document_category(&mut self, category: &str) -> egui::FullOutput { + self.panel("docInfo"); + let id = vectorcraft_engine::cmd::CATEGORIES.iter().find(|(_, label)| *label == category).unwrap().0; + // These frames exercise the readout, not the removed egui menu's layout. + self.app.run("ui.docInfo.category", json!({"category": id})).unwrap(); + self.settle() + } +} + +fn button(at: Pos2, pressed: bool) -> Event { + Event::PointerButton { pos: at, button: PointerButton::Primary, pressed, modifiers: Modifiers::NONE } +} + +fn copies(out: &egui::FullOutput) -> Vec { + out.platform_output.commands.iter().filter_map(|c| if let egui::OutputCommand::CopyText(s) = c { Some(s.clone()) } else { None }).collect() +} + +fn text_shape<'a>(shape: &'a Shape, text: &str) -> Option<&'a egui::epaint::TextShape> { + match shape { + Shape::Text(t) if t.galley.text() == text => Some(t), + Shape::Vec(v) => v.iter().rev().find_map(|s| text_shape(s, text)), + _ => None, + } +} + +fn painted(out: &egui::FullOutput, text: &str) -> (Rect, bool) { + out.shapes + .iter() + .rev() + .find_map(|s| { + let t = text_shape(&s.shape, text)?; + let r = t.galley.rect.translate(t.pos.to_vec2()); + s.clip_rect.intersects(r).then_some((r.intersect(s.clip_rect), t.galley.elided)) + }) + .unwrap_or_else(|| panic!("fixture: no visible actual readout {text:?}")) +} + +fn visible_text_count(out: &egui::FullOutput, text: &str) -> usize { + fn count(shape: &Shape, clip: Rect, text: &str) -> usize { + match shape { + Shape::Text(t) if t.galley.text() == text => usize::from(t.galley.rect.translate(t.pos.to_vec2()).intersect(clip).is_positive()), + Shape::Vec(v) => v.iter().map(|s| count(s, clip, text)).sum(), + _ => 0, + } + } + out.shapes.iter().map(|s| count(&s.shape, s.clip_rect, text)).sum() +} + +fn copy_at(a: &mut App, at: Pos2, value: &str) -> egui::FullOutput { + let before = a.snapshot(); + let release = a.tap(at); + // #9353 copies the first click immediately; a later click selects the word. + let commit = a.deadline(); + let next = a.frame(vec![]); + let mut all = copies(&release); + all.extend(copies(&commit)); + all.extend(copies(&next)); + assert_eq!(all, [value], "exactly one full value, never the art's SVG"); + assert_eq!(visible_text_count(&next, COPIED), 1, "one actual nonmodal confirmation is painted"); + assert_eq!(a.snapshot(), before, "readout copy leaves document, selection and history intact"); + assert!(copies(&a.frame(vec![])).is_empty(), "no copy on the next frame"); + next +} + +fn drag_text(a: &mut App, rect: Rect) { + let from = rect.left_center() + vec2(1.0, 0.0); + let to = rect.right_center() - vec2(1.0, 0.0); + assert!(copies(&a.frame(vec![Event::PointerMoved(from), button(from, true)])).is_empty()); + for k in 1..=4 { + assert!(copies(&a.frame(vec![Event::PointerMoved(from + (to - from) * k as f32 / 4.0)])).is_empty()); + } + assert!(copies(&a.frame(vec![button(to, false)])).is_empty()); + assert!(copies(&a.deadline()).is_empty(), "drag selection never auto-copies"); +} + +#[test] +fn panel_readout_existing_label_keyboard_and_art_copy_remain_independent() { + let mut a = App::new(); + let out = a.document_category("Objects"); + let before = a.snapshot(); + drag_text(&mut a, painted(&out, LENGTH).0); + for event in [Event::Copy, Event::Cut] { + let out = a.frame(vec![Event::ModifiersChanged(Modifiers::COMMAND), event]); + assert_eq!(copies(&out), [LENGTH], "the existing label selection owns Copy and Cut"); + assert!(copies(&a.frame(vec![Event::ModifiersChanged(Modifiers::NONE)])).is_empty()); + assert!(a.app.session.clipboard.is_empty(), "the art was not copied or cut"); + assert_eq!(a.snapshot(), before); + } + a.close_panel("docInfo"); + let first = a.frame(vec![Event::Copy]); + let next = a.frame(vec![]); + let mut copied = copies(&first); + copied.extend(copies(&next)); + assert_eq!(copied.len(), 1, "ordinary art Copy still runs when no label consumes it"); + assert!(copied[0].contains(" (ClipboardOffers, mpsc::Sender<()>) { + let offers = Arc::new(Mutex::new(Vec::new())); + a.app.clipboard = Clipboard::new(Board(offers.clone())); + a.app.services.write_shared = Some(Arc::new(|_: &str, _: &[u8]| Err("no fixture file writes".into()))); + let (hold, held) = mpsc::channel(); + background::run( + &mut a.app, + true, + String::new(), + None, + move |_| { + let _ = held.recv_timeout(Duration::from_secs(10)); + Ok(Value::Null) + }, + |_, r| r, + ) + .unwrap(); + a.app.run("edit.copy", json!({})).unwrap(); + assert!(!a.app.session.clipboard.is_empty(), "ordinary art Copy really queued its formats"); + assert!(offers.lock().unwrap().is_empty(), "the existing worker holds those formats"); + (offers, hold) +} + +#[test] +fn panel_readout_document_value_copies_once_with_feedback_and_cancels_pending_art() { + let mut a = App::new(); + let out = a.document_category("Objects"); + let (offers, hold) = hold_art_formats(&mut a); + let before = a.snapshot(); + let release = a.tap(painted(&out, LENGTH).0.center()); + let commit = a.deadline(); + let copied = a.frame(vec![]); + let expected = vec![vec![Flavor::text(LENGTH)]]; + assert_eq!(*offers.lock().unwrap(), expected, "one actual host offer contains the complete readout text"); + assert!( + copies(&release).is_empty() && copies(&commit).is_empty() && copies(&copied).is_empty(), + "the injected host handles this copy without duplicate fallback output" + ); + assert_eq!(visible_text_count(&copied, COPIED), 1, "one actual nonmodal confirmation is painted"); + assert_eq!(a.snapshot(), before, "readout copy leaves document, selection and history intact"); + assert!(copies(&a.frame(vec![])).is_empty(), "no fallback copy on the next frame"); + assert_eq!(*offers.lock().unwrap(), expected, "an idle frame adds no host offer"); + drop(hold); + background::wait_all(&mut a.app); + assert_eq!(*offers.lock().unwrap(), expected, "unwritten art formats cannot append an SVG, PDF, image or text offer over the readout"); + assert_eq!(a.snapshot(), before); + let next = a.frame(vec![]); + assert_eq!(visible_text_count(&next, COPIED), 1, "no duplicate confirmation was queued"); + assert!(copies(&next).is_empty()); +} + +fn dismiss_feedback(a: &mut App, out: &egui::FullOutput) { + assert_eq!(visible_text_count(out, COPIED), 1); + a.app.ui.status.clear(); + assert_eq!(visible_text_count(&a.frame(vec![]), COPIED), 0, "the previous confirmation cannot satisfy the next readout's oracle"); +} + +fn copy_graphic_style_name(a: &mut App) { + let name = "Original information-panel style"; + a.app.run("graphicStyle.new", json!({"name": name})).unwrap(); + let out = a.document_category("Graphic Styles"); + let copied = copy_at(a, painted(&out, name).0.center(), name); + dismiss_feedback(a, &copied); + a.close_panel("docInfo"); +} + +fn place_original_png(a: &mut App, name: &str) { + let pixels = image::RgbaImage::from_pixel(8, 8, image::Rgba([17, 54, 128, 255])); + let mut bytes = Cursor::new(Vec::new()); + image::DynamicImage::ImageRgba8(pixels).write_to(&mut bytes, image::ImageFormat::Png).unwrap(); + a.app.run("file.place", json!({"name": name, "dataBase64": vectorcraft_format::base64_encode(bytes.get_ref()), "link": false})).unwrap(); +} + +fn copy_long_link_value(a: &mut App) { + let name = format!("{}.png", "Original linked-information fixture ".repeat(6)); + place_original_png(a, &name); + let out = a.panel("links"); + // Native Field may put its value below the caption. Anchor it to the real copy node. + let nodes = &out.platform_output.accesskit_update.as_ref().expect("actual Name accessibility tree").nodes; + let names: Vec<_> = nodes + .iter() + .filter(|(_, node)| node.label() == Some("Name") && node.value() == Some(name.as_str())) + .filter(|(_, node)| node.supports_action(egui::accesskit::Action::Click)) + .collect(); + assert_eq!(names.len(), 1, "one actual full-name copy readout"); + assert_eq!(names[0].1.description(), Some("Copy")); + let area = location_node_rect(&names[0].1); + let (value, clipped) = out + .shapes + .iter() + .find_map(|s| { + let t = text_shape(&s.shape, &name)?; + let r = t.galley.rect.translate(t.pos.to_vec2()).intersect(s.clip_rect).intersect(area); + r.is_positive().then_some((r, t.galley.elided || r.width() < t.galley.rect.width())) + }) + .expect("the actual selected image's Link Info Name value"); + assert!(clipped, "the framework really clips this long painted readout"); + copy_at(a, value.center(), &name); +} + +#[test] +fn panel_readout_info_names_and_truncated_link_metadata_copy_full_displayed_text() { + let mut a = App::new(); + let out = a.panel("info"); + let width = "W: 37 pt"; + let copied = copy_at(&mut a, painted(&out, width).0.center(), width); + dismiss_feedback(&mut a, &copied); + a.close_panel("info"); + copy_graphic_style_name(&mut a); + copy_long_link_value(&mut a); +} + +fn assert_no_delayed_copy(a: &mut App, kind: &str) { + let copied = copies(&a.deadline()); + assert!(copied.is_empty(), "{kind}: unexpected delayed copy {copied:?}"); + assert!(copies(&a.frame(vec![])).is_empty(), "{kind}: no later duplicate copy"); +} + +fn cancelled_gesture(kind: &str) { + let mut a = App::new(); + let out = a.document_category("Objects"); + let at = painted(&out, LENGTH).0.center(); + let before = a.snapshot(); + match kind { + "outside" => { + a.frame(vec![Event::PointerMoved(at), button(at, true)]); + let outside = at + vec2(-80.0, 0.0); + // A real release outside includes the pointer motion that egui uses to distinguish + // dragging from a click; a button's release position alone does not record movement. + let up = a.frame(vec![Event::PointerMoved(outside), button(outside, false)]); + assert!(copies(&up).is_empty(), "release outside does not accept the value"); + } + "double" => { + assert_eq!(copies(&a.tap(at)), [LENGTH], "the first click follows the landed framework policy"); + let second = a.frame_after(a.delay() * 0.25, vec![button(at, true)]); + assert!(copies(&second).is_empty()); + assert!(copies(&a.frame(vec![button(at, false)])).is_empty()); + } + "hidden" => { + assert_eq!(copies(&a.tap(at)), [LENGTH], "the first click follows the landed framework policy"); + a.close_panel("docInfo"); + assert_no_delayed_copy(&mut a, kind); + a.panel("docInfo"); + } + "changed" => { + assert_eq!(copies(&a.tap(at)), [LENGTH], "the first click follows the landed framework policy"); + a.app.run("shape.rectangle", json!({"x": 70, "y": 70, "width": 1, "height": 1})).unwrap(); + let changed = a.frame(vec![]); + painted(&changed, "238 pt"); + } + _ => panic!("unknown fixture"), + } + assert_no_delayed_copy(&mut a, kind); + if kind != "changed" { + assert_eq!(a.snapshot(), before, "cancelled gestures do not edit the document or selection"); + } +} + +#[test] +fn panel_readout_primary_gestures_and_accessible_copy_follow_framework_policy() { + for kind in ["outside", "double", "hidden", "changed"] { + cancelled_gesture(kind); + } + review_8826_motion_keeps_pending_copy(); + for button in [PointerButton::Secondary, PointerButton::Middle] { + review_8826_pointer_takeover(button); + } + review_8826_accesskit_takeover(true); + review_8826_accesskit_takeover(false); +} + +fn review_8826_motion_keeps_pending_copy() { + let mut a = App::new(); + let out = a.panel("info"); + let rect = painted(&out, "W: 37 pt").0; + let before = a.snapshot(); + assert_eq!(copies(&a.tap(rect.center())), ["W: 37 pt"]); + let at = rect.center() + vec2(1.0, 0.0); + assert!(rect.contains(at), "ordinary motion stays over the same real readout"); + let moved = a.frame(vec![Event::PointerMoved(at)]); + painted(&moved, "W: 37 pt"); + assert!(copies(&moved).is_empty()); + assert!(copies(&a.deadline()).is_empty(), "motion cannot repeat the completed primary copy"); + let next = a.frame(vec![]); + assert!(copies(&next).is_empty()); + assert_eq!(visible_text_count(&next, COPIED), 1); + assert_eq!(a.snapshot(), before); +} + +fn review_8826_pointer_takeover(button: PointerButton) { + let mut a = App::new(); + let out = a.panel("info"); + let at = painted(&out, "W: 37 pt").0.center(); + let before = a.snapshot(); + let release = a.tap(at); + assert_eq!(copies(&release), ["W: 37 pt"]); + let sets = a.app.ui.status_sets; + painted(&release, "W: 37 pt"); + let press = a.frame_after(a.delay() * 0.25, vec![Event::PointerButton { pos: at, button, pressed: true, modifiers: Modifiers::NONE }]); + assert!(copies(&press).is_empty(), "{button:?} press must not copy"); + painted(&press, "W: 37 pt"); + let release = a.frame(vec![Event::PointerButton { pos: at, button, pressed: false, modifiers: Modifiers::NONE }]); + assert!(copies(&release).is_empty(), "{button:?} release must not schedule a copy"); + painted(&release, "W: 37 pt"); + assert_no_delayed_copy(&mut a, &format!("{button:?} takeover")); + let still_shown = a.frame(vec![]); + painted(&still_shown, "W: 37 pt"); + assert_eq!(a.app.ui.status_sets, sets, "another pointer action cannot repeat the confirmation"); + assert_eq!(a.snapshot(), before, "{button:?} takeover leaves document, selection and history intact"); +} + +fn review_8826_readout_node(out: &egui::FullOutput, value: &str) -> egui::accesskit::NodeId { + let rect = painted(out, value).0; + let nodes = &out.platform_output.accesskit_update.as_ref().expect("actual readout accessibility tree").nodes; + let matches: Vec<_> = nodes + .iter() + .filter(|(_, n)| n.label() == Some(value) || n.value() == Some(value)) + .filter(|(_, n)| n.supports_action(egui::accesskit::Action::Click)) + .filter(|(_, n)| { + n.bounds() + .is_some_and(|b| Rect::from_min_max(egui::pos2(b.x0 as f32, b.y0 as f32), egui::pos2(b.x1 as f32, b.y1 as f32)).intersects(rect)) + }) + .collect(); + assert_eq!(matches.len(), 1, "one live clickable node for the painted {value:?}"); + let (id, node) = matches[0]; + assert_eq!(node.description(), Some("Copy"), "the actual readout advertises its copy action"); + *id +} + +fn review_8826_accesskit_takeover(same_target: bool) { + use egui::accesskit::{Action, ActionRequest, TreeId}; + let mut a = App::new(); + let out = a.panel("info"); + let width = review_8826_readout_node(&out, "W: 37 pt"); + let height = review_8826_readout_node(&out, "H: 40 pt"); + assert_ne!(width, height, "the live W and H rows have distinct semantic targets"); + let before = a.snapshot(); + let release = a.tap(painted(&out, "W: 37 pt").0.center()); + assert_eq!(copies(&release), ["W: 37 pt"]); + painted(&release, "W: 37 pt"); + painted(&release, "H: 40 pt"); + let (target_node, expected) = if same_target { (width, "W: 37 pt") } else { (height, "H: 40 pt") }; + let activated = a.frame_after( + a.delay() * 0.25, + vec![Event::AccessKitActionRequest(ActionRequest { action: Action::Click, target_node, target_tree: TreeId::ROOT, data: None })], + ); + assert_eq!(copies(&activated), [expected], "the actual AccessKit target copies once immediately"); + painted(&activated, "W: 37 pt"); + painted(&activated, "H: 40 pt"); + assert_no_delayed_copy(&mut a, if same_target { "same-target accessible click" } else { "different-readout accessible click" }); + let still_shown = a.frame(vec![]); + painted(&still_shown, "W: 37 pt"); + painted(&still_shown, "H: 40 pt"); + assert_eq!(a.snapshot(), before, "accessible copy leaves document, selection and history intact"); +} + +fn location_node_rect(node: &egui::accesskit::Node) -> Rect { + let b = node.bounds().expect("the actual Location control has bounds"); + Rect::from_min_max(egui::pos2(b.x0 as f32, b.y0 as f32), egui::pos2(b.x1 as f32, b.y1 as f32)) +} + +fn shortened_location(shape: &Shape, rect: Rect, full: &str) -> bool { + match shape { + Shape::Text(t) => { + let painted = t.galley.rect.translate(t.pos.to_vec2()); + rect.contains(painted.center()) && t.galley.text().contains('…') && t.galley.text() != full + } + Shape::Vec(shapes) => shapes.iter().any(|s| shortened_location(s, rect, full)), + _ => false, + } +} + +#[test] +fn panel_readout_long_location_fits_and_copies_by_pointer_accessibility_and_keyboard() { + use egui::accesskit::{Action, ActionRequest, Role, TreeId}; + + // Original synthetic pixels and folder names; no external file or asset is used. + let folder = vectorcraft_testkit::TempDir::new("readout-location"); + let subfolder = folder.join("Éléments-originaux".repeat(4)); + std::fs::create_dir_all(&subfolder).unwrap(); + let path = subfolder.join("Original.png"); + let pixels = image::RgbaImage::from_pixel(8, 8, image::Rgba([17, 54, 128, 255])); + let mut bytes = Cursor::new(Vec::new()); + image::DynamicImage::ImageRgba8(pixels).write_to(&mut bytes, image::ImageFormat::Png).unwrap(); + std::fs::write(&path, bytes.get_ref()).unwrap(); + + for locale in ["en", "fr", "de"] { + let mut a = App::new(); + a.app.session.prefs.interface_language = locale.into(); + a.app.services.reveal = Some(Box::new(|_| Ok(()))); + let placed = a.app.run("file.place", json!({"path": path, "at": [100, 100]})).unwrap(); + let info = a.app.run("links.info", json!({"id": placed["ids"][0]})).unwrap(); + let location = info["location"].as_str().expect("the placed original image has a folder"); + a.panel("links"); + // 220 pt is the native panel minimum exercised by #9521, not a wide test-only layout. + a.app.run("window.panel.float", json!({"panel": "links", "x": 520, "y": 120, "width": 220, "height": 700})).unwrap(); + a.app.run("window.panel.activate", json!({"panel": "links"})).unwrap(); + let mut out = a.settle(); + for _ in 0..4 { + out = a.frame(vec![]); + } + // Hiding Link Info returns its space to the list. Activate the real footer button, + // not private state: Links applies FooterBar's first pick by toggling its existing info option. + let layout = |out: &egui::FullOutput| { + let nodes = &out.platform_output.accesskit_update.as_ref().expect("the actual floated Links tree").nodes; + let lists: Vec<_> = + nodes.iter().filter(|(_, n)| n.role() == Role::List && n.label() == Some(vectorcraft_ui_egui::i18n::t("Links"))).collect(); + assert_eq!(lists.len(), 1, "{locale}: the actual Links list has one allocation"); + let infos: Vec<_> = + nodes.iter().filter(|(_, n)| n.role() == Role::Group && n.label() == Some(vectorcraft_ui_egui::i18n::t("Link Info"))).collect(); + assert!(infos.len() <= 1, "{locale}: the live Link Info section is unambiguous"); + let toggles: Vec<_> = + nodes.iter().filter(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Show Link Info"))).collect(); + assert_eq!(toggles.len(), 1, "{locale}: the native Show Link Info footer action is unique"); + assert!(toggles[0].1.supports_action(Action::Click), "the actual footer button exposes activation"); + (location_node_rect(&lists[0].1), infos.first().map(|(_, n)| location_node_rect(n)), toggles[0].0) + }; + let before_toggle = a.snapshot(); + let (list_before, info_before, hide_info) = layout(&out); + assert!(info_before.is_some(), "{locale}: Link Info starts shown"); + a.frame(vec![Event::AccessKitActionRequest(ActionRequest { + action: Action::Click, + target_node: hide_info, + target_tree: TreeId::ROOT, + data: None, + })]); + out = a.settle(); + let (list_off, info_off, show_info) = layout(&out); + assert!(info_off.is_none(), "{locale}: the real footer action hides Link Info"); + a.frame(vec![Event::AccessKitActionRequest(ActionRequest { + action: Action::Click, + target_node: show_info, + target_tree: TreeId::ROOT, + data: None, + })]); + out = a.settle(); + let (list_on, info_on, _) = layout(&out); + assert!(info_on.is_some(), "{locale}: the real footer action restores Link Info before the original oracles"); + assert!(info_before.is_some(), "{locale}: Link Info starts visible before the real toggle control"); + assert!(list_before.height() < list_off.height(), "{locale}: initially visible Link Info reserves list space"); + assert!(list_on.height() < list_off.height(), "{locale}: showing Link Info reserves list space again"); + assert!(list_on.height() > 0.0, "{locale}: the visible details leave room for the image list"); + assert_eq!(a.snapshot(), before_toggle, "showing and hiding link details leaves document, selection and history intact"); + let nodes = &out.platform_output.accesskit_update.as_ref().expect("the floated Links tree").nodes; + let body = nodes + .iter() + .filter(|(_, n)| n.role() == Role::TabPanel) + .map(|(_, n)| location_node_rect(n)) + .find(|r| (r.left() - 520.0).abs() < 1.0) + .expect("the actual minimum-width Links float"); + assert!(body.width() <= 221.0, "{locale}: the new copy action must not widen the float: {body:?}"); + let locations: Vec<_> = nodes.iter().filter(|(_, n)| n.label() == Some(location) && n.supports_action(Action::Click)).collect(); + assert_eq!(locations.len(), 1, "{locale}: one live full-path accessible copy target"); + let (location_id, node) = locations[0]; + let location_rect = location_node_rect(node); + assert!(body.contains_rect(location_rect), "{locale}: the fitted Location remains inside the panel"); + assert!( + out.shapes.iter().any(|s| shortened_location(&s.shape, location_rect, location)), + "{locale}: the long path must actually be shortened on screen" + ); + let buttons: Vec<_> = + nodes.iter().filter(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Copy Location"))).collect(); + assert_eq!(buttons.len(), 1, "{locale}: one named native Copy Location button"); + let (copy_id, copy_node) = buttons[0]; + assert!(copy_node.supports_action(Action::Focus), "the copy button takes real keyboard focus"); + assert!(body.contains_rect(location_node_rect(copy_node)), "{locale}: Copy Location fits beside the path"); + let reveal = + nodes.iter().find(|(_, n)| n.role() == Role::Button && n.label() == Some(vectorcraft_ui_egui::i18n::t("Show in Folder"))).unwrap(); + assert!(body.contains_rect(location_node_rect(&reveal.1)), "{locale}: the incoming reveal action still fits"); + let (location_id, copy_id) = (*location_id, *copy_id); + let before = a.snapshot(); + let sets = a.app.ui.status_sets; + assert_eq!(copies(&a.tap(location_rect.center())), [location], "{locale}: a plain click copies the complete path, never its shortened paint"); + assert_no_delayed_copy(&mut a, "Location primary copy"); + + let request = + |action, target_node| Event::AccessKitActionRequest(ActionRequest { action, target_node, target_tree: TreeId::ROOT, data: None }); + let activated = a.frame(vec![request(Action::Click, location_id)]); + assert_eq!(copies(&activated), [location], "{locale}: the full-path accessibility action copies once"); + assert_no_delayed_copy(&mut a, "Location accessible copy"); + let focused = a.frame(vec![request(Action::Focus, copy_id)]); + assert!(copies(&focused).is_empty(), "focusing the button does not copy"); + assert_eq!( + focused.platform_output.accesskit_update.as_ref().unwrap().focus, + copy_id, + "{locale}: focus reaches the actual native copy button" + ); + let key = + |pressed| Event::Key { key: egui::Key::Enter, physical_key: Some(egui::Key::Enter), pressed, repeat: false, modifiers: Modifiers::NONE }; + let mut copied = copies(&a.frame(vec![key(true)])); + copied.extend(copies(&a.frame(vec![key(false)]))); + assert_eq!(copied, [location], "{locale}: native keyboard activation copies the complete path once"); + assert_no_delayed_copy(&mut a, "Location keyboard copy"); + assert_eq!(a.app.ui.status_sets, sets + 3, "each real copy reports once; idle frames and focus report nothing"); + assert_eq!(a.snapshot(), before, "{locale}: copying preserves the document, selection and history"); + } + vectorcraft_ui_egui::i18n::set_current(vectorcraft_ui_egui::i18n::Lang::EN); +} + +#[test] +fn review_4714788866_readout_copy_requires_an_inside_primary_press() { + let mut a = App::new(); + let out = a.document_category("Objects"); + let id = review_8826_readout_node(&out, LENGTH); + let nodes = &out.platform_output.accesskit_update.as_ref().unwrap().nodes; + let node = &nodes.iter().find(|(node, _)| *node == id).unwrap().1; + let b = node.bounds().expect("the actual selectable value's native bounds"); + let area = Rect::from_min_max(egui::pos2(b.x0 as f32, b.y0 as f32), egui::pos2(b.x1 as f32, b.y1 as f32)); + let outside = egui::pos2(area.left() - 1.0, area.center().y); + let inside = egui::pos2(area.left() + 1.0, area.center().y); + assert!(!area.contains(outside) && area.contains(inside)); + let layer = a.ctx.layer_id_at(inside).expect("the readout's actual layer"); + assert_eq!(a.ctx.layer_id_at(outside), Some(layer), "the boundary crossing stays on the same layer"); + assert!( + outside.distance(inside) < a.ctx.options(|o| o.input_options.max_click_dist), + "CONTROL: this two-point motion is an ordinary click, not a drag" + ); + let before = a.snapshot(); + let sets = a.app.ui.status_sets; + assert_eq!(visible_text_count(&out, COPIED), 0); + let pressed = a.frame(vec![Event::PointerMoved(outside), button(outside, true)]); + assert!(copies(&pressed).is_empty()); + let released = a.frame(vec![Event::PointerMoved(inside), button(inside, false)]); + assert!(a.ctx.input(|i| i.pointer.button_clicked(PointerButton::Primary)), "CONTROL: egui's pointer-wide click flag accepts this gesture"); + assert!(copies(&released).is_empty(), "starting outside must not copy a value on an inside release"); + assert_no_delayed_copy(&mut a, "outside-to-inside readout release"); + assert_eq!(a.app.ui.status_sets, sets, "a rejected copy has no confirmation"); + assert_eq!(visible_text_count(&a.frame(vec![]), COPIED), 0); + assert_eq!(a.snapshot(), before, "the rejected gesture preserves document, selection and history"); + + // The same inside position copies on its first click when both edges arrive together. + // Framework H0 holds the raw release until the next frame; preserve that actual input path. + let queued = a.frame(vec![Event::PointerMoved(inside), button(inside, true), button(inside, false)]); + assert!(copies(&queued).is_empty(), "a queued release has not copied yet"); + assert!(!a.ctx.input(|i| i.pointer.button_clicked(PointerButton::Primary))); + assert_eq!(a.app.ui.status_sets, sets); + let accepted = a.frame(vec![]); + assert!(a.ctx.input(|i| i.pointer.button_clicked(PointerButton::Primary)), "the held release is now delivered"); + assert_eq!(copies(&accepted), [LENGTH]); + assert_eq!(a.app.ui.status_sets, sets + 1); + // The shell paints its status slot before the panel sets this confirmation. + let feedback = a.frame(vec![]); + assert!(copies(&feedback).is_empty(), "painting confirmation does not copy again"); + assert_eq!(a.app.ui.status_sets, sets + 1, "painting confirmation does not report again"); + assert_eq!(visible_text_count(&feedback, COPIED), 1); + assert_no_delayed_copy(&mut a, "accepted inside readout press"); + assert_eq!(a.snapshot(), before); +} diff --git a/docs/gaps.md b/docs/gaps.md index 8cb644c4ab..16ebfb63dc 100644 --- a/docs/gaps.md +++ b/docs/gaps.md @@ -3,6 +3,8 @@ > Status-bar snapping quick access (#8687, #8779): the bottom right offers Smart Guides, Snap to Point and Snap to Grid toggles plus the same live Snapping menu as the Control bar. Both use existing commands. Framework fit ranks omit the direct group first, then the dropdown, before the existing readouts or core status content narrow. The native buttons expose their current selected state. Scores and estimates are unchanged. > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-25 · **Change:** minor (G12: History row menus adapted to shared Craft list/menu controls after rebase (#8845); scores and estimates unchanged; previously: G12: Document Info panel menu Selection Only (`ui.docInfo.selectionOnly`) counts the selection, and with no artwork selected it shows (No artwork selected) and artboards the Artboard tool has selected still show; scores and estimates unchanged; previously: G12: OpenType panel feature rows have an item context menu (Turn On / Turn Off, Reset OpenType Features); scores and estimates unchanged; previously: G3 lists shadows from the first light and graphics as done and drops angular cut caps, which Revolve's Cap closes, #8312; scores and estimates unchanged; previously: G12/M14: History row context menus, pending-edit snapshot targeting, keyboard access and document-switch dismissal (#8845); scores and estimates unchanged; previously: G3 lists shadows from the first light and graphics as done and drops angular cut caps, which Revolve's Cap closes, #8312; scores and estimates unchanged; previously: G12: Asset Export tile context menus; scores and estimates unchanged; previously: M14/G12: Appearance panel: right-click item context menus for rows (Duplicate, Delete, Hide/Show, Edit Effect, Clear Appearance, Reduce to Basic Appearance) with selection handling, #8809; previously: G12: Properties panel Quick Actions include contextual text actions (Create Outlines, Retype, Find and Replace…); scores and estimates unchanged; previously: G12: Actions panel item context menus for action sets (New Action…, New Set…, Duplicate Set, Delete Set, Set Options…) and actions (Play, Record, Duplicate, Delete, Action Options…, Batch…) with selection handling; clicking Duplicate on an action duplicates that action; headless tests in `crates/ui-egui/src/panels/actions.rs`; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: G12: Brushes panel: item right-click context menu (Brush Options, Duplicate Brush, Delete Brush) with selection handling; scores and estimates unchanged; previously: G12: Links panel row context menu (Relink…, Go To Link, Update Link, Edit Original, Show in Folder, Embed Image / Unembed…) with selection handling; 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; G4 and G13 Missing lists drop the shipped Touch Type, Snap to Glyph and Dimension tool, and G13's snapping entry keeps only what is still missing, the partial Snapping panel and the items not yet checked (#8387); G13 keeps one estimate (13–23 h); estimates unchanged; previously: 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: 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; 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: G4 type: modal Check Spelling dialog (Edit › Spelling › Check Spelling…), #4936; spell check complete; previously: Type: the Middle Eastern & South Asian composers are done as a per-paragraph choice with the Standard composers (#4935); G5: built-in Neon & Glow graphic style library (Cyan Neon, Magenta Laser, Amber Tube, Electric Lime, Pulse Violet, Cobalt Phosphor); estimate unchanged (3–13 h); previously: Tech Circuit brush library, G5; previously: G5: built-in Weather Icons symbol library (Sun, Moon, Cloud, Rain, Thunder, Snow); estimate 5–15 → 4–14 h; previously: 3D: the seams of white-light Extrude & Bevel, Inflate and Rotate, and the face seams of the 3D (Classic) effects, have round joins instead of miters; previously: PDF import: preserve Type 3 font text runs as named groups , or as live text in TextAs::Text mode if ToUnicode exists on non-colour fonts (TextAs::Outlines produces grouped outlines), #6740; 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: oversized editing artboard import; Glyphs panel: Alternates for Current Selection applies an OpenType feature value (`salt=2`) to the selected letter alone, so an Arabic word stays joined, and Entire Font lists the unencoded glyphs, #5514; #6404: transform-aware Eyedropper character copying; scores and estimates unchanged; previously: G5: built-in Energy Beams brush library; estimate 5–15 → 4–14 h; previously minor: G5: built-in Skill Icons symbol library; estimate 6–16 → 5–15 h; previously minor: ruler double-click adds a guide at the pointer, #5239; G5: built-in Status Effects graphic style library; estimate 7–17 → 6–16 h; MCP docs catch-up for UI Frames and Map Markers; previously minor: G5: built-in Inventory Icons symbol library; estimate 8–18 → 7–17 h; previously minor: G9: `.ai` save names a variable font instance's design-space setting, #6388; previously minor: G5: built-in Game Trails brush library; estimate 9–19 → 8–18 h; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: docs tidy-up, no content change: stray notes at the top moved into the revision table; scores and estimates unchanged; previously minor: G5: built-in Game HUD graphic style library; estimate 10–20 → 9–19 h; previously minor: G5: built-in Map Markers symbol library; estimate 11–21 → 10–20 h; 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; estimate 1–2 h → 0; 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; G5: built-in UI Frames symbol library with default 9-slice; estimate 11–21 h; previously minor: G5: dynamic symbol part on-canvas takes opacity, blend, gradient and pattern; docs Overlap/auto-corners sync; estimate 12–22 h; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; previously minor: Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; previously minor: G5 docs: Art brush Overlap, Pattern brush auto corners and Global Edit Shift-click leave-out moved from Missing to Done (code already shipped); previously minor: 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; G9: EPS gradients drawn as abutting strips import as one gradient, without seams; Tools stays beside the canvas with left-side panels; new gradients follow document color mode; 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; Indian-language hyphenation review and license allowlist, #4947; opening a slow file shows a progress window, part of #5930; Hindi catalog and contributor loanword preferences; agent wording pass complete; wider native proofreading welcome; an image zoomed in on is separated, colorized or proofed only where it shows (#4155); scores and estimates unchanged; a document's first frame renders on the render worker, so opening a heavy file no longer freezes the window; scores and estimates unchanged; large images in CMYK documents are shrunk before they are separated into ink planes (#4155); scores and estimates unchanged; `.ai` paths with a Calligraphic brush open brushed, with the 6D Art Pen's channels, and Windows reads the pen's tilt and barrel rotation, #372; scores and estimates unchanged; Compound Shapes add-on, beyond Illustrator; scores and estimates unchanged; Contour add-on, beyond Illustrator; scores and estimates unchanged; a slow first frame is waited for instead of restarting without the graphics adapter, and the menu bar no longer waits for the installed fonts' scan; scores and estimates unchanged; Gradient stop editor: native Color-tab menu offers the five Color panel modes (#7918); validation pending; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x) +> Panel readout copy (#8432, #8826): Info values and paint names, Links information, and named Document Info rows with no separate value follow the guarded immediate-copy policy landed in #9353. A plain first click copies the full value and reports "Copied the value"; accessible activation copies it too. Selectable readouts retain word selection on double-click, Shift/drag selection and keyboard Copy/Cut. Links Location retains #9521's path fitting and full-path tooltip as static text, with the same full-value primary/accessible copy and a native Copy Location button for keyboard use. Scores and estimates are unchanged. + > Scissors snapping update (2026-11-11): with Alt released, hover and cuts use the Pen's path, alignment, intersection and anchor snaps (#6470). Scores and estimates unchanged. > Selection update (2026-11-11): path and compound-path interiors follow enabled non-None fill rows, including lower fills beneath a top None row (#6625). Hidden-only interiors miss; zero-opacity fills remain selectable. Cap/join follow-up (2026-11-12): hidden-fill and no-fill stroke hits must respect cap and join geometry; focused cap/join CPU regressions passed. Scores and estimates unchanged. diff --git a/docs/roadmap.md b/docs/roadmap.md index 3309dd656d..43c35577c0 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -3,6 +3,8 @@ > Status-bar snapping quick access (#8687, #8779): the bottom right offers Smart Guides, Snap to Point and Snap to Grid toggles plus the same live Snapping menu as the Control bar. Both use existing commands. Framework fit ranks omit the direct group first, then the dropdown, before the existing readouts or core status content narrow. The native buttons expose their current selected state. Scores and estimates are unchanged. > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-25 · **Change:** minor (G12: History row menus adapted to shared Craft list/menu controls after rebase (#8845); scores and estimates unchanged; previously: G12/M14: History row context menus, pending-edit snapshot targeting, keyboard access and document-switch dismissal (#8845); scores and estimates unchanged; previously: G12: Asset Export tile context menus; scores and estimates unchanged; previously: M14/G12: Appearance panel row context menus, #8809; previously: M1: Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: M11: Trim View hides the ruler guides, guide paths and the grid while it is on and greys out Show/Hide Guides and Show/Hide Grid, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: M5: In the web build, an edit while the view of a heavy document moves (a tool drag held at an edge of the canvas, #8551, or a wheel scroll during a drag) draws only the part it changed into the last frame, which stays drawn moved with the view, instead of rendering the whole canvas each frame (an edit that changes more than half of the frame, or a change of more than the view and the document, still renders it whole at once), and edits that go on once the view is still don't put off its render (#8688); scores and estimates unchanged; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); M11: a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: Layers: selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: M4: PDF import: type filled and stroked after a page of type filled only comes in filled and stroked, #8549 follow-up; scores and estimates unchanged; previously: selected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: M4: `.ai` and EPS import: an Art brush in Tints of a swatch-linked stroke color comes in brushed, #8200; scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: 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 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; Gradient stop editor: native Color-tab menu offers the five Color panel modes (#7918); validation pending; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x) +> Panel readout copy (#8432, #8826): Info values and paint names, Links information, and named Document Info rows with no separate value follow the guarded immediate-copy policy landed in #9353. A plain first click copies the full value and reports "Copied the value"; accessible activation copies it too. Selectable readouts retain word selection on double-click, Shift/drag selection and keyboard Copy/Cut. Links Location retains #9521's path fitting and full-path tooltip as static text, with the same full-value primary/accessible copy and a native Copy Location button for keyboard use. Scores and estimates are unchanged. + > > Oversized artboard import update (2026-11-12): Explicit editing-data import retains a single artboard beyond a capped 14,400 pt PDF page (#6865). > diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index be7383fb5f..a54102e675 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -4,6 +4,8 @@ Native saves on Unix flush the destination directory after writing or replacing > Status-bar snapping quick access (#8687, #8779): the bottom right offers Smart Guides, Snap to Point and Snap to Grid toggles plus the same live Snapping menu as the Control bar. Both use existing commands. Framework fit ranks omit the direct group first, then the dropdown, before the existing readouts or core status content narrow. The native buttons expose their current selected state. Scores and estimates are unchanged. > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-25 · **Change:** minor (Essentials readiness row: Shape Builder item names its remaining depth, #937's fix unconfirmed on the reporter's file, #8314; scores and estimates unchanged; previously: G12: History row context menus use shared Craft controls, snapshot targeting, keyboard access and document-switch dismissal (#8845); scores and estimates unchanged; previously: G12: Document Info Selection Only counts the selection, and with no artwork selected it shows (No artwork selected) and artboards the Artboard tool has selected still show; scores and estimates unchanged; previously: Pencil Edit Selected Paths follows lifted strokes, carves, loops, closes and redraws compound paths; Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: G12: Asset Export tile context menus; scores and estimates unchanged; previously: M14/G12: Appearance panel: right-click item context menus for rows (Duplicate, Delete, Hide/Show, Edit Effect, Clear Appearance, Reduce to Basic Appearance) with selection handling, #8809; previously: Text styles panel: right-click item context menus for Character Styles and Paragraph Styles with Options, Duplicate, Delete, Redefine, Clear Overrides; scores and estimates unchanged; previously: G12: Actions panel item context menus for action sets (New Action…, New Set…, Duplicate Set, Delete Set, Set Options…) and actions (Play, Record, Duplicate, Delete, Action Options…, Batch…) with selection handling; clicking Duplicate on an action duplicates that action; headless tests in `crates/ui-egui/src/panels/actions.rs`; scores and estimates unchanged; previously: Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: Trim View hides the ruler guides, guide paths and the grid while it is on and greys out Show/Hide Guides and Show/Hide Grid, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: G12: Brushes panel: item right-click context menu (Brush Options, Duplicate Brush, Delete Brush) with selection handling; scores and estimates unchanged; previously: Graphic Styles panel: right-click item context menu for tiles and rows with Options, Duplicate, Delete, Redefine, Break Link; scores and estimates unchanged; previously: In the web build, an edit while the view of a heavy document moves (a tool drag held at an edge of the canvas, #8551, or a wheel scroll during a drag) draws only the part it changed into the last frame, which stays drawn moved with the view, instead of rendering the whole canvas each frame, and edits that go on once the view is still don't put off its render (#8688); scores and estimates unchanged; previously: G12: Links panel row context menu (Relink…, Go To Link, Update Link, Edit Original, Show in Folder, Embed Image / Unembed…) with selection handling; scores and estimates unchanged; previously: Artboard tool: Shift held once a move or Alt-copy drag is under way keeps it to the level, upright or 45° line, #8580; scores and estimates unchanged; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: G12: Place: show progress window with Cancel for slow placed files exceeding 0.4 s, part of #5930; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: Layers: selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: PDF import: type filled and stroked after a page of type filled only comes in filled and stroked, #8549 follow-up; scores and estimates unchanged; previously: selected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: #8200: `.ai` and EPS import: an Art brush in Tints of a swatch-linked stroke color comes in brushed, its tints linked to the swatch; scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: 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; previously: G5: Weather Icons joins built-in symbol libraries (Sun, Moon, Cloud, Rain, Thunder, Snow); scores and estimates unchanged; previously: a closed Pencil stroke closes with a straight segment; previously: Snap to Point with Smart Guides off draws no Smart Guides labels or lines, #7250; previously: 3D: the seams of Extrude & Bevel, Inflate and Rotate under a white light, and of the faces of Extrude & Bevel (Classic), Revolve (Classic) and Rotate (Classic), went from miter to round joins, so white-light 3D output is expected to differ from the 2026-10-17 comparison at facet corners (not measured: the scenes were not exported again); previously: `.ai` and EPS import: in layers that don't draw as the page, art that differs away from an envelope of type no longer costs it its editable type; it keeps its drawn art where, in the pixels it and its drawn art ink, the layers with it differ from the page more than its own check allows, or past the envelopes' share of the page check, #7141; Character panel: the Set Font Height Reference dropdown shows an icon before each reference, #6304; scores and estimates unchanged; previously: Envelopes: a top object's side columns; scores and estimates unchanged; 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 minor: Object › Rasterize with the Grayscale or Bitmap colour model makes a grayscale image, #6969; scores and estimates unchanged; previously minor: `.ai` and EPS import: type in an envelope with Distort Appearance is also tried mapped from the box of what it paints, miter tips and moved strokes included, after its glyphs grown by half its strokes' weight (#6824; #6617: Swatches panel menu: Show Recent Colors; scores unchanged; previously minor: 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; macOS: the canvas cursor stays after the pointer moves, #6362; scores and estimates unchanged; previously minor: Type tool: kerning at a caret at the start of a line moves the character after it, #5111; scores and estimates unchanged; previously minor: Rulers: the zero point dragged out of the rulers' corner 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: Envelopes: with Distort Appearance, type's strokes paint along the bent glyph outlines at their own weight, as users' `.ai` files draw them, which changes how VectorCraft's own envelopes of stroked type draw (#6644; scores and estimates unchanged); previously minor: G5: Energy Beams brush library; bundled content ~44% → ~46%; previously minor: G5: Skill Icons symbol library; bundled content ~42% → ~44%; previously minor: `.ai` and EPS import: an envelope saved in Edit Contents whose mesh lies away from its drawn art by a move opens live on that art (#6570; scores and estimates unchanged); previously minor: ruler double-click adds a guide at the pointer, #5239; G5: Status Effects graphic style library; bundled content ~40% → ~42%; MCP symbol libraries list UI Frames and Map Markers; previously minor: G5: Inventory Icons built-in symbol library; bundled content ~38% → ~40%; previously minor: `.ai` and EPS import: stroked type in an envelope maps from its glyphs grown by half its stroke (#3179; scores and estimates unchanged); previously minor: `.ai` and EPS import: warps of type open as mesh envelopes on their saved grid where VectorCraft's warp doesn't draw as their drawn art (#3179; scores and estimates unchanged); G5: Game Trails brush library; bundled content ~36% → ~38%; previously minor: Edit › Edit Custom Dictionary…: its dialog adds, deletes and changes the custom dictionary's words, #4936; previously minor: `.ai` and EPS import: envelopes of type open live where they draw as their drawn art and the layers with them draw as the page (#3179; scores and estimates unchanged); G5: Game HUD graphic style library; bundled content ~34% → ~36%; previously minor: Line Arrow arrowhead (#5421; scores and estimates unchanged); G5: Map Markers built-in symbol library; bundled content ~32% → ~34%; 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: Canvas: a 3D effect changed on type or a group redraws where its solid was; Fit to Artwork Bounds and per-artboard SVG export build each solid once for all artboards; previously minor: Effect Gallery: a thumbnail for each filter and a preview area inside the dialog, on an original drawing; Raster effects 52% → 55%, hours 1–2 → none; headline numbers unchanged; 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; G5: UI Frames built-in symbol library with default 9-slice; bundled content ~32%; previously minor: G5: dynamic symbol part on-canvas opacity/blend/gradient/pattern; strokes remaining no longer lists Overlap/auto corners; symbols ~88%; previously minor: interim macOS cursor delivery, #2292; native validation pending; scores and estimates unchanged; previously minor: harakat paint fallback clarified; previously minor: current Guides feature-area rows consolidated using existing ruler evidence; scores and estimates unchanged; previously minor: Control bar › Snapping includes the existing Snap to Glyph and Alignment Guides toggles (#6164); scores and estimates unchanged; previously minor: G5 docs: Art brush Overlap and Pattern brush auto corners removed from strokes remaining; symbols remaining lists dynamic on-canvas beyond solid and guides outside the art; previously minor: 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; `.ai`/EPS type keeps its tab stops, and right-aligned lines with tabs lay out as the file's page, #6147; `.ai`/EPS type from the text document lays its lines out closer to the file's page, within limits, #6137; `.ai` and EPS import: older Art brush objects read; numeric fields step on wheel hover without taking keyboard focus, and a panel wheel turn cannot seed a canvas zoom glide, #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; Tools stays beside the canvas with left-side panels; new gradients follow document color mode; 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; the canvas keeps selection outlines and anchors between frames; Indian-language hyphenation review and license allowlist, #4947; Stroke gradients: an arrowhead aligned to the tip is painted to the corners of its base, #5964; Drop Shadow and glow dialogs: spinner arrows, #5367, #5368; Stroke Weight Up and Down shortcuts, #5797; Hindi catalog and contributor loanword preferences; full wording review in progress; Properties in Edit Artboards: a Transform section with the reference point above the Artboards section, #5219; the Control bar's Stroke: and Opacity: links scrub their fields, #4088; an image zoomed in on is separated, colorized or proofed only where it shows (#4155); a document's first frame renders on the render worker, so opening a heavy file no longer freezes the window, #4155; Control bar Paragraph section with type selected, #5372; translating unchanged type reuses its glyph and character-stroke outlines; scores and estimates unchanged; Gradient stop editor: native Color-tab menu offers the five Color panel modes (#7918); validation pending; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; public release notes through 30.7, August 2026; Units › East Asian Type acts, with Q and Ha units; scores unchanged) + +> Panel readout copy (#8432, #8826): Info values and paint names, Links information, and named Document Info rows with no separate value follow the guarded immediate-copy policy landed in #9353. A plain first click copies the full value and reports "Copied the value"; accessible activation copies it too. Selectable readouts retain word selection on double-click, Shift/drag selection and keyboard Copy/Cut. Links Location retains #9521's path fitting and full-path tooltip as static text, with the same full-value primary/accessible copy and a native Copy Location button for keyboard use. Scores and estimates are unchanged. > > Outline Stroke is available in the canvas context menu when the selection has an outlinable stroke (#5267), excluding the command's protected linked dimensions and plain butt-capped paths that paint no area. Painting round and square caps remain eligible. Scores and estimates unchanged. > diff --git a/docs/ui-parity.md b/docs/ui-parity.md index 53c3aef82d..1c491b9714 100644 --- a/docs/ui-parity.md +++ b/docs/ui-parity.md @@ -2,6 +2,8 @@ > Status-bar snapping quick access (#8687, #8779): the bottom right offers Smart Guides, Snap to Point and Snap to Grid toggles plus the same live Snapping menu as the Control bar. Both use existing commands. Framework fit ranks omit the direct group first, then the dropdown, before the existing readouts or core status content narrow. The native buttons expose their current selected state. Scores and estimates are unchanged. > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-25 · **Change:** minor (G12: History row menus adapted to shared Craft list/menu controls after rebase (#8845); scores and estimates unchanged; previously: G12/M14: History row context menus, pending-edit snapshot targeting, keyboard access and document-switch dismissal (#8845); scores and estimates unchanged; previously: Pencil Edit Selected Paths follows lifted strokes, carves, loops, closes and redraws compound paths; Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: G12: Asset Export tile context menus; scores and estimates unchanged; previously: Properties panel per context (G12): contextual text Quick Actions (Create Outlines, Retype, Find and Replace…); scores and estimates unchanged; previously: Layers: a targeted item with an appearance of its own keeps its inner ring visible around a smaller appearance dot, so the target circle's four looks differ, #8711; scores and estimates unchanged; previously: Trim View hides the ruler guides, guide paths and the grid while it is on and greys out Show/Hide Guides and Show/Hide Grid, #8363; scores and estimates unchanged; previously: Scissors shows the actual proposed cut point while hovering, using its existing snapping and cut target (#8655); scores and estimates unchanged; previously: Graphic Styles panel: right-click item context menu for tiles and rows with Options, Duplicate, Delete, Redefine, Break Link; scores and estimates unchanged; previously: Artboard tool: Shift held once a move or Alt-copy drag is under way keeps it to the level, upright or 45° line, #8580; scores and estimates unchanged; previously: Image Trace Ignore Color keeps the canvas View and stays armed on a missed pixel (#8068); Canvas context menu: a right-click on a path offers Simplify… next to Smooth…, opening the Simplify slider, or the Simplify dialog kept for next time, as Object › Path › Simplify… does, #8344; scores and estimates unchanged; previously: a tool drag held near an edge of the canvas scrolls the view, #8551; scores and estimates unchanged; previously: G12: Place: show progress window with Cancel for slow placed files exceeding 0.4 s, part of #5930; scores and estimates unchanged; previously: All Tools drawer: a tool the toolbar holds is dimmed in the readable dim text colour, not the disabled colour that was unreadable against the panel, and a hovered dimmed row takes the panel's darker fill so it stays readable, #8294; scores and estimates unchanged; previously: : selected guide rows stay highlighted after the pointer leaves (#7344); scores and estimates unchanged; previously: Layersselected Dimension extension-line color and weight in Properties (#7078; four focused UI regressions passed); scores and estimates unchanged; previously: Brush Options Key Color: restore canvas input for the existing one-shot pick, then resume the retained draft and previous tool (#8284; six full-app input regressions passed); scores and estimates unchanged; previously: Ellipse: Up/Down changes Anchors while drawing (#7840); scores and estimates unchanged; previously: Windows/Linux menu access keys and localized cues (#6596); previously: 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; #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; Gradient stop editor: native Color-tab menu offers the five Color panel modes (#7918); validation pending; scores and estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x; Units › East Asian Type acts, with Q and Ha units; scores unchanged) + +> Panel readout copy (#8432, #8826): Info values and paint names, Links information, and named Document Info rows with no separate value follow the guarded immediate-copy policy landed in #9353. A plain first click copies the full value and reports "Copied the value"; accessible activation copies it too. Selectable readouts retain word selection on double-click, Shift/drag selection and keyboard Copy/Cut. Links Location retains #9521's path fitting and full-path tooltip as static text, with the same full-value primary/accessible copy and a native Copy Location button for keyboard use. Scores and estimates are unchanged. > > Outline Stroke is available in the canvas context menu when the selection has an outlinable stroke (#5267). A linked dimension selected with its source keeps its lines; those protected lines do not make a fill-only source eligible, including inside a group. Coincident-point paths with a plain butt-capped stroke do not make the selection eligible either; round and square caps still paint and can be outlined. Scores and estimates unchanged. >