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

Convert c to q #1891

Closed
KTibow opened this issue Dec 19, 2023 · 0 comments · Fixed by #1892
Closed

Convert c to q #1891

KTibow opened this issue Dec 19, 2023 · 0 comments · Fixed by #1892

Comments

@KTibow
Copy link
Contributor

KTibow commented Dec 19, 2023

Is your feature request related to a problem? Please describe.
Sometimes c can be converted to q. This would be more compact.

Describe the solution you'd like
This is done by drawing two lines, one from the start to the start handle, and one from the end to the end handle. Then intersect them to find the quadratic handle.

Describe alternatives you've considered
Implement this somewhere that isn't SVGO? not sure

Additional context
Read: https://yuri.is/splines/static/QuadraticApproximation.pdf
This is not always possible and I'm not sure how to check when it is possible yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant