diff options
author | wout <wout@impinc.co.uk> | 2014-06-17 20:17:01 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-06-17 20:17:01 +0200 |
commit | 1c50b34aba8fe613f4002cc84b41411c0f546308 (patch) | |
tree | c4ea746d29e650605eec74c17abca0127f37876f /src/text.js | |
parent | adad1d062678522e684bfe5216f63a3f400bd3c9 (diff) | |
download | svg.js-1c50b34aba8fe613f4002cc84b41411c0f546308.tar.gz svg.js-1c50b34aba8fe613f4002cc84b41411c0f546308.zip |
Added marker, symbol and dynamic referencing
Diffstat (limited to 'src/text.js')
-rwxr-xr-x | src/text.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/text.js b/src/text.js index 1d05362..1b6bd94 100755 --- a/src/text.js +++ b/src/text.js @@ -217,6 +217,10 @@ SVG.extend(SVG.Text, SVG.TSpan, { return this } + // Get length of text element +, length: function() { + return this.node.getComputedTextLength() + } }) // Register rebuild event |