Skip to content

Fix initial termination starting point, behavior on curves#32

Merged
gpeairs merged 1 commit intomainfrom
gp/fix-terminate
Mar 5, 2025
Merged

Fix initial termination starting point, behavior on curves#32
gpeairs merged 1 commit intomainfrom
gp/fix-terminate

Conversation

@gpeairs
Copy link
Copy Markdown
Member

@gpeairs gpeairs commented Mar 5, 2025

  • terminate! with initial=true was written to append the termination before the path, but because pa.p0 was not being updated, it was being reconciled such that the rest of the Path was shifted forward. This bug did not affect usage as long as relative positioning (e.g., relative to p0(pa) or hooks) was used.
  • terminate! on a curve with rounding would previously eat some of the turn angle then go straight by the rounding length plus termination gap. This caused the final direction to change (or caused the entire path to rotate slightly when initial=true). Now it finishes out the underlying curve and only goes straight by the termination gap afterward, keeping the final direction the same. (This is the second item in New Path styles #22.) The termination is still drawn as though straight, allowing rounding to be represented with exact circular arcs.

@gpeairs gpeairs merged commit 3faad83 into main Mar 5, 2025
@gpeairs gpeairs mentioned this pull request Feb 27, 2025
3 tasks
@gpeairs gpeairs deleted the gp/fix-terminate branch March 13, 2025 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant