native prop trans => matrix

This commit is contained in:
Horcrux
2016-07-27 15:54:45 +08:00
parent ce33cca89d
commit 92ea884d6f
9 changed files with 20 additions and 25 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ const ViewBoxAttributes = {
const NodeAttributes = {
name: true,
trans: {
matrix: {
diff: arrayDiffer
},
opacity: true,
+2 -2
View File
@@ -46,9 +46,9 @@ export default function(props, options = {stroke: true, transform: true, fill: t
}
if (options.transform) {
extractedProps.trans = extractTransform(props);
extractedProps.matrix = extractTransform(props);
} else if (props.transform) {
extractedProps.trans = extractTransform(props.transform);
extractedProps.matrix = extractTransform(props.transform);
}
if (options.responder) {