diff options
author | wout <wout@impinc.co.uk> | 2014-06-25 15:27:31 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-06-25 15:27:31 +0200 |
commit | 859cf9fce39ea36ae40af8b828d4683b79746dee (patch) | |
tree | 2995d43addc248c70901f0c3231a7399c32aa7b1 /README.md | |
parent | 566407cb328263f1bf155401015da5f269d3dcb7 (diff) | |
download | svg.js-859cf9fce39ea36ae40af8b828d4683b79746dee.tar.gz svg.js-859cf9fce39ea36ae40af8b828d4683b79746dee.zip |
Added more versatility to adopter
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -486,7 +486,7 @@ Just adding one tspan is also possible: text.tspan(' on a train...').fill('#f06') ``` -__`returns`: `SVG.TSpan`__ +__`returns`: `SVG.Tspan`__ ### plain() If the content of the element doesn't need any stying or multiple lines, it might be sufficient to just add some plain text: @@ -585,10 +585,10 @@ text.on('rebuild', function() { }) ``` -## TSpan +## Tspan The tspan elements are only available inside text elements or inside other tspan elements. In svg.js they have a class of their own: -_Javascript inheritance stack: `SVG.TSpan` < `SVG.Shape` < `SVG.Element`_ +_Javascript inheritance stack: `SVG.Tspan` < `SVG.Shape` < `SVG.Element`_ ### text() Update the content of the tspan. This can be done by either passing a string: @@ -621,7 +621,7 @@ Add a nested tspan: tspan.tspan('I am a child of my parent').fill('#f06') ``` -__`returns`: `SVG.TSpan`__ +__`returns`: `SVG.Tspan`__ ### plain() Just adds some plain text: |