sacuba / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
0 stars 0 forks source link

ctx.arc() with a 2*PI angle won't draw anything #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to draw a circle clockWise, sometimes it won't draw as the delta 
between the start point and the end point is very small.
2.
3.

What is the expected output? What do you see instead?
A complete circle but nothing appears

Change line 689 :

    if (xStart == xEnd && !aClockwise) {

to

    if ((abs(xStart - xEnd) < 10e-8) && !aClockwise) {

Original issue reported on code.google.com by fabien.menager on 19 Oct 2009 at 2:59

GoogleCodeExporter commented 9 years ago
There is a similar problem drawing arcs in a counter-clockwise direction. 
Here's a patch for that problem.

See also http://code.google.com/p/flotr/issues/detail?id=106#c3 for a practical 
example of the code failing.

Original comment by peter....@solide-ict.nl on 21 Jul 2010 at 9:57

Attachments:

GoogleCodeExporter commented 9 years ago
There's a bit extra info in this Flot bug: 
http://code.google.com/p/flot/issues/detail?id=365

Original comment by olau%iol...@gtempaccount.com on 4 Apr 2011 at 11:53