mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
parent
7a63afc769
commit
cecd95e039
1 changed files with 7 additions and 5 deletions
|
@ -171,12 +171,14 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
case 'm':
|
||||
case 'l':
|
||||
var move = lower === 'm';
|
||||
for (var j = 0; j < length; j += 2)
|
||||
this[!j && move ? 'moveTo' : 'lineTo'](
|
||||
current = getPoint(j));
|
||||
for (var j = 0; j < length; j += 2) {
|
||||
this[move ? 'moveTo' : 'lineTo'](current = getPoint(j));
|
||||
if (move) {
|
||||
start = current;
|
||||
move = false;
|
||||
}
|
||||
}
|
||||
control = current;
|
||||
if (move)
|
||||
start = current;
|
||||
break;
|
||||
case 'h':
|
||||
case 'v':
|
||||
|
|
Loading…
Reference in a new issue