- `clone()` does not add the clone to the dom anymore
- `SVG.Text.textPath()` returns only the first textpath child
- `attr()` excepts array now to get multiple values at once
+- `SVG.Text.rebuild()` now takes every font-size into account (#512)
### Fixed
- fixed a bug in clipping and masking where empty nodes persists after removal -> __TODO!__
* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
-* BUILT: Thu Nov 08 2018 12:57:03 GMT+0100 (GMT+01:00)
+* BUILT: Thu Nov 08 2018 13:49:37 GMT+0100 (GMT+01:00)
*/;
var SVG = (function () {
'use strict';
if (this._rebuild) {
var self = this;
var blankLineOffset = 0;
- var dy = this.dom.leading * new SVGNumber(this.attr('font-size'));
+ var leading = this.dom.leading;
this.each(function () {
+ var fontSize = window.getComputedStyle(this.node).getPropertyValue('font-size');
+ var dy = leading * new SVGNumber(fontSize);
+
if (this.dom.newLined) {
this.attr('x', self.attr('x'));
if (this._rebuild) {
var self = this
var blankLineOffset = 0
- var dy = this.dom.leading * new SVGNumber(this.attr('font-size'))
+ var leading = this.dom.leading
this.each(function () {
+ var fontSize = window.getComputedStyle(this.node)
+ .getPropertyValue('font-size')
+ var dy = leading * new SVGNumber(fontSize)
+
if (this.dom.newLined) {
this.attr('x', self.attr('x'))