mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Use new Matrix#skew() in SVGImport.
This commit is contained in:
parent
1ba77f9d40
commit
4b5b62cfef
1 changed files with 1 additions and 3 deletions
|
@ -333,9 +333,7 @@ new function() {
|
|||
break;
|
||||
case 'skewX':
|
||||
case 'skewY':
|
||||
var value = Math.tan(v[0] * Math.PI / 180),
|
||||
isX = command == 'skewX';
|
||||
matrix.shear(isX ? value : 0, isX ? 0 : value);
|
||||
matrix.skew(isX ? v[0] : 0, isX ? 0 : v[0]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue