d3 / d3-shape

Graphical primitives for visualization, such as lines and areas.
https://d3js.org/d3-shape
ISC License
2.47k stars 304 forks source link

selected rounding of corners in d3.arc() #166

Open wyhleonard opened 3 years ago

wyhleonard commented 3 years ago

I add two attributes of d3.arc(): selectedCorner_s and selectedCorner_e, which control the rounding process of corners at start-angle or end-angle. The default value of these attributes is 1. Users can close the rounding process of corners at start-angle(end-angle) by setting the value of selectedCorner_s(selectedCorner_e) as 0.

code result