Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing winding when out of order #34

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Fixing winding when out of order #34

merged 1 commit into from
Nov 15, 2023

Conversation

swhitty
Copy link
Owner

@swhitty swhitty commented Nov 15, 2023

This PR fixes a bug within the autowinding of subpaths for SFSymbols that I believe has always existed but was amplified by
#33.

When paths are winded, they need to be sorted into a trees to calculate which paths are "inside" other paths. The sorting code was previously relying on the outer paths being added to the tree first, the algorithm now checks if the new node should be swapped with an existing node.

Resolves #32

@swhitty swhitty merged commit d7f58f9 into main Nov 15, 2023
8 of 11 checks passed
@swhitty swhitty deleted the fix-winding branch November 15, 2023 07:29
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.

SFSymbols generation mismatch to original SVG
1 participant