From 3005b592165e6a030233d68a5706102bbb8bf3be Mon Sep 17 00:00:00 2001 From: Mikael Sand Date: Sat, 29 Jul 2017 15:29:43 +0300 Subject: [PATCH] Add midLine prop/attr to TextPath.js --- elements/TextPath.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elements/TextPath.js b/elements/TextPath.js index a286ac1d..ee82729d 100644 --- a/elements/TextPath.js +++ b/elements/TextPath.js @@ -15,7 +15,7 @@ export default class extends Shape { static propTypes = textPathProps; render() { - let {children, href, startOffset, method, spacing, side, alignmentBaseline, ...props} = this.props; + let {children, href, startOffset, method, spacing, side, alignmentBaseline, midLine, ...props} = this.props; if (href) { let matched = href.match(idExpReg); @@ -23,7 +23,7 @@ export default class extends Shape { href = matched[1]; startOffset = `${startOffset || 0}`; return