mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 17:34:07 +08:00
Add skewX and skewY to the transform style options
Summary: Closes https://github.com/facebook/react-native/pull/2652 Reviewed By: @trunkagent, @svcscm Differential Revision: D2437758 Pulled By: @vjeux
This commit is contained in:
committed by
facebook-github-bot-9
parent
8db35d492b
commit
74f467b00a
@@ -157,6 +157,16 @@ var MatrixMath = {
|
||||
return mat;
|
||||
},
|
||||
|
||||
reuseSkewXCommand: function(matrixCommand, radians) {
|
||||
matrixCommand[4] = Math.sin(radians);
|
||||
matrixCommand[5] = Math.cos(radians);
|
||||
},
|
||||
|
||||
reuseSkewYCommand: function(matrixCommand, radians) {
|
||||
matrixCommand[0] = Math.cos(radians);
|
||||
matrixCommand[1] = Math.sin(radians);
|
||||
},
|
||||
|
||||
multiplyInto: function(out, a, b) {
|
||||
var a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3],
|
||||
a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7],
|
||||
|
||||
Reference in New Issue
Block a user