Skip to content

emit closeSubpath for closed paths whose last element is cubic or quadratic (issue #97)#124

Draft
hfutrell wants to merge 1 commit into
0.16.4-releasefrom
worktree-issue97
Draft

emit closeSubpath for closed paths whose last element is cubic or quadratic (issue #97)#124
hfutrell wants to merge 1 commit into
0.16.4-releasefrom
worktree-issue97

Conversation

@hfutrell

Copy link
Copy Markdown
Owner

Closes issue #97

Previously, apply(info:function:) and appendPath(to:) only emitted a closeSubpath element when the last curve in a closed PathComponent was a line segment. Closed paths made entirely of cubics (e.g. circles) were silently left open in their CGPath representation, causing incorrect stroke rendering (caps instead of joins at the closure point) and a broken round-trip through CGPath.

…dratic

Previously, apply(info:function:) and appendPath(to:) only emitted a
closeSubpath element when the last curve in a closed PathComponent was a
line segment. Closed paths made entirely of cubics (e.g. circles) were
silently left open in their CGPath representation, causing incorrect
stroke rendering (caps instead of joins at the closure point) and a
broken round-trip through CGPath.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hfutrell hfutrell changed the title emit closeSubpath for closed paths whose last element is cubic or qua… emit closeSubpath for closed paths whose last element is cubic or quadratic (issue #97) Apr 25, 2026
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