Max Graey
b850af7a39
fix skew transformation
Summary:
Motivation:
fix #11884 issue
I will try in short to explain what was wrong.
Let's look to transformation's matrix for **skewY** for example.
| cos(a) | sin(a) | 0 | 0 |
|:------:|:------:|:------:|:-----:|
| 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| tx | ty | tz | 1 ||
Yes, this visually produce skewing transform but it slightly incorrect. This way affects horizontal scale as well. See [this](https://github.com/facebook/react-native/issues/11884)
| 1 | tan(a) | 0 | 0 |
|:------:|:------:|:------:|:-----:|
| 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| tx | ty | tz | 1 ||
According to [www.w3.org/css-transforms](https://www.w3.org/TR/css-transforms-1/#SkewDefined)
Only one differance React Native use **row major matrix style**, so we change ```m[0][1]``` instead ```m[1][0]```.
sahrens vjeux
Closes https://github.com/facebook/react-native/pull/11992
Differential Revision: D4436470
Pulled By: vjeux
fbshipit-source-id: 1b433f04650bae7e06b5a93f521e49f11c70cce3
2017-01-19 11:28:36 -08:00
..
2016-12-07 15:28:29 -08:00
2016-12-07 15:28:29 -08:00
2017-01-19 04:43:38 -08:00
2017-01-19 10:28:28 -08:00
2016-10-11 07:43:52 -07:00
2016-12-07 17:13:42 -08:00
2017-01-19 10:28:28 -08:00
2016-11-04 05:43:44 -07:00
2016-12-22 17:13:31 -08:00
2017-01-18 09:28:26 -08:00
2017-01-19 10:28:28 -08:00
2017-01-12 17:43:42 -08:00
2016-04-21 09:28:23 -07:00
2016-11-20 17:58:29 -08:00
2016-12-07 23:58:25 -08:00
2016-12-07 15:28:29 -08:00
2017-01-17 17:13:31 -08:00
2017-01-03 13:43:35 -08:00
2016-12-18 17:13:38 -08:00
2016-11-02 12:29:15 -07:00
2016-11-25 15:28:28 -08:00
2016-08-09 06:43:46 -07:00
2016-12-07 15:28:29 -08:00
2016-12-14 10:28:33 -08:00
2017-01-05 21:59:19 -08:00
2017-01-19 10:28:28 -08:00
2017-01-19 10:28:28 -08:00
2016-12-13 18:58:34 -08:00
2017-01-09 00:43:31 -08:00
2016-12-07 15:28:29 -08:00
2016-12-19 06:28:40 -08:00
2016-11-20 17:58:29 -08:00
2017-01-19 10:28:28 -08:00
2017-01-19 10:28:28 -08:00
2016-09-01 19:43:47 -07:00
2016-12-07 15:28:29 -08:00
2016-11-23 11:28:29 -08:00
2016-12-15 22:43:30 -08:00
2017-01-11 03:58:37 -08:00
2017-01-18 12:58:44 -08:00
2017-01-19 11:28:36 -08:00
2016-11-20 17:58:29 -08:00
2016-12-07 15:28:29 -08:00
2016-12-08 07:44:37 -08:00
2016-08-02 07:58:28 -07:00
2016-11-20 17:58:29 -08:00