mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Correct default value for clockwise in arcTo().
This commit is contained in:
parent
6441a682a8
commit
f87eadecda
1 changed files with 4 additions and 2 deletions
|
@ -1717,8 +1717,10 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
from = current._point,
|
||||
through,
|
||||
point = Point.read(arguments),
|
||||
next = Base.peekValue(arguments);
|
||||
if (/boolean|undefined/.test(typeof next)) {
|
||||
// Peek at next value to see if it's clockwise,
|
||||
// with true as default value.
|
||||
next = Base.pick(Base.peekValue(arguments), true);
|
||||
if (typeof next === 'boolean') {
|
||||
// arcTo(to, clockwise)
|
||||
to = point;
|
||||
clockwise = next;
|
||||
|
|
Loading…
Reference in a new issue