-
Notifications
You must be signed in to change notification settings - Fork 311
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
startPadAngle and endPadAngle #207
Comments
For anyone interested, this modif works in arc.js https://github.com/cittadhammo/d3-shape/blob/main/src/arc.js main new code:
|
Very nice! |
@curran Do you think it is worth a Pull Request ? |
Personally, I think so! This would make a nice addition to the library, and it seems to be a non-breaking change. I'm not able to merge PRs as I'm not a maintainer here, but happy to review it and provide feedback. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear All,
I would like to implement two optional parameters for the function arc().
At the moment arc().padAngle(x) create a symetric padding on each side of the arc sector. I have posted on d3 slack about my issue and I think it would be worth implement a solution at the source level. (notice the last comment on this stakOverflow post that bumped into the same problem).
Basically, I would like to modify the arc.js of d3-shape to be able to specify something like :
by default startPadAngle and endPadAngle should be equal to padAngle if not specified.
I have been giving a quick try in the source code here for exemple, but I don't understand all the mathematics... any help ?
Thanks!
The text was updated successfully, but these errors were encountered: