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

@@ -21,19 +21,19 @@ class SymbolExample extends Component{
</Symbol>
<Use
href="#symbol"
href="url(#symbol)"
x="0"
y="0"
/>
<Use
href="#symbol"
href="url(#symbol)"
x="0"
y="50"
width="75"
height="38"
/>
<Use
href="#symbol"
href="url(#symbol)"
x="0"
y="100"
width="50"
@@ -53,14 +53,14 @@ const icon = <Svg
</Symbol>
<Use
href="#symbol"
href="url(#symbol)"
x="0"
y="0"
width="20"
height="10"
/>
<Use
href="#symbol"
href="url(#symbol)"
x="0"
y="12"
width="20"