Implement TextPath: first step (iOS)

This commit is contained in:
Horcrux
2017-01-09 20:16:20 +08:00
parent 1d06134719
commit 52dfe21074
18 changed files with 223 additions and 106 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ function parseDelta(delta) {
}
}
export default function(props, isText) {
export default function(props, container) {
const {
x,
y,
@@ -95,7 +95,7 @@ export default function(props, isText) {
let content = null;
if (typeof children === 'string') {
if (isText) {
if (container) {
children = <TSpan>{children}</TSpan>;
} else {
content = children;