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

Remove the need for PathBuilder #267

Merged
merged 3 commits into from
Dec 14, 2024
Merged

Remove the need for PathBuilder #267

merged 3 commits into from
Dec 14, 2024

Conversation

Nilirad
Copy link
Owner

@Nilirad Nilirad commented Dec 14, 2024

This change allows ShapeBuilder to build custom paths. PathBuilder has been removed. Paths can be constructed with ShapePath, and then be feeded to ShapeBuilder.

Since normal shapes uses Lyon's type NoAttribute<BuilderImpl> while paths use WithSvg<BuilderImpl>, I made Geometry generic over these.

This is quite a rudimentary solution
that involves too many traits.
A minimal solution is needed to simplify the code.

Fix test
`ShapePath` is a `Geometry` that can be fed to `ShapeBuilder`.
This makes `PathBuilder` redundant.
@Nilirad Nilirad merged commit 0dacb38 into master Dec 14, 2024
3 checks passed
@Nilirad Nilirad deleted the better-paths branch December 14, 2024 16:48
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