summaryrefslogtreecommitdiffstats
path: root/src/elements/Text.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-08 16:06:39 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-08 16:06:39 +0100
commit8c81fb7c2e6e9842570d27a84b1a1c600c82c16b (patch)
treeb5de85d617f5761db7cdfdce70d8a0f7cc059aba /src/elements/Text.js
parentf7f6c4b801172ce119d4ea9a650c543670474784 (diff)
downloadsvg.js-8c81fb7c2e6e9842570d27a84b1a1c600c82c16b.tar.gz
svg.js-8c81fb7c2e6e9842570d27a84b1a1c600c82c16b.zip
added possibility to pass attribues into a constructor like: `new SVG.Rect({width:100})`
Diffstat (limited to 'src/elements/Text.js')
-rw-r--r--src/elements/Text.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/Text.js b/src/elements/Text.js
index f221004..bd27428 100644
--- a/src/elements/Text.js
+++ b/src/elements/Text.js
@@ -8,7 +8,7 @@ import * as textable from '../modules/core/textable.js'
export default class Text extends Shape {
// Initialize node
constructor (node) {
- super(nodeOrNew('text', node), Text)
+ super(nodeOrNew('text', node), node)
this.dom.leading = new SVGNumber(1.3) // store leading value for rebuilding
this._rebuild = true // enable automatic updating of dy values