mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[transform] add perspective property to transform
Summary:  cc @sahrens @vjeux Closes https://github.com/facebook/react-native/pull/1980 Github Author: chirag04 <jain_chirag04@yahoo.com>
This commit is contained in:
@@ -65,6 +65,10 @@ var MatrixMath = {
|
||||
matrixCommand[10] = z;
|
||||
},
|
||||
|
||||
reusePerspectiveCommand: function(matrixCommand, p) {
|
||||
matrixCommand[11] = -1 / p;
|
||||
},
|
||||
|
||||
reuseScaleXCommand(matrixCommand, factor) {
|
||||
matrixCommand[0] = factor;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user