complete basic shapes(ios)

This commit is contained in:
Horcrux
2016-04-26 19:10:57 +08:00
parent d7a9e418ae
commit 24dcc83a80
25 changed files with 540 additions and 256 deletions

View File

@@ -75,7 +75,7 @@ function extractFont(font) {
};
}
const alignments = {
const anchord = {
right: 1,
center: 2,
left: 0
@@ -83,7 +83,7 @@ const alignments = {
export default function(props) {
return {
alignment: alignments[props.textAnchor] || 0,
alignment: anchord[props.textAnchor] || 0,
frame: extractFontAndLines(
props,
childrenAsString(props.children)