mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 17:06:13 +00:00
The Smooth tool refit every anchor in the smoothed stretch with a corner angle of 179°, so a drag across a corner rounded it off. An anchor is now kept as a corner when the path turns there by more than 57.5° (an interior angle under 122.5°) at the anchor itself, over the Smooth radius and over twice the radius on either side. On a closed path the distances are no more than an eighth of its length. The stretch is cut at each corner, each part is refit on its own, and the corner keeps its position. The threshold is the same on every pass and has no setting. A jag or bump smaller than the radius is not kept: the path does not turn by that much over twice the radius. A whole closed path with corners keeps its start anchor when the refit keeps an anchor there. A drag that changes nothing adds no anchors and no undo step. Docs: params text for path.smoothRegion, docs/mcp.md, docs/target-app-parity.md.