native prop tranform => trans,fix defs typo

This commit is contained in:
Horcrux
2016-07-25 11:15:39 +08:00
parent c846c59ed6
commit a2598a5591
15 changed files with 74 additions and 23 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ const ViewBoxAttributes = {
const NodeAttributes = {
name: true,
transform: {
trans: {
diff: arrayDiffer
},
opacity: true,
+2 -2
View File
@@ -46,11 +46,11 @@ export default function(props, options = {stroke: true, transform: true, fill: t
}
if (options.transform) {
extractedProps.transform = extractTransform(props);
extractedProps.trans = extractTransform(props);
} else if (props.transform) {
// todo: add support for transform prop like this:
// {scale: 1.5, translate: '10 10'}
extractedProps.transform = props.transform;
//extractedProps.transform = props.transform;
}
if (options.responder) {