fixed call to createSVGRect in getIntersectionList

createSVGRect() does not have parameters, they must be set on the object after

https://developer.mozilla.org/en/docs/Web/API/SVGSVGElement
This commit is contained in:
Simon Brown
2016-09-14 18:44:09 +01:00
committed by GitHub
parent 2246052141
commit b9549e1d43

View File

@@ -565,7 +565,11 @@ var getIntersectionList = this.getIntersectionList = function(rect) {
}
rubberBBox = bb;
} else {
rubberBBox = svgcontent.createSVGRect(rect.x, rect.y, rect.width, rect.height);
rubberBBox = svgcontent.createSVGRect();
rubberBBox.x = rect.x;
rubberBBox.y = rect.y;
rubberBBox.width = rect.width;
rubberBBox.height = rect.height;
}
var resultList = null;