-
Notifications
You must be signed in to change notification settings - Fork 85
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
Circular arc command as part of low level api? #29
Comments
I think the right place to put such an API - which is certainly welcome! - would be the Mid Level API. The Low Level one intentionally mimcs the SVG spec literally, and I'd rather not deviate. One could have instead a Shape called CircleArc or something like that, with your parameters, that draws a circular arc. If you want to submit a PR, you could create a file like To check that everything is fine and run the tests, you first need to install grunt (
Hope that helps! |
Great thanks for the info. I'll do it if I have time! On Mon, Nov 2, 2015, 12:59 AM Andrea Ferretti [email protected]
|
Just in case, now there is no need for grunt anymore. Just |
Hey @andreaferretti, I think it would be really nice if users could define a circular arc with a slightly simplified api:
.arcCircular(xCenter, yCenter, r, sAngle, eAngle, counterclockwise)
This api mirrors the canvas arc api and I think it is a lot more straightforward for this particular use case.
http://www.w3schools.com/tags/canvas_arc.asp
What do you think?
I'd be happy to try to implement it myself, but am a little confused as to whether I should be modifying the path.coffee file or the one under the node dir?
Thanks for the great library!
The text was updated successfully, but these errors were encountered: