mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
commit
9c9f40d05a
1 changed files with 2 additions and 1 deletions
|
@ -2323,7 +2323,8 @@ new function() { // PostScript-style drawing commands
|
||||||
var radius = Size.read(arguments);
|
var radius = Size.read(arguments);
|
||||||
// If rx = 0 or ry = 0 then this arc is treated as a
|
// If rx = 0 or ry = 0 then this arc is treated as a
|
||||||
// straight line joining the endpoints.
|
// straight line joining the endpoints.
|
||||||
if (radius.isZero())
|
if (Numerical.isZero(radius.width)
|
||||||
|
|| Numerical.isZero(radius.height))
|
||||||
return this.lineTo(to);
|
return this.lineTo(to);
|
||||||
// See for an explanation of the following calculations:
|
// See for an explanation of the following calculations:
|
||||||
// http://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes
|
// http://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes
|
||||||
|
|
Loading…
Reference in a new issue