### Fixed
- `clear()` does not remove the parser in svg documents anymore
+- `len` not declared in FX module, making it a global variable
+- `bbox` not declared in SVG.Box.transform
## [2.5.1](https://github.com/svgdotjs/svg.js/releases/tag/2.5.1) - 2017-03-27
this.y = y
this.width = width
this.height = height
-
}
// add center, right, bottom...
- fullBox(this)
+ fullBox(this)
}
, extend: {
// Merge rect box with another, return a new instance
}
, transform: function(m) {
- var xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, p
+ var xMin = Infinity, xMax = -Infinity, yMin = Infinity, yMax = -Infinity, p, bbox
var pts = [
new SVG.Point(this.x, this.y),
topParent = topParent.parentNode
}
if (topParent != document) throw new Exception('Element not in the dom')
- } else {
+ } else {
// the element is NOT in the dom, throw error
if(!document.documentElement.contains(element.node)) throw new Exception('Element not in the dom')
}