Implement prop extraction for side and alignmentBaseline. Cleanup extractText, fix linting.

This commit is contained in:
Mikael Sand
2017-07-25 07:45:08 +03:00
parent 7cafe835df
commit c05c215496
6 changed files with 57 additions and 45 deletions

View File

@@ -51,6 +51,7 @@ export function extractFont(props) {
fontStretch,
textAnchor,
textDecoration,
alignmentBaseline,
letterSpacing,
wordSpacing,
kerning,
@@ -73,6 +74,7 @@ export function extractFont(props) {
fontFamily,
textAnchor,
textDecoration,
alignmentBaseline,
letterSpacing,
wordSpacing,
kerning,
@@ -103,13 +105,10 @@ export default function(props, container) {
y,
dx,
dy,
method,
spacing,
} = props;
let {
rotate,
children,
startOffset
children
} = props;
const positionX = parseSVGLengthList(x);
@@ -138,7 +137,6 @@ export default function(props, container) {
}
const font = extractFont(props);
startOffset = (startOffset || 0).toString();
return {
font,
@@ -149,8 +147,5 @@ export default function(props, container) {
rotate,
deltaX,
deltaY,
method,
spacing,
startOffset,
};
}