From 1c50b34aba8fe613f4002cc84b41411c0f546308 Mon Sep 17 00:00:00 2001 From: wout Date: Tue, 17 Jun 2014 20:17:01 +0200 Subject: Added marker, symbol and dynamic referencing --- src/text.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/text.js') 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 -- cgit v1.2.3