Add rotate case as well

This commit is contained in:
DD 2018-06-27 16:47:19 -04:00
parent 4c72f3f89e
commit 011a353c08

View file

@ -375,7 +375,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;