add some android support

add path for Text
add stroke pattern
add text dashed and fix dasharray bug
This commit is contained in:
Horcrux
2016-04-23 14:44:48 +08:00
parent d990eaa472
commit 05faac3cf1
8 changed files with 148 additions and 111 deletions

View File

@@ -82,15 +82,12 @@ const alignments = {
};
export default function(props) {
let textPath = props.path ? new SerializablePath(props.path).toJSON() : null;
var textFrame = extractFontAndLines(
props,
childrenAsString(props.children)
);
return {
alignment: alignments[props.textAnchor] || 0,
frame: textFrame,
path: textPath
frame: extractFontAndLines(
props,
childrenAsString(props.children)
),
path: props.path ? new SerializablePath(props.path).toJSON() : undefined
}
}