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 :
const arc = d3.arc()
.innerRadius(0)
.outerRadius(100)
.startAngle(0)
.endAngle(Math.PI / 2)
.startPadAngle(0.03)
.endPadAngle(0)
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!
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!