Add startOffset support

This commit is contained in:
Horcrux
2017-01-10 12:30:48 +08:00
parent 84ea887a06
commit b15d0791e0
11 changed files with 99 additions and 65 deletions
+2 -1
View File
@@ -99,7 +99,8 @@ const TextAttributes = merge({
}, RenderableAttributes);
const TextPathAttributes = merge({
href: true
href: true,
startOffset: true
}, RenderableAttributes);
const TSpanAttibutes = merge({
+3 -1
View File
@@ -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
}