Closed rybaczewa closed 5 years ago
Correct. Please see the CanvasPathMethods specification:
Would it make sense to add an additional method that captures the capabilities of the SVG elliptical arc command?
No. This interface is specified by the CanvasPathMethods API.
Currently, neiher
path.arc
norpath.arcTo
allow to draw elliptical arcs - only circular. Single radius is passed and used for bothrx
andry
parameters.https://github.com/d3/d3-path/blob/fb809cd12e1122ed2fd6df72d2017592f1dc4451/src/path.js#L118-L120
It's possible to draw first, but not the second arc: https://jsfiddle.net/qd1ph9y0/5/