mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 01:00:43 +00:00
Add startOffset support
This commit is contained in:
+2
-1
@@ -99,7 +99,8 @@ const TextAttributes = merge({
|
||||
}, RenderableAttributes);
|
||||
|
||||
const TextPathAttributes = merge({
|
||||
href: true
|
||||
href: true,
|
||||
startOffset: true
|
||||
}, RenderableAttributes);
|
||||
|
||||
const TSpanAttibutes = merge({
|
||||
|
||||
@@ -88,7 +88,8 @@ export default function(props, container) {
|
||||
y,
|
||||
dx,
|
||||
dy,
|
||||
textAnchor
|
||||
textAnchor,
|
||||
startOffset
|
||||
} = props;
|
||||
|
||||
|
||||
@@ -121,6 +122,7 @@ export default function(props, container) {
|
||||
content,
|
||||
deltaX,
|
||||
deltaY,
|
||||
startOffset: (startOffset || 0).toString(),
|
||||
positionX: _.isNil(x) ? null : x,
|
||||
positionY: _.isNil(y) ? null : y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user