[svgwg] Incorrect sweep-flag in circle/ellipse equivalent path (#765)

dalboris has just created a new issue for https://github.com/w3c/svgwg:

== Incorrect sweep-flag in circle/ellipse equivalent path ==
The equivalent path of a circle (similar for ellipses) is currently defined as:

https://svgwg.org/svg2-draft/shapes.html#CircleElement

> The rx and ry parameters to the arc commands are both equal to the used value of the r property, after conversion to local user units, while the x-axis-rotation, the large-arc-flag, and the **sweep-flag are all set to zero**. The coordinates are computed as follows, where cx, cy, and r are the used values of the equivalent properties, converted to user units:

```
A move-to command to the point cx+r,cy;
arc to cx,cy+r;
arc to cx-r,cy;
arc to cx,cy-r;
arc with a segment-completing close path operation.
```

I think this is incorrect, that is, the sweep-flag should be 1, not 0, like it is for rounded rects for example (both are traced clockwise).

With the current equivalent paths, I get this for some of the examples in the spec, showing that:
- Path-data elliptical arcs are drawn correctly
- Rounded rects using 1 as sweep-flag are rendered correctly
- Circles and ellipses using 0 as sweep-flag are rendered incorrectly

![image](https://user-images.githubusercontent.com/4809739/70555790-07de6280-1b80-11ea-8e4a-d03897329fe6.png)


Please view or discuss this issue at https://github.com/w3c/svgwg/issues/765 using your GitHub account

Received on Tuesday, 10 December 2019 18:11:12 UTC