mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
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.
This commit is contained in:
1 parent
4010eb5be2
commit
ebf7ebd063
1 file changed
+3
-1
+3
-1
@@ -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`,
|
||||
|
||||
Reference in new issue
Block a user