mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add rotate case as well
This commit is contained in:
parent
8d0fecbb1b
commit
bf63bf223c
1 changed files with 2 additions and 1 deletions
|
@ -336,7 +336,8 @@ new function() {
|
|||
new Matrix(v[0], v[1], v[2], v[3], v[4], v[5]));
|
||||
break;
|
||||
case 'rotate':
|
||||
matrix.rotate(v[0], v[1], v[2]);
|
||||
var v2 = (typeof v[1] === 'number' && typeof v[2] !== 'number') ? 0 : v[2];
|
||||
matrix.rotate(v[0], v[1], v2);
|
||||
break;
|
||||
case 'translate':
|
||||
var v1 = (typeof v[1] === 'number') ? v[1] : 0;
|
||||
|
|
Loading…
Reference in a new issue