W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] Canvas - Exception on arc with negative radius

From: Martin Atkins <mart@degeneration.co.uk>
Date: Fri, 27 Mar 2009 13:44:12 -0700
Message-ID: <49CD3A9C.8000103@degeneration.co.uk>
Dirk Schulze wrote:
> Another example is: http://blahbleh.com/molecools.php?name=1,2%
> 20dimethylcyclopropane
> If you turn the molecule a bit, the circles disappear with a
> INDEX_SIZE_ERR exception.
> Isn't it better to just ignore the arc and go on with the drawing, like
> Firefox does? And perhaps the same for arcTo?

Assuming that we desire a "do what I mean" approach, it seems sane to me 
for a negative radius to be normalized to a positive radius with the 
same magnitude.

It goes from being the distance from the center to the edge to being the 
distance from the center to the "opposite" edge.

You might also like to visualize this as drawing the "back" of the circle.
Received on Friday, 27 March 2009 13:44:12 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:10 UTC