Re: [svgwg] Add circular arc path command 'R'. (#767)

Here's a jsfiddle that will replace any relative `r` command (only 1 replace per 'r' command) with the same functional `a` commands. It might still have some bugs but certainly does allow some basic testing. 

http://jsfiddle.net/p6eLs4w1/

M50,100 r50,50 50,0 r50,-50 50,0 r50,50 50,0
![r-example1](https://user-images.githubusercontent.com/3302478/70924195-fd87f280-1fdd-11ea-8a1e-b8ef1378c99a.png)

M50,100r50,50 0,0 M150,100r50,50 0,0
![r-example2](https://user-images.githubusercontent.com/3302478/70924333-2c9e6400-1fde-11ea-902b-11b8d01eddff.png)

The conversion to 'a' arcs, is done in two arcs so that large-arc flag isn't as needed (always set to zero currently) and this conversion will put the markers in the correct locations. 

One can imagine manipulating a straight line into an arc by pulling arc control point that will be on the arc. 

-- 
GitHub Notification of comment by tatarize
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/767#issuecomment-566138083 using your GitHub account

Received on Monday, 16 December 2019 16:33:49 UTC