From ebf7ebd06316d419b720271f7576409740124b10 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Wed, 2 Dec 2026 18:58:47 -0800 Subject: [PATCH] Docs: opening a path deselects its closing segment and the ends it alone held docs/mcp.md said that setting `closed` keeps the direct selection. Setting it to false removes the closing segment, so the selection drops that segment and each of its end anchors that no other selected segment uses. The tests opening_a_path_* in crates/engine/src/tests/script_dom_paths.rs cover these cases. --- docs/mcp.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/mcp.md b/docs/mcp.md index 3673b9dfe7..0626bfcd67 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -3680,7 +3680,9 @@ through `$`: anchor unless another selected segment still uses it. When every anchor left is selected and no segment is, the path is selected as a whole. On a path aligned to the pixel grid, or in an object that is, which is written at each change, the removal can clear the direct selection. Changes that - only move points or handles, change a point's type or set `closed` keep them selected. + only move points or handles, change a point's type or set `closed` keep the remaining anchors and segments + selected. Setting `closed` to false deselects a selected closing segment and each of its two end anchors that no + other selected segment uses, even when that anchor was also selected on its own; when nothing else on the path stays selected, the path is deselected. `pathPoints` (https://ai-scripting.docsforadobe.dev/jsobjref/PathPoints/) has `length`, `[i]`, `index(i)`, `add()` and `removeAll()`, and each `PathPoint` (https://ai-scripting.docsforadobe.dev/jsobjref/PathPoint/) has `anchor`,