mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
Implement prop extraction for side and alignmentBaseline. Cleanup extractText, fix linting.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user