mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 08:26:28 +00:00
Merge pull request #8052 from dotCooCoo/feat/pathfinder-mixed-shape-mode
Pathfinder: Shape Mode buttons show a question mark for selected members in different modes
This commit is contained in:
@@ -66,9 +66,14 @@ pub(crate) fn operands(app: &VectorcraftApp) -> usize {
|
||||
}
|
||||
|
||||
/// An operation's button, lit while `selected`, greyed out and saying what it needs unless the
|
||||
/// selection has `min` operands.
|
||||
fn button(ui: &mut Ui, icon: &str, tip: &str, selected: bool, n: usize, min: usize) -> bool {
|
||||
/// selection has `min` operands. While `mixed` it carries a question mark, and screen readers
|
||||
/// report its pressed state as mixed.
|
||||
fn button(ui: &mut Ui, icon: &str, tip: &str, selected: bool, mixed: bool, n: usize, min: usize) -> bool {
|
||||
let resp = widgets::icon_button_enabled(ui, icon, tip, selected, n >= min, 34.0);
|
||||
if mixed {
|
||||
mixed_mark(ui, resp.rect);
|
||||
ui.ctx().accesskit_node_builder(resp.id, |node| node.set_toggled(egui::accesskit::Toggled::Mixed));
|
||||
}
|
||||
if n < min {
|
||||
resp.on_hover_text(tl!("Select two or more objects, or a group"));
|
||||
return false;
|
||||
@@ -76,6 +81,18 @@ fn button(ui: &mut Ui, icon: &str, tip: &str, selected: bool, n: usize, min: usi
|
||||
resp.clicked()
|
||||
}
|
||||
|
||||
/// The question mark in the lower right corner of a button `rect`, on a disc of the panel color so
|
||||
/// it reads over the icon.
|
||||
fn mixed_mark(ui: &Ui, rect: egui::Rect) {
|
||||
let t = crate::theme::Tokens::get(ui.ctx());
|
||||
let side = (rect.width() * 0.42).round();
|
||||
let mark = egui::Rect::from_min_size(rect.right_bottom() - egui::vec2(side, side), egui::vec2(side, side));
|
||||
let painter = ui.painter().with_clip_rect(rect);
|
||||
painter.circle_filled(mark.center(), side * 0.5, t.panel);
|
||||
painter.circle_stroke(mark.center(), side * 0.5, egui::Stroke::new(1.0, t.border));
|
||||
painter.text(mark.center(), egui::Align2::CENTER_CENTER, "?", egui::FontId::proportional(side * 0.8), t.text_strong);
|
||||
}
|
||||
|
||||
/// A Shape Mode button clicked: Alt makes a compound shape of the selection in `mode`; with
|
||||
/// members of compound shapes selected they take `mode`; otherwise operation `op` runs. With the
|
||||
/// Compound Shapes add-on's setting on, a click on the selection (not on members) makes the
|
||||
@@ -98,9 +115,10 @@ fn shape_mode(app: &mut VectorcraftApp, ui: &Ui, op: &str, mode: ShapeMode, memb
|
||||
pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
let n = operands(app);
|
||||
// The modes of the compound-shape members selected: their Shape Mode button lights when they
|
||||
// share one.
|
||||
// share one, and every Shape Mode button shows a question mark when they differ.
|
||||
let modes = vectorcraft_engine::cmd::selected_member_modes(&app.session);
|
||||
let shared = modes.first().copied().filter(|m| modes.iter().all(|x| x == m));
|
||||
let mixed = !modes.is_empty() && shared.is_none();
|
||||
let expand = crate::menus::enabled(app, "object.compoundShape.expand");
|
||||
widgets::subheader(ui, tl!("Shape Modes:"));
|
||||
ui.horizontal(|ui| {
|
||||
@@ -108,7 +126,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
// Selected members can always take a mode.
|
||||
let count = if modes.is_empty() { n } else { n.max(2) };
|
||||
for ((icon, tip, op), mode) in SHAPE_MODES.into_iter().zip(ShapeMode::ALL) {
|
||||
if button(ui, icon, tip, shared == Some(mode), count, 2) {
|
||||
if button(ui, icon, tip, shared == Some(mode), mixed, count, 2) {
|
||||
shape_mode(app, ui, op, mode, !modes.is_empty());
|
||||
}
|
||||
}
|
||||
@@ -122,7 +140,7 @@ pub fn show(app: &mut VectorcraftApp, ui: &mut Ui) {
|
||||
ui.spacing_mut().item_spacing.x = 5.0;
|
||||
for (icon, tip, op) in PATHFINDERS {
|
||||
let min = minimum_operands(op);
|
||||
if button(ui, icon, tip, false, n, min) {
|
||||
if button(ui, icon, tip, false, false, n, min) {
|
||||
run(app, op);
|
||||
}
|
||||
}
|
||||
@@ -241,6 +259,111 @@ mod tests {
|
||||
assert_ne!(role_and_state(&panel, "Unite").1, Some(Toggled::True));
|
||||
}
|
||||
|
||||
/// Two overlapping squares, the first at (`x`, 10), made into a Unite compound shape, which is
|
||||
/// left selected; returns the ids of its two members.
|
||||
fn compound_of_two(app: &mut VectorcraftApp, x: f64) -> [Value; 2] {
|
||||
select_two_squares(app, x);
|
||||
let ids = app.session.active().unwrap().selection.objects.clone();
|
||||
app.run("object.compoundShape.make", json!({"mode": "add"})).unwrap();
|
||||
[json!(ids[0].0), json!(ids[1].0)]
|
||||
}
|
||||
|
||||
/// Selects `members` and gives them `mode`.
|
||||
fn set_mode(app: &mut VectorcraftApp, members: &[&Value], mode: &str) {
|
||||
app.run("select.set", json!({"ids": members})).unwrap();
|
||||
app.run("object.compoundShape.setMode", json!({"mode": mode})).unwrap();
|
||||
}
|
||||
|
||||
/// How many question marks the panel draws.
|
||||
fn question_marks(app: &mut VectorcraftApp) -> usize {
|
||||
let ctx = egui::Context::default();
|
||||
crate::theme::install_fonts(&ctx);
|
||||
let screen = egui::Rect::from_min_size(egui::Pos2::ZERO, egui::vec2(300.0, 200.0));
|
||||
let mut out = ctx.run_ui(egui::RawInput { screen_rect: Some(screen), ..Default::default() }, |ui| show(app, ui));
|
||||
out.textures_delta.clear();
|
||||
let texts = crate::tests_removeanchors::shapes_text(&out.shapes.iter().map(|c| c.shape.clone()).collect::<Vec<_>>());
|
||||
texts.iter().filter(|(t, _)| t == "?").count()
|
||||
}
|
||||
|
||||
/// The pressed state screen readers get for each Shape Mode button.
|
||||
fn shape_mode_states(app: &mut VectorcraftApp) -> Vec<Option<egui::accesskit::Toggled>> {
|
||||
let panel = tree(|ui| show(app, ui));
|
||||
SHAPE_MODES.into_iter().map(|(_, label, _)| role_and_state(&panel, label).1).collect()
|
||||
}
|
||||
|
||||
/// Selected members in different modes put a question mark on each of the four Shape Mode
|
||||
/// buttons, which stay enabled and which screen readers report as mixed; the Pathfinder buttons
|
||||
/// are left as they are. A click gives every selected member the clicked mode in one undo step,
|
||||
/// and the marks go.
|
||||
#[test]
|
||||
fn shape_modes_show_a_question_mark_while_the_selected_members_modes_differ() {
|
||||
use egui::accesskit::Toggled;
|
||||
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 300, "height": 200})).unwrap();
|
||||
let [a, b] = compound_of_two(&mut app, 10.0);
|
||||
set_mode(&mut app, &[&b], "subtract");
|
||||
app.run("select.set", json!({"ids": [a, b]})).unwrap();
|
||||
assert_eq!(shape_mode_states(&mut app), [Some(Toggled::Mixed); 4]);
|
||||
let panel = tree(|ui| show(&mut app, ui));
|
||||
for (_, label, _) in SHAPE_MODES {
|
||||
assert!(!named(&panel, label).is_disabled(), "{label}");
|
||||
}
|
||||
for (_, label, _) in PATHFINDERS {
|
||||
assert_eq!(named(&panel, label).toggled(), None, "{label}");
|
||||
}
|
||||
assert_eq!(question_marks(&mut app), 4);
|
||||
|
||||
let undo = app.session.doc().unwrap().history.undo.len();
|
||||
click_button(&mut app, "Intersect");
|
||||
assert_eq!(vectorcraft_engine::cmd::selected_member_modes(&app.session), [ShapeMode::Intersect; 2]);
|
||||
assert_eq!(app.session.doc().unwrap().history.undo.len(), undo + 1, "one undo step");
|
||||
assert_eq!(question_marks(&mut app), 0);
|
||||
assert_eq!(shape_mode_states(&mut app), [None, None, Some(Toggled::True), None]);
|
||||
}
|
||||
|
||||
/// Members of two compound shapes are compared together: in different modes the buttons carry
|
||||
/// question marks, and in one mode that mode's button is lit.
|
||||
#[test]
|
||||
fn members_of_two_compound_shapes_are_compared_together() {
|
||||
use egui::accesskit::Toggled;
|
||||
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), Default::default());
|
||||
app.run("file.new", json!({"width": 300, "height": 200})).unwrap();
|
||||
let [a, _] = compound_of_two(&mut app, 10.0);
|
||||
let [c, _] = compound_of_two(&mut app, 110.0);
|
||||
set_mode(&mut app, &[&c], "exclude");
|
||||
app.run("select.set", json!({"ids": [a, c]})).unwrap();
|
||||
assert_eq!(question_marks(&mut app), 4);
|
||||
assert_eq!(shape_mode_states(&mut app), [Some(Toggled::Mixed); 4]);
|
||||
set_mode(&mut app, &[&a, &c], "exclude");
|
||||
assert_eq!(question_marks(&mut app), 0);
|
||||
assert_eq!(shape_mode_states(&mut app), [None, None, None, Some(Toggled::True)]);
|
||||
}
|
||||
|
||||
/// No question marks without members in different modes: nothing selected, plain objects, a
|
||||
/// whole compound shape, one member, members sharing a mode, and a whole compound shape with
|
||||
/// one of its members.
|
||||
#[test]
|
||||
fn shape_modes_show_no_question_mark_without_mixed_members() {
|
||||
use egui::accesskit::Toggled;
|
||||
let mut app = two_squares();
|
||||
assert_eq!((question_marks(&mut app), shape_mode_states(&mut app)), (0, vec![None; 4]), "two plain objects");
|
||||
let [a, b] = compound_of_two(&mut app, 110.0);
|
||||
let shape = app.session.active().unwrap().selection.objects[0];
|
||||
set_mode(&mut app, &[&b], "subtract");
|
||||
app.run("select.set", json!({"ids": [shape.0]})).unwrap();
|
||||
assert_eq!((question_marks(&mut app), shape_mode_states(&mut app)), (0, vec![None; 4]), "the whole compound shape");
|
||||
app.run("select.set", json!({"ids": [b]})).unwrap();
|
||||
let lit = vec![None, Some(Toggled::True), None, None];
|
||||
assert_eq!((question_marks(&mut app), shape_mode_states(&mut app)), (0, lit.clone()), "one member");
|
||||
set_mode(&mut app, &[&a, &b], "subtract");
|
||||
assert_eq!((question_marks(&mut app), shape_mode_states(&mut app)), (0, lit.clone()), "two members in one mode");
|
||||
set_mode(&mut app, &[&a], "add");
|
||||
app.run("select.set", json!({"ids": [shape.0, b]})).unwrap();
|
||||
assert_eq!((question_marks(&mut app), shape_mode_states(&mut app)), (0, lit), "the shape and one member");
|
||||
app.run("select.none", json!({})).unwrap();
|
||||
assert_eq!(question_marks(&mut app), 0, "nothing selected");
|
||||
}
|
||||
|
||||
/// The panel menu's Trap… is enabled for two objects and opens the Trap options; OK adds the
|
||||
/// trap above them as one selected group in one undo step.
|
||||
#[test]
|
||||
|
||||
+1
-1
@@ -474,7 +474,7 @@ macOS cursor delivery (#2292) is narrowed to a native host adapter using the exi
|
||||
- **Implemented and tested (2026-11-15):** Swatches list rows and thumbnail cells have item context menus with Swatch Options…, Duplicate Swatch and Delete Swatch. Right-click selects the target without painting art; actions use that item's name and are disabled for reserved or missing swatches. All 39 Swatches tests pass, covering all five views, command dispatch, selection and Undo; the regression fails with the menu hooks removed. Rendered list and thumbnail menus were inspected. Full workspace CI passed on Linux/WSL on the merged branch (all 13 gates), including the test-helper correction for the upstream compile error tracked in #7727; native Windows full CI has two unchanged engine-test failures. Other panels without context menus remain in G12; estimate unchanged.
|
||||
|
||||
- **Done (2026-11-14):** Symbols panel context menu: right-click on a symbol in thumbnail or list view displays a context menu with Place Symbol Instance, Edit Symbol, Duplicate Symbol, Delete Symbol, Break Link to Symbol (enabled when canvas selection includes instances of the symbol), and Select All Instances, selecting the symbol if unselected. Estimate unchanged.
|
||||
- **Done (2026-10-29, #4522):** the Pathfinder panel menu's Make, Release and Expand Compound Shape, which were dimmed placeholders, and the panel's Expand button act on live compound shapes ([Create compound shapes with Pathfinder](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/create-compound-shapes-with-pathfinder.html)): Alt-clicking a Shape Mode makes one in that mode, a Shape Mode sets the mode of the members selected, and the compound shape draws, exports and saves as the area its members' modes make (`object.compoundShape.*`, `crates/engine/src/tests/compound_shape.rs`). Left: blends, envelopes and warps as members, question marks on the buttons for mixed member modes, clicks that hit the area rather than the members. Estimate unchanged.
|
||||
- **Done (2026-10-29, #4522):** the Pathfinder panel menu's Make, Release and Expand Compound Shape, which were dimmed placeholders, and the panel's Expand button act on live compound shapes ([Create compound shapes with Pathfinder](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/create-compound-shapes-with-pathfinder.html)): Alt-clicking a Shape Mode makes one in that mode, a Shape Mode sets the mode of the members selected, and the compound shape draws, exports and saves as the area its members' modes make (`object.compoundShape.*`, `crates/engine/src/tests/compound_shape.rs`). Left: blends, envelopes and warps as members, clicks that hit the area rather than the members. Estimate unchanged.
|
||||
- **Done (2026-10-25, #3426):** Pathfinder panel › Pathfinder Options… ([Pathfinder panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/pathfinder-panel-overview.html)): Precision (0.001–10 pt; results are refit to within it and pieces thinner than it are dropped), Remove Redundant Points and Divide and Outline Will Remove Unpainted Artwork (pieces of objects with no fill), kept in the preferences (`object.pathfinder.options`, group `pathfinder`) and used by every Shape Mode and Pathfinder button and Repeat; the page gives no defaults, so ours (0.01 pt, both off) keep the earlier results byte for byte. Trap is left as it was. Estimate unchanged.
|
||||
- **Done (2026-10-25):** Artboards panel › Delete Empty Artboards ([Delete artboards](https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/add-edit-artboards/delete-artboards.html), [artboard context menu](https://helpx.adobe.com/illustrator/desktop/create-manage-artboards/organize-manage-artboards/use-artboard-context-menu.html)): `artboard.deleteEmpty` deletes every unlocked artboard with no artwork, with its guides, in one undo step, and keeps artboard 1 when every artboard is empty and none is locked; an artboard is empty when no object (hidden, locked and template art included; guides not) has visual bounds that meet or touch it, a group counting by its members and a clip group or clipping layer by its members inside the clip (our reading of "no artwork"; the pages give no finer rule). The Artboard tool's canvas context menu lists it too. Estimate unchanged.
|
||||
- **Done (2026-10-25):** the Transform panel menu's Transform Object Only, Transform Pattern Only and Transform Both
|
||||
|
||||
@@ -1433,7 +1433,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
|
||||
- Pathfinder Options ([Pathfinder panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/pathfinder-panel-overview.html)): the panel menu's Pathfinder Options… sets Precision (0.001–10 pt: results refit to within it, thinner pieces dropped), Remove Redundant Points and Divide and Outline Will Remove Unpainted Artwork (`object.pathfinder.options`, kept in the preferences) for every Shape Mode and Pathfinder operation; the defaults keep the earlier output (`pathops` `precision_drops_pieces_thinner_than_it`, engine `tests_pathops` Pathfinder Options tests, `panels::pathfinder` dialog test).
|
||||
- Pathfinder on clip groups (#8093): a clip group's members take part in the Shape Modes and Pathfinder buttons (`object.pathfinder.*`) only where its clipping path shows them, so Divide cuts the visible art along the mask and the hidden art goes; nested clip groups cut by each mask, a member the mask hides gives no piece, a cutting line's hidden part cuts nothing, a selected object the masks hide altogether counts as an empty shape where that changes the result (Intersect, Minus Front, Minus Back, Crop), and the clipping path adds no piece of its own (the public documentation doesn't say what Pathfinder does with masked art; our choice, asked on the issue). A cutting line is clipped by sampling, so a part of the mask much narrower than the mask itself can be missed. Make Compound Shape, Trap and the Pathfinder effects still take the members whole. Tests: `crates/engine/src/tests/pathfinder_clip.rs`.
|
||||
- Pathfinder › Trap ([trapping](https://helpx.adobe.com/illustrator/using/trapping.html), [Pathfinder panel](https://helpx.adobe.com/illustrator/using/pathfinder-panel-overview.html)): the Pathfinder panel menu's Trap… (`object.pathfinder.trap`) and Effect › Pathfinder › Trap… (`pathfinder.trap`, live on groups) add, where two objects' visible areas of different solid colours meet, a strip of the darker one's area along the edge, filled with the lighter colour at the Tint Reduction percentage and set to overprint (Reverse Traps: the darker colour spreads instead, but not a rich black); Thickness 0.01–5000 pt across vertical edges, Height/Width scales it across horizontal ones, Traps with Process Color paints a swatch colour's trap with its CMYK equivalent; the effect also has Precision and Remove Redundant Points. The panel's Trap is one undo step and groups the traps above the topmost selected object, selected; with no adjoining edges of different colours it says so and changes nothing. Tests: `crates/pathops/src/trap.rs`, `crates/effects/src/trap.rs`, `group::tests::trap_effect_adds_an_overprinting_strip_above_the_members`, `crates/engine/src/tests/trap.rs`, `panels::pathfinder::tests::trap_opens_its_options_and_ok_traps_the_selection`.
|
||||
- Compound shapes ([Create compound shapes with Pathfinder](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/create-compound-shapes-with-pathfinder.html), [Pathfinder panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/pathfinder-panel-overview.html)): the Pathfinder panel menu's Make Compound Shape (every member in Add) and Alt-clicking a Shape Mode (every member in that mode) make the two or more selected paths, compound paths, groups, compound shapes or type a live compound shape (`object.compoundShape.make`): a group whose members each keep a shape mode and stay editable, drawn, printed and exported (SVG, PDF and the rest through the baked document) as the area the modes make from the backmost member up, open paths closed, painted with its own appearance, taken from the topmost member not subtracting. With members selected (Direct Selection, Layers panel, isolation mode) a Shape Mode button sets theirs (`object.compoundShape.setMode`) and is lit for the mode they share; paint given to a member goes to the compound shape. Release Compound Shape gives the members back as they were (`object.compoundShape.release`); Expand Compound Shape and the panel's Expand button turn it into the path or compound path of its area (`object.compoundShape.expand`). Shape Modes and Pathfinders take a compound shape as its area. Saved files keep it (`compound_shape`, `shape_mode`; an unknown mode reads as Add). Blends, envelopes and objects with a warp or another geometry effect are members as they draw (a blend's steps, an envelope's distorted art, the warped outline), and the area follows an edit of the blend, envelope or warp; Release gives them back as they were. Tests: `crates/engine/src/tests/compound_shape.rs`, `group::tests::compound_shapes_draw_the_area_their_shape_modes_make`, `group::tests::nested_compound_shapes_take_part_as_their_area`, `panels::pathfinder::tests::compound_shape_items_follow_the_selection`, the `CompoundShape` op of the property-test strategies. Not yet: the question marks on mixed member modes, hit-testing by the area (a click hits the members).
|
||||
- Compound shapes ([Create compound shapes with Pathfinder](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/create-compound-shapes-with-pathfinder.html), [Pathfinder panel overview](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/pathfinder-panel-overview.html)): the Pathfinder panel menu's Make Compound Shape (every member in Add) and Alt-clicking a Shape Mode (every member in that mode) make the two or more selected paths, compound paths, groups, compound shapes or type a live compound shape (`object.compoundShape.make`): a group whose members each keep a shape mode and stay editable, drawn, printed and exported (SVG, PDF and the rest through the baked document) as the area the modes make from the backmost member up, open paths closed, painted with its own appearance, taken from the topmost member not subtracting. With members selected (Direct Selection, Layers panel, isolation mode) a Shape Mode button sets theirs (`object.compoundShape.setMode`) and is lit for the mode they share; with members in different modes selected, each of the four Shape Mode buttons carries a question mark and screen readers report it as mixed, and a click gives every selected member that mode in one undo step ([the help page](https://web.archive.org/web/20210601162814/https://helpx.adobe.com/pdf/illustrator_reference.pdf#page=368)); paint given to a member goes to the compound shape. Release Compound Shape gives the members back as they were (`object.compoundShape.release`); Expand Compound Shape and the panel's Expand button turn it into the path or compound path of its area (`object.compoundShape.expand`). Shape Modes and Pathfinders take a compound shape as its area. Saved files keep it (`compound_shape`, `shape_mode`; an unknown mode reads as Add). Blends, envelopes and objects with a warp or another geometry effect are members as they draw (a blend's steps, an envelope's distorted art, the warped outline), and the area follows an edit of the blend, envelope or warp; Release gives them back as they were. Tests: `crates/engine/src/tests/compound_shape.rs`, `group::tests::compound_shapes_draw_the_area_their_shape_modes_make`, `group::tests::nested_compound_shapes_take_part_as_their_area`, `panels::pathfinder::tests::compound_shape_items_follow_the_selection`, `panels::pathfinder::tests::shape_modes_show_a_question_mark_while_the_selected_members_modes_differ`, `panels::pathfinder::tests::members_of_two_compound_shapes_are_compared_together`, `panels::pathfinder::tests::shape_modes_show_no_question_mark_without_mixed_members`, the `CompoundShape` op of the property-test strategies. Not yet: hit-testing by the area (a click hits the members).
|
||||
- Effect › Path › Outline Object has no options. Type that carries it is drawn, exported (PDF and SVG as paths, with no font) and expanded as its glyph outlines while it stays editable, and the effects after it reshape those outlines. Paths and images draw as before. With Use Preview Bounds on, type is measured by its glyph outlines. Public reference: [Summary of effects](https://web.archive.org/web/20210901011839/https://helpx.adobe.com/illustrator/using/summary-effects.html) (archived copy).
|
||||
- A butt cap ends a stroke square at the end of an open path, and a projecting cap extends half the weight past it. VectorCraft's visual box of a butt-capped stroke on an open path does not grow past the path's ends: a straight segment's box comes from the corners of its stroked rectangle, and a curve's box comes from the stroke at its ends and where its tangent is square to an axis. Round and projecting caps and arrowheads still reach past an end. A curve that bends more tightly than half the weight can measure a little larger than it paints, and a butt-dashed path whose first or last dash is a gap is measured to the path's ends. Public reference: [Apply stroke on an object](https://helpx.adobe.com/illustrator/using/stroke-object.html).
|
||||
- A butt-capped curve whose first or last handle sits on its end point also stops at that end: a straight 50 pt curve with a 2 pt stroke and its first handle on its start point measures 50 pt tall, not 51 pt (doc `reach::tests::a_butt_curve_with_a_handle_on_its_end_point_stops_near_that_end`).
|
||||
|
||||
+1
-1
@@ -449,7 +449,7 @@ next unit in the order a right-click on a ruler lists them, from Feet back to Po
|
||||
| Pathfinder Divide: an open cutting line splits a filled path | done | #1307; straight, crossed, bent and curved cutters, holes and frontmost appearance regression-tested; native automation: independent piece movement, one Undo/Redo, saved-document round trip and window capture; existing bounded-map fallback remains |
|
||||
| Pathfinder panel › Pathfinder Options…: Precision, Remove Redundant Points, Divide and Outline Will Remove Unpainted Artwork | done | #3426; `object.pathfinder.options`, kept in the preferences; defaults (0.01 pt, both off) keep the earlier results; [spec](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/pathfinder-panel-overview.html) |
|
||||
| Cmd/Ctrl+4 repeats the last successful Shape Mode or Pathfinder operation on the selection | done | Panel operations, direct `object.pathfinder.*` commands and `command.batch` steps (Actions playback) set history; `action.batch`, Trap, compound-shape edits and live effects do not. Repeat uses current Pathfinder Options; [key spec](https://web.archive.org/web/20260726060015/https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html), [menu spec](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/pathfinder-panel-overview.html) |
|
||||
| Pathfinder panel: compound shapes (Make, Release and Expand Compound Shape in the panel menu, Alt-click a Shape Mode, a Shape Mode for selected members, the Expand button) | partial | #4522; `object.compoundShape.make`/`setMode`/`release`/`expand`; members stay editable, the area draws, exports and saves; the button of the members' shared mode is lit; blends, envelopes and warped objects are members as they draw; [spec](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/create-compound-shapes-with-pathfinder.html); missing: question marks for mixed modes, hit-testing by the area |
|
||||
| Pathfinder panel: compound shapes (Make, Release and Expand Compound Shape in the panel menu, Alt-click a Shape Mode, a Shape Mode for selected members, the Expand button) | partial | #4522; `object.compoundShape.make`/`setMode`/`release`/`expand`; members stay editable, the area draws, exports and saves; the button of the members' shared mode is lit, and members in different modes put a question mark on each Shape Mode button; blends, envelopes and warped objects are members as they draw; [spec](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/create-compound-shapes-with-pathfinder.html); missing: hit-testing by the area |
|
||||
| Canvas context menu | done | Right-clicking type opens the canvas menu, with Bullets and Numbering and Spelling. Artboard rows, library groups and items, the rulers and floating toolbar grips have menus too. Gaps: guide and blend spine rows have no menu, and other panels have none |
|
||||
| Layers panel row context menu | done | Right-clicking a layer/group/object row shows a context menu with Options…, Duplicate, Delete, Lock/Hide Others, Locate Object, and Collect for Export — matching standard desktop layer panel conventions. |
|
||||
| Swatches item context menu (G12) | done | List and thumbnail items offer Swatch Options…, Duplicate Swatch and Delete Swatch for the clicked item. Right-click selects without applying paint; reserved/missing items disable actions. All 39 Swatches tests pass, including all five views and Undo; the regression fails with the menu hooks removed. Rendered headless menus inspected. Full workspace CI passed on Linux/WSL on the merged branch (all 13 gates), including the test-helper correction for the upstream compile error tracked in #7727; native Windows full CI has two unchanged engine-test failures. |
|
||||
|
||||
Reference in New Issue
Block a user