Add Basic support to transform props, including translate, rotate, scale, skewX, skewY and matrix. Keep in mind that the current implementation doesn't support 3-arguments rotate(a, x, y) transform yet.

This commit is contained in:
fxwan
2017-04-27 10:55:02 +08:00
committed by Mikael Sand
parent c2c96e1431
commit 1e6f36053a
3 changed files with 109 additions and 19 deletions
+1 -5
View File
@@ -24,11 +24,7 @@ export default function(props, ref) {
Object.assign(extractedProps, extractStroke(props, styleProperties));
Object.assign(extractedProps, extractFill(props, styleProperties));
if (props.transform) {
extractedProps.matrix = extractTransform(props.transform);
} else {
extractedProps.matrix = extractTransform(props);
}
extractedProps.matrix = extractTransform(props);
Object.assign(extractedProps, extractResponder(props, ref));