refactor text render

Support G inherit props.
Refactor text render. Text glyphs will perfectly draw along the path
This commit is contained in:
Horcrux
2016-07-22 23:49:15 +08:00
parent 63f793c54e
commit 7e13b801e1
41 changed files with 467 additions and 477 deletions

View File

@@ -18,6 +18,8 @@ class ViewBox extends Component{
y = viewbox.y;
}
console.log(viewbox);
return <G
{...this.props}
x={x}
@@ -26,6 +28,7 @@ class ViewBox extends Component{
scaleY={scaleY}
preserveAspectRatio={null}
viewbox={null}
id={null}
>
{(!scaleX || !scaleY) ? null : this.props.children}
</G>;