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

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
}