Don't draw invisible circles
This commit is contained in:
parent
bb2aac32e0
commit
8d5249760a
@ -926,6 +926,10 @@
|
||||
* Arc command!
|
||||
*/
|
||||
ctx.prototype.arc = function(x, y, radius, startAngle, endAngle, counterClockwise) {
|
||||
// in canvas no circle is drawn if no angle is provided.
|
||||
if (startAngle === endAngle) {
|
||||
return;
|
||||
}
|
||||
startAngle = startAngle % (2*Math.PI);
|
||||
endAngle = endAngle % (2*Math.PI);
|
||||
if(startAngle === endAngle) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user