-
Notifications
You must be signed in to change notification settings - Fork 314
Closed
Description
I believe this fix has created a new issue: 52e069b
Everything was working perfectly fine previously, but now our code is producing errors. Consider the following code:
const radians = 5.7
const arc = d3shape.arc()
.startAngle( 0 )
.endAngle( d => {
return radians
})
.innerRadius( d => {
return 70 - ( d.index * 20 )
})
.outerRadius( d => {
return 90 - ( d.index * 20 )
})
.cornerRadius( 10 )
We can all agree that there are 2 * Math.PI = ~6.28
radians in a circle. By changing the radians
variable, this is the output of the arcs:
Metadata
Metadata
Assignees
Labels
No labels