mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
For SVG import, If second argument is missing in translate, assume that it's zero. Currently it assumes that y matches x if y is missing.
This commit is contained in:
parent
8792d142b3
commit
8d0fecbb1b
1 changed files with 2 additions and 1 deletions
|
@ -339,7 +339,8 @@ new function() {
|
|||
matrix.rotate(v[0], v[1], v[2]);
|
||||
break;
|
||||
case 'translate':
|
||||
matrix.translate(v[0], v[1]);
|
||||
var v1 = (typeof v[1] === 'number') ? v[1] : 0;
|
||||
matrix.translate(v[0], v1);
|
||||
break;
|
||||
case 'scale':
|
||||
matrix.scale(v);
|
||||
|
|
Loading…
Reference in a new issue