From 05c3dffc4277ed0850258165b254d54d0c2b85b5 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 28 Nov 2026 03:11:37 -0800 Subject: [PATCH] Polygonal Lasso: the tool is in the Lasso tool's flyout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Polygonal Lasso Tool joins the Lasso group in both shipped toolbars, after the Enclosing Lasso, and stays in Object › Plug-ins › Polygonal Lasso. The All Tools drawer lists it once, under Select, instead of under a heading of its own, and Edit › Keyboard Shortcuts › Tools lists it once. It has no default shortcut, and the Lasso keeps Q. A toolbar the user already edited keeps its saved layout; Reset Toolbar adds the tool. A Lasso group torn off the Tools panel shows it too. The Enclosing Lasso moved the same way in #8333. --- crates/mcp/src/tests.rs | 37 +++++--- crates/tools/src/addons.rs | 38 +++++--- crates/tools/src/catalog.rs | 4 +- crates/ui-egui/src/edit_toolbar/tests.rs | 113 +++++++++++++++++++++-- crates/ui-egui/src/toolbar.rs | 2 +- docs/target-app-parity.md | 2 +- 6 files changed, 160 insertions(+), 36 deletions(-) diff --git a/crates/mcp/src/tests.rs b/crates/mcp/src/tests.rs index 2579064919..231cbd5f9f 100644 --- a/crates/mcp/src/tests.rs +++ b/crates/mcp/src/tests.rs @@ -1662,16 +1662,6 @@ fn headless_backend_methods() { assert_eq!(entry["label"], "Trim at Crossings Tool"); assert!(entry["shortcut"].is_null()); assert_eq!(h.call("ui.tool.select", json!({"tool": trim})).unwrap()["tool"], trim); - // The Enclosing Lasso Tool is listed once, in the Lasso tool's group after the Lasso. - let enclosing = vectorcraft_tools::addons::enclosing_lasso::ID; - let with_enclosing: Vec<_> = - groups.iter().map(|group| group.as_array().unwrap()).filter(|group| group.iter().any(|entry| entry["id"] == enclosing)).collect(); - assert_eq!(with_enclosing.len(), 1, "{enclosing} is in one group"); - let ids: Vec<_> = with_enclosing[0].iter().map(|entry| entry["id"].clone()).collect(); - assert_eq!(ids, [json!("lasso"), json!(enclosing)]); - assert_eq!(with_enclosing[0][1]["label"], "Enclosing Lasso Tool"); - assert!(with_enclosing[0][1]["shortcut"].is_null()); - assert_eq!(h.call("ui.tool.select", json!({"tool": enclosing})).unwrap()["tool"], enclosing); // The Smart Pen Tool is listed once, at the end of the Pen tool's group. let smart_pen = vectorcraft_tools::addons::smart_pen::ID; let with_smart_pen: Vec<_> = @@ -1684,11 +1674,34 @@ fn headless_backend_methods() { assert_eq!(entry["label"], "Smart Pen Tool"); assert!(entry["shortcut"].is_null()); assert_eq!(h.call("ui.tool.select", json!({"tool": smart_pen})).unwrap()["tool"], smart_pen); - let polygonal = groups.iter().flat_map(|group| group.as_array().unwrap()).find(|entry| entry["id"] == "polygonalLasso"); - assert_eq!(polygonal.map(|entry| entry["label"].clone()), Some(json!("Polygonal Lasso Tool"))); assert!(h.call("ui.resize", json!({})).is_err()); } +/// The Enclosing Lasso and Polygonal Lasso tools are listed once each, in the Lasso tool's group +/// after the Lasso, with no shortcut, and `ui.tool.select` chooses them. +#[test] +fn headless_lists_the_lasso_group() { + let mut h = Headless::new(); + h.call("engine.execute", json!({"command": "file.new", "params": {"width": 300, "height": 200}})).unwrap(); + let listed = h.call("ui.tool.list", json!({})).unwrap(); + let groups = listed.as_array().unwrap(); + let enclosing = vectorcraft_tools::addons::enclosing_lasso::ID; + let polygonal = vectorcraft_tools::addons::polygonal_lasso::ID; + let with_enclosing: Vec<_> = + groups.iter().map(|group| group.as_array().unwrap()).filter(|group| group.iter().any(|entry| entry["id"] == enclosing)).collect(); + assert_eq!(with_enclosing.len(), 1, "{enclosing} is in one group"); + let ids: Vec<_> = with_enclosing[0].iter().map(|entry| entry["id"].clone()).collect(); + assert_eq!(ids, [json!("lasso"), json!(enclosing), json!(polygonal)]); + assert_eq!(with_enclosing[0][1]["label"], "Enclosing Lasso Tool"); + assert!(with_enclosing[0][1]["shortcut"].is_null()); + assert_eq!(with_enclosing[0][2]["label"], "Polygonal Lasso Tool"); + assert!(with_enclosing[0][2]["shortcut"].is_null()); + let listed = groups.iter().flat_map(|group| group.as_array().unwrap()).filter(|entry| entry["id"] == polygonal).count(); + assert_eq!(listed, 1, "{polygonal} is listed once"); + assert_eq!(h.call("ui.tool.select", json!({"tool": enclosing})).unwrap()["tool"], enclosing); + assert_eq!(h.call("ui.tool.select", json!({"tool": polygonal})).unwrap()["tool"], polygonal); +} + /// The headless key, pointer and screenshot calls refuse a value of the wrong type and change /// nothing; omitting it or giving null keeps its default. #[test] diff --git a/crates/tools/src/addons.rs b/crates/tools/src/addons.rs index d62bc0bd62..f818428ea0 100644 --- a/crates/tools/src/addons.rs +++ b/crates/tools/src/addons.rs @@ -1,9 +1,10 @@ //! The tools of VectorCraft's built-in add-ons. They aren't in the toolbars as they ship: the All //! Tools drawer lists them (under their add-on's heading) so they can be added, and each add-on's -//! submenu selects them. Tool gestures emit engine commands. Three tools are the exceptions: the -//! Trim at Crossings Tool is in the Scissors tool's group, the Enclosing Lasso Tool is in the Lasso -//! tool's group and the Smart Pen Tool is in the Pen tool's group ([`crate::TOOL_GROUPS`]), where -//! the toolbars and the All Tools drawer show them, as well as in their add-ons' submenus. +//! submenu selects them. Tool gestures emit engine commands. Four tools are the exceptions: the +//! Trim at Crossings Tool is in the Scissors tool's group, the Enclosing Lasso and Polygonal Lasso +//! tools are in the Lasso tool's group and the Smart Pen Tool is in the Pen tool's group +//! ([`crate::TOOL_GROUPS`]), where the toolbars and the All Tools drawer show them, as well as in +//! their add-ons' submenus. pub mod anchor_eraser; pub mod box3d; @@ -39,16 +40,12 @@ pub const CONTOUR: &[ToolInfo] = &[ToolInfo { id: contour::ID, label: "Contour T pub const BOX_3D: &[ToolInfo] = &[ToolInfo { id: box3d::ID, label: "3D Box Tool", shortcut: None, icon: "dc-cube" }]; -pub const POLYGONAL_LASSO: &[ToolInfo] = - &[ToolInfo { id: polygonal_lasso::ID, label: "Polygonal Lasso Tool", shortcut: None, icon: "dc-lasso-polygonal" }]; - /// The add-ons' tool groups, after the toolbar's own ([`crate::TOOL_GROUPS`]), each with the /// heading the All Tools drawer lists it under (its add-on's name). -const HEADED: &[(&[ToolInfo], &str)] = - &[(PATH_TOOLS, "Path Precision Tools"), (CONTOUR, "Contour"), (BOX_3D, "3D Box"), (POLYGONAL_LASSO, "Polygonal Lasso")]; +const HEADED: &[(&[ToolInfo], &str)] = &[(PATH_TOOLS, "Path Precision Tools"), (CONTOUR, "Contour"), (BOX_3D, "3D Box")]; /// The add-ons' tool groups, after the toolbar's own ([`crate::TOOL_GROUPS`]). -pub const GROUPS: &[&[ToolInfo]] = &[PATH_TOOLS, CONTOUR, BOX_3D, POLYGONAL_LASSO]; +pub const GROUPS: &[&[ToolInfo]] = &[PATH_TOOLS, CONTOUR, BOX_3D]; /// The heading the All Tools drawer lists tool `id` under: its add-on's name. pub fn heading(id: &str) -> Option<&'static str> { @@ -92,7 +89,6 @@ mod tests { assert!(PATH_TOOLS.iter().all(|t| heading(t.id) == Some("Path Precision Tools"))); assert_eq!(heading(contour::ID), Some("Contour")); assert_eq!(heading(box3d::ID), Some("3D Box")); - assert_eq!(heading(polygonal_lasso::ID), Some("Polygonal Lasso")); assert_eq!(GROUPS.len(), HEADED.len()); assert!(crate::catalog::all_tools().any(|t| t.id == extend_path::ID)); assert!(create("pen").is_none() && heading("pen").is_none()); @@ -123,7 +119,7 @@ mod tests { let groups: Vec<_> = crate::TOOL_GROUPS.iter().filter(|g| g.iter().any(|t| t.id == id)).collect(); assert_eq!(groups.len(), 1); let ids: Vec<_> = groups[0].iter().map(|t| t.id).collect(); - assert_eq!(ids, ["lasso", id]); + assert_eq!(ids, ["lasso", id, polygonal_lasso::ID]); let info = crate::tool_info(id).expect("catalogued"); assert_eq!((info.label, info.shortcut, info.icon), ("Enclosing Lasso Tool", None, "tool-lasso-enclosing")); assert_eq!(crate::tool_info("lasso").and_then(|t| t.shortcut), Some("Q"), "the Lasso keeps its shortcut"); @@ -132,6 +128,24 @@ mod tests { assert_eq!(crate::catalog::all_tools().filter(|t| t.id == id).count(), 1); } + /// The Polygonal Lasso Tool is in the Lasso tool's group, last, after the Enclosing Lasso, with + /// no default shortcut, listed once, and still made by its add-on. + #[test] + fn polygonal_lasso_is_in_the_lasso_group_once() { + let id = polygonal_lasso::ID; + let groups: Vec<_> = crate::TOOL_GROUPS.iter().filter(|g| g.iter().any(|t| t.id == id)).collect(); + assert_eq!(groups.len(), 1); + let ids: Vec<_> = groups[0].iter().map(|t| t.id).collect(); + assert_eq!(ids, ["lasso", enclosing_lasso::ID, id]); + let info = crate::tool_info(id).expect("catalogued"); + assert_eq!((info.label, info.shortcut, info.icon), ("Polygonal Lasso Tool", None, "dc-lasso-polygonal")); + assert_eq!(crate::tool_info("lasso").and_then(|t| t.shortcut), Some("Q"), "the Lasso keeps its shortcut"); + assert_eq!(create(id).map(|tool| tool.id()), Some(id)); + assert!(heading(id).is_none(), "not listed again under the add-on"); + assert!(!GROUPS.iter().any(|g| g.iter().any(|t| t.id == id)), "not in the add-ons' groups"); + assert_eq!(crate::catalog::all_tools().filter(|t| t.id == id).count(), 1); + } + /// The Smart Pen Tool is in the Pen tool's group, after the Pen family's own tools, with no /// default shortcut, listed once, and still made by its add-on. #[test] diff --git a/crates/tools/src/catalog.rs b/crates/tools/src/catalog.rs index eb18001b19..38a94f0b15 100644 --- a/crates/tools/src/catalog.rs +++ b/crates/tools/src/catalog.rs @@ -26,8 +26,10 @@ pub const TOOL_GROUPS: &[&[ToolInfo]] = &[ &[t("magicWand", "Magic Wand Tool", Some("Y"), "tool-magic-wand")], &[ t("lasso", "Lasso Tool", Some("Q"), "tool-lasso"), - // Enclosing Lasso's tool, kept out of `addons::GROUPS` so that `all_tools` lists it once. + // Enclosing Lasso's and Polygonal Lasso's tools, kept out of `addons::GROUPS` so that + // `all_tools` lists each once. t(crate::addons::enclosing_lasso::ID, "Enclosing Lasso Tool", None, "tool-lasso-enclosing"), + t(crate::addons::polygonal_lasso::ID, "Polygonal Lasso Tool", None, "dc-lasso-polygonal"), ], &[ t("pen", "Pen Tool", Some("P"), "tool-pen"), diff --git a/crates/ui-egui/src/edit_toolbar/tests.rs b/crates/ui-egui/src/edit_toolbar/tests.rs index 7fa23ec8dd..5db22b7eaf 100644 --- a/crates/ui-egui/src/edit_toolbar/tests.rs +++ b/crates/ui-egui/src/edit_toolbar/tests.rs @@ -172,6 +172,104 @@ fn a_saved_toolbar_without_enclosing_lasso_keeps_its_layout() { assert!(slot.is_some_and(|s| s.contains(&id)), "Reset Toolbar adds it"); } +/// The Polygonal Lasso Tool is in the Lasso tool's flyout in both toolbars, after the Enclosing +/// Lasso, once in the All Tools drawer (under Select) and in Keyboard Shortcuts' list, with no +/// shortcut; its button's tip names it; Reset Toolbar keeps it there. +#[test] +fn polygonal_lasso_is_in_the_lasso_flyout() { + let mut app = app(); + let id = vectorcraft_tools::addons::polygonal_lasso::ID; + let enclosing = vectorcraft_tools::addons::enclosing_lasso::ID; + for advanced in [false, true] { + if advanced { + app.run("window.toolbarAdvanced", json!({})).unwrap(); + } + let s = slots(&app); + let slot = slot_of(&app, "lasso").map(|i| s[i].clone()).expect("a Lasso slot"); + let lasso = slot.iter().position(|t| *t == "lasso").expect("the Lasso"); + assert_eq!(slot.get(lasso + 1..lasso + 3), Some(&[enclosing, id][..]), "advanced: {advanced}"); + assert_eq!(s.iter().filter(|ids| ids.contains(&id)).count(), 1, "advanced: {advanced}"); + } + assert_eq!(heading(id), "Select"); + assert_eq!(sections().iter().flat_map(|(_, tools)| tools.iter()).filter(|t| t.id == id).count(), 1, "listed once in the drawer"); + // Keyboard Shortcuts lists the window's commands once it has drawn a frame. + let ctx = ctx(); + settle(&mut app, &ctx, 0.0); + let rows = app.run("shortcuts.list", json!({"query": id})).unwrap(); + let rows: Vec<_> = rows.as_array().unwrap().iter().filter(|r| r["id"] == format!("tool:{id}")).collect(); + assert_eq!(rows.len(), 1, "listed once in Keyboard Shortcuts"); + assert_eq!((&rows[0]["group"], &rows[0]["shortcut"]), (&json!("Tools"), &Value::Null)); + let info = vectorcraft_tools::tool_info(id).expect("catalogued"); + assert_eq!((info.label, info.shortcut), ("Polygonal Lasso Tool", None)); + assert_eq!(crate::toolbar::tip(&ctx, info), "Polygonal Lasso Tool"); + app.run("tool.select", json!({"tool": id})).unwrap(); + assert_eq!(app.session.tool_id(), id); + let shown = slot_of(&app, id).map(|i| crate::toolbar::shown_tool(&app, &slots(&app)[i])); + assert_eq!(shown, Some(id), "the slot's button shows the tool once chosen"); + app.run("toolbar.removeTool", json!({"tool": id})).unwrap(); + assert!(slot_of(&app, id).is_none(), "it can be taken out"); + app.run("toolbar.addTool", json!({"tool": id})).unwrap(); + assert!(slot_of(&app, id).is_some(), "the drawer adds it back"); + app.run("toolbar.removeTool", json!({"tool": id})).unwrap(); + app.run("toolbar.reset", json!({})).unwrap(); + let after_reset = slot_of(&app, "lasso").map(|i| slots(&app)[i].contains(&id)); + assert_eq!(after_reset, Some(true), "Reset Toolbar puts it back"); +} + +/// A toolbar edited and saved before the Polygonal Lasso Tool joined the Lasso group keeps its +/// saved layout, in both toolbars: the tool stays in the drawer until Reset Toolbar or a drag adds +/// it, and a toolbar that already had it in a slot of its own keeps it there, once. +#[test] +fn a_saved_toolbar_without_polygonal_lasso_keeps_its_layout() { + let id = vectorcraft_tools::addons::polygonal_lasso::ID; + let enclosing = vectorcraft_tools::addons::enclosing_lasso::ID; + let category = |slots: &[&[&str]]| ToolbarCategory { + name: Some("Select".into()), + slots: slots.iter().map(|s| s.iter().map(|t| t.to_string()).collect()).collect(), + }; + for advanced in [false, true] { + let edits = |saved: Vec| { + if advanced { ToolbarEdits { basic: None, advanced: Some(saved) } } else { ToolbarEdits { basic: Some(saved), advanced: None } } + }; + let mut app = app(); + if advanced { + app.run("window.toolbarAdvanced", json!({})).unwrap(); + } + app.ui.toolbar_edits = edits(vec![category(&[&["lasso", enclosing]])]); + app.ui = std::mem::take(&mut app.ui).sanitized(); + assert_eq!(slots(&app), [["lasso", enclosing]], "advanced: {advanced}"); + assert!(slot_of(&app, id).is_none(), "advanced: {advanced}"); + app.run("toolbar.reset", json!({})).unwrap(); + let slot = slot_of(&app, "lasso").map(|i| slots(&app)[i].clone()); + assert!(slot.is_some_and(|s| s.contains(&id)), "Reset Toolbar adds it; advanced: {advanced}"); + app.ui.toolbar_edits = edits(vec![category(&[&["lasso", enclosing], &[id]])]); + app.ui = std::mem::take(&mut app.ui).sanitized(); + assert_eq!(slots(&app), [vec!["lasso", enclosing], vec![id]], "advanced: {advanced}"); + } +} + +/// The Lasso group torn off the Tools panel shows the Polygonal Lasso Tool after the Enclosing +/// Lasso, in both toolbars, and shows it again after Reset Toolbar puts it back. +#[test] +fn a_torn_off_lasso_group_shows_polygonal_lasso() { + let id = vectorcraft_tools::addons::polygonal_lasso::ID; + let enclosing = vectorcraft_tools::addons::enclosing_lasso::ID; + for advanced in [false, true] { + let mut app = app(); + if advanced { + app.run("window.toolbarAdvanced", json!({})).unwrap(); + } + app.run("window.floatTools", json!({"tool": "lasso", "floating": true})).unwrap(); + let lasso = |app: &VectorcraftApp| crate::toolbar::strips(app, None).into_iter().find(|g| g.first() == Some(&"lasso")); + let after_lasso = |app: &VectorcraftApp| lasso(app).and_then(|g| g.get(1..3).map(|s| s.to_vec())); + assert_eq!(after_lasso(&app), Some(vec![enclosing, id]), "advanced: {advanced}"); + app.run("toolbar.removeTool", json!({"tool": id})).unwrap(); + assert!(lasso(&app).is_some_and(|g| !g.contains(&id)), "advanced: {advanced}"); + app.run("toolbar.reset", json!({})).unwrap(); + assert_eq!(after_lasso(&app), Some(vec![enclosing, id]), "advanced: {advanced}"); + } +} + /// The Smart Pen Tool is in the Pen tool's flyout in both toolbars, after the Pen family's own /// tools, once in the All Tools drawer (under Draw) and in Keyboard Shortcuts' list, with no /// shortcut; its button's tip names it; Reset Toolbar keeps it there. @@ -277,7 +375,7 @@ fn the_commands_add_move_remove_and_reset_tools() { // Before the first slot, moved out of its group. app.run("toolbar.addTool", json!({"tool": "magicWand", "slot": 0})).unwrap(); assert_eq!(&slots(&app)[..3], [&["magicWand"][..], &["selection"], &["directSelection", "groupSelection"]]); - assert_eq!(slots(&app)[3], ["lasso", "enclosingLasso"]); + assert_eq!(slots(&app)[3], ["lasso", "enclosingLasso", "polygonalLasso"]); // After a slot, and into a group (last), moved out of the Rectangle group. app.run("toolbar.addTool", json!({"tool": "slice", "slot": 1, "place": "after"})).unwrap(); assert_eq!(slots(&app)[2], ["slice"]); @@ -522,15 +620,14 @@ fn a_saved_toolbar_without_trim_at_crossings_keeps_its_layout() { } /// The add-ons' tools are in neither toolbar as they ship (the Trim at Crossings Tool, in the -/// Scissors tool's group, the Enclosing Lasso Tool, in the Lasso tool's group, and the Smart Pen -/// Tool, in the Pen tool's group, aside): the drawer lists them under their add-on's heading, and -/// they can be added from there. +/// Scissors tool's group, the Enclosing Lasso and Polygonal Lasso tools, in the Lasso tool's +/// group, and the Smart Pen Tool, in the Pen tool's group, aside): the drawer lists them under +/// their add-on's heading, and they can be added from there. #[test] fn addon_tools_are_in_the_drawer_not_the_toolbars() { let mut app = app(); let contour = vectorcraft_tools::addons::contour::ID; let box3d = vectorcraft_tools::addons::box3d::ID; - let polygonal = vectorcraft_tools::addons::polygonal_lasso::ID; let addon: Vec<&str> = vectorcraft_tools::addons::GROUPS.iter().flat_map(|g| g.iter().map(|t| t.id)).collect(); assert_eq!( addon, @@ -544,8 +641,7 @@ fn addon_tools_are_in_the_drawer_not_the_toolbars() { "sharedEdge", "tangentCircle", contour, - box3d, - polygonal + box3d ] ); for advanced in [false, true] { @@ -560,8 +656,7 @@ fn addon_tools_are_in_the_drawer_not_the_toolbars() { assert_eq!(listed("extendPath"), Some(("Path Precision Tools", addon[..8].to_vec()))); assert_eq!(listed(contour), Some(("Contour", vec![contour]))); assert_eq!(listed(box3d), Some(("3D Box", vec![box3d]))); - assert_eq!(listed(polygonal), Some(("Polygonal Lasso", vec![polygonal]))); - for tool in ["extendPath", contour, box3d, polygonal] { + for tool in ["extendPath", contour, box3d] { app.run("toolbar.addTool", json!({"tool": tool})).unwrap(); assert!(slot_of(&app, tool).is_some(), "{tool}"); } diff --git a/crates/ui-egui/src/toolbar.rs b/crates/ui-egui/src/toolbar.rs index 0e371fb351..d90dbd96c0 100644 --- a/crates/ui-egui/src/toolbar.rs +++ b/crates/ui-egui/src/toolbar.rs @@ -127,7 +127,7 @@ pub(crate) fn strips_follow(app: &mut VectorcraftApp, owner: &Owner, shown: bool /// The Basic toolbar: (category, slots); each slot is a flyout group (first = default). pub const BASIC: &[(&str, &[&[&str]])] = &[ - ("Select", &[&["selection"], &["directSelection", "groupSelection"], &["lasso", "enclosingLasso", "magicWand"]]), + ("Select", &[&["selection"], &["directSelection", "groupSelection"], &["lasso", "enclosingLasso", "polygonalLasso", "magicWand"]]), ( "Shapes", &[ diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index 8b74776cbd..d8c68a6d31 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -1492,7 +1492,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur With members of a group selected whole (with Group Selection, for example), a Selection-tool press on one of them keeps the selection: the pointer shows Move, a drag moves only the selected members (Shift constrains it), a Shift-click takes the pressed member out of the selection, and Alt over it shows no Distance Guides. A press on a member that is not selected, or only partly selected, still selects the outermost group ([Select objects](https://helpx.adobe.com/illustrator/desktop/manage-objects/select-objects/select-objects.html)). Test: `select::tests::a_press_on_a_selected_member_of_a_group_moves_the_selected_members`. The Lasso picks anchor points only on art a click can pick, and the Add Anchor Point, Delete Anchor Point, Anchor Point and Scissors tools pick anchor points and segments only on the selected paths and on art a click can pick: not on a Shaper Group's original shapes outside Construction mode, and in isolation mode only inside the isolated group or object. Smart Guides and Snap to Point do not snap to a Shaper Group's original shapes, and the reference point of the transform tools snaps to one only when it is selected, or under the pointer in Construction mode. Enclosing Lasso provides whole-object enclosure selection under Object › Plug-ins. Its tool is also in the Lasso tool's group in both shipped toolbars, after the Lasso, and All Tools lists it there, under Select; a toolbar edited before it joined keeps its saved layout until Reset Toolbar (tests `enclosing_lasso_is_in_the_lasso_flyout` and `a_saved_toolbar_without_enclosing_lasso_keeps_its_layout` in `edit_toolbar::tests`, `enclosing_lasso_is_in_the_lasso_group_once` in `addons::tests`, `headless_backend_methods` in `vectorcraft-mcp`). It has no default shortcut. It follows path curves and keeps partially enclosed objects out, including objects crossing a concave part of the loop. Ordinary group members can be selected individually; compound paths remain whole. This is a VectorCraft addition; scores and estimates are unchanged. - Polygonal Lasso selects anchor points (and gradient mesh points) inside a straight-edged loop, with the Lasso's rule for which points are inside, and is listed under Object › Plug-ins and under its own heading in All Tools. It has no default shortcut or Basic toolbar slot. Each click sets a vertex. A double-click, Enter or a click on the first vertex closes the loop, Backspace or Delete removes the last vertex, Escape drops the loop, and Shift keeps the next segment to 45° steps. Shift or Alt held at the first click adds to or subtracts from the selection. This is a VectorCraft addition; scores and estimates are unchanged. + Polygonal Lasso selects anchor points (and gradient mesh points) inside a straight-edged loop, with the Lasso's rule for which points are inside, and is listed under Object › Plug-ins. Its tool is also in the Lasso tool's group in both shipped toolbars, after the Enclosing Lasso, and All Tools lists it there, under Select; a toolbar edited before it joined keeps its saved layout until Reset Toolbar (tests `polygonal_lasso_is_in_the_lasso_flyout`, `a_saved_toolbar_without_polygonal_lasso_keeps_its_layout` and `a_torn_off_lasso_group_shows_polygonal_lasso` in `edit_toolbar::tests`, `polygonal_lasso_is_in_the_lasso_group_once` in `addons::tests`, `headless_lists_the_lasso_group` in `vectorcraft-mcp`). It has no default shortcut. Each click sets a vertex. A double-click, Enter or a click on the first vertex closes the loop, Backspace or Delete removes the last vertex, Escape drops the loop, and Shift keeps the next segment to 45° steps. Shift or Alt held at the first click adds to or subtracts from the selection. This is a VectorCraft addition; scores and estimates are unchanged. Select by Artboards (Object › Plug-ins › Selection Tools, a VectorCraft addition: #5525, #5548, #5549) selects the objects overlapping, fully inside or fully outside one or more chosen artboards (`addon.select.byArtboards {artboards, relation}`). Overlapping is All on Active Artboard's test, shared as `select::on_artboard`; Fully inside means within one artboard, edges included; Fully outside means on none. It looks at what Select All takes, so hidden, locked and locked-artboard art stays out. Its dialog lists each artboard's number, name and size in the document's units, filters by name, chooses rows with click, Shift-click and Cmd/Ctrl-click, and fits a row's artboard in the window on double-click (`view.goToArtboard`). Tests: `crates/engine/src/cmd/addons/select/tests.rs`, `crates/ui-egui/src/addons/select/tests.rs`, `crates/engine/tests/command_sweep.rs`. Select by Link Status (Object › Plug-ins › Selection Tools and the Links panel menu, a VectorCraft addition: #5526) selects the image objects and placed documents whose link is linked (its file found unchanged), embedded, missing or modified, as `links.list` reports it (`addon.select.byLinkStatus {status, ids?, add?, zoom?}`); Select Linked, Embedded, Missing and Modified are off when no image has that status and add to the selection with Shift. Objects that are hidden or locked, inside a hidden or locked object or layer, on a template layer, on a locked artboard, or outside the isolated group are left out (the `select::is_selectable` test) and returned with the reason, and the status bar says how many, in plural forms of every catalog. Select by Link Status… lists each image and placed document with its name, status and format, searches by name, filters by status, picks rows with checkboxes and All / None, and zooms to the selection with the existing Zoom to Selection (`addon.arrange.zoomSelection`). Missing-link markers on the canvas are #5547. Tests: `crates/engine/src/cmd/addons/select/tests.rs` (`by_link_status`), `crates/ui-egui/src/addons/select/link_status/tests.rs`, `crates/engine/tests/command_sweep.rs`. The Links panel provides an item right-click context menu on link rows offering Relink…, Go To Link, Update Link, Edit Original, Show in Folder, Separator, and Embed Image / Unembed…. Right-clicking an unselected row selects that row first; right-clicking a row that is already part of a multi-selection preserves the multi-selection. Tests: `panels::tests_links::right_click_context_menu_in_links_panel`.