@@ -91,30 +91,33 @@ class TransformProp : public DerivedProp<SkMatrix> {
91
91
m4.preConcat (scale);
92
92
} else if (key == PropNameSkewX) {
93
93
auto angle = el.getValue (key).getAsNumber ();
94
- SkM44 skewX (1 , 0 , 0 , 0 , std::tan (angle), 1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 );
94
+ SkM44 skewX (1 , 0 , 0 , 0 , std::tan (angle), 1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 ,
95
+ 1 );
95
96
m4.preConcat (skewX);
96
97
} else if (key == PropNameSkewY) {
97
98
auto angle = el.getValue (key).getAsNumber ();
98
- SkM44 skewY (1 , std::tan (angle), 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 );
99
+ SkM44 skewY (1 , std::tan (angle), 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 ,
100
+ 1 );
99
101
m4.preConcat (skewY);
100
102
} else if (key == PropNameRotate || key == PropNameRotateZ) {
101
103
auto angle = el.getValue (key).getAsNumber ();
102
104
SkM44 rotate;
103
- rotate.setRotateUnit ({ 0 , 0 , 1 }, angle);
105
+ rotate.setRotateUnit ({0 , 0 , 1 }, angle);
104
106
m4.preConcat (rotate);
105
107
} else if (key == PropNameRotateY) {
106
108
auto angle = el.getValue (key).getAsNumber ();
107
109
SkM44 rotate;
108
- rotate.setRotateUnit ({ 0 , 1 , 0 }, angle);
110
+ rotate.setRotateUnit ({0 , 1 , 0 }, angle);
109
111
m4.preConcat (rotate);
110
112
} else if (key == PropNameRotateX) {
111
113
auto angle = el.getValue (key).getAsNumber ();
112
114
SkM44 rotate;
113
- rotate.setRotateUnit ({ 1 , 0 , 0 }, angle);
115
+ rotate.setRotateUnit ({1 , 0 , 0 }, angle);
114
116
m4.preConcat (rotate);
115
117
} else if (key == PropNamePerspective) {
116
118
auto p = el.getValue (key).getAsNumber ();
117
- SkM44 perspective (1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , -1 / p, 1 );
119
+ SkM44 perspective (1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , -1 / p,
120
+ 1 );
118
121
m4.preConcat (perspective);
119
122
} else if (key == PropNameMatrix4) {
120
123
auto arr = el.getValue (key).getAsArray ();
0 commit comments