summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-06-25 15:27:31 +0200
committerwout <wout@impinc.co.uk>2014-06-25 15:27:31 +0200
commit859cf9fce39ea36ae40af8b828d4683b79746dee (patch)
tree2995d43addc248c70901f0c3231a7399c32aa7b1 /README.md
parent566407cb328263f1bf155401015da5f269d3dcb7 (diff)
downloadsvg.js-859cf9fce39ea36ae40af8b828d4683b79746dee.tar.gz
svg.js-859cf9fce39ea36ae40af8b828d4683b79746dee.zip
Added more versatility to adopter
Diffstat (limited to 'README.md')
-rwxr-xr-xREADME.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 4f99cc1..195c600 100755
--- a/README.md
+++ b/README.md
@@ -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: