mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix handling of multiple h / v commands in path data.
This commit is contained in:
parent
b649240696
commit
13a567bcaa
1 changed files with 3 additions and 2 deletions
|
@ -95,9 +95,10 @@ var PathItem = this.PathItem = Item.extend(/** @lends PathItem# */{
|
|||
case 'h':
|
||||
case 'v':
|
||||
var coord = lower == 'h' ? 'x' : 'y';
|
||||
for (var j = 0; j < coords.length; j++)
|
||||
for (var j = 0; j < coords.length; j++) {
|
||||
getCoord(j, coord, true);
|
||||
this.lineTo(current);
|
||||
this.lineTo(current);
|
||||
}
|
||||
break;
|
||||
case 'c':
|
||||
control = getPoint(2);
|
||||
|
|
Loading…
Reference in a new issue