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

Add typings for segments #56

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Conversation

Klaasvaak
Copy link

Added all the missing path commands. I used the names from https://www.w3.org/TR/SVG/paths.html#PathData

Maybe in a next PR these types could be exported as well. That might be useful

@puzrin
Copy link
Member

puzrin commented Dec 21, 2021

https://github.com/fontello/svgpath/blob/master/lib/path_parse.js#L4

I don't see declaration for R/r

@puzrin puzrin merged commit 076628d into fontello:master Dec 21, 2021
@Klaasvaak
Copy link
Author

@puzrin I'm not aware of any R/r command in path. Do you have a reference to some documentation? I also don't see it being mentioned here: https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths

@puzrin
Copy link
Member

puzrin commented Dec 22, 2021

That was taken from ancient ages of [raphael(https://github.com/DmitryBaranovskiy/raphael)], when ie6 was alive.

To be honest, i'm not sure how actual is that. Probably should be dropped here too.

@mondeja
Copy link

mondeja commented Dec 22, 2021

Hi guys. R/r commands are Catmull-Rom curve commands defined in the SVG v2 spec.

@puzrin
Copy link
Member

puzrin commented Dec 22, 2021

@mondeja thank you for the reference. Seems spec has also B/b (bearing) command. I never seen any of those in real world.

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.

3 participants