mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 23:31:18 +00:00
The new General preference Interpolate Control Points When Moving Anchors (`interpolateControlPoints`, off by default) is the default of a new `interpolate` param of path.moveAnchors (a Direct Selection drag), object.nudge (the arrow keys), object.move, object.transform and object.transformAgain. With it on, a move of direct-selected anchors re-maps both handles of each segment with one moved end by the turn, uniform scale and move that take the segment's old ends to its new ends, so a segment between two corner anchors keeps its shape relative to its ends. - A segment with both ends moved, or with its ends at the same place before or after the move, moves as it does with the preference off. Only an exact move re-maps handles; any other transform of the anchors is applied as before. - A smooth anchor keeps its handles in line: its re-mapped handle takes the new length and stays in line with the other handle, and when both of its handles were re-mapped they point along the mean of their directions. When the two point the same way, both move with the anchor as with the preference off. - The value used joins the command's journal entry and Transform Again's options, so a replay or a repeat re-maps the handles alike whatever the preference is then. A non-boolean value is an error. - A retracted handle stays retracted, each drag or nudge is one undo step, and a nudge of 0 still records none. Align and Distribute, and the anchors of type paths and area type frames, move as before. With the preference off, moves give the same result as before. The label has a row in every catalog. The hook in transform_anchors follows the patch bentschener attached to #7832; the handle math differs. Fixes #7832 Docs: docs/mcp.md, docs/target-app-parity.md. Co-authored-by: bentschener <353895224+bentschener@users.noreply.github.com>