From your SVG document, you need to call .createSVGPoint()to create a new point (initlaized at 0,0), for example:
var p = svgRoot.createSVGPoint();
SVGPoint (the interface itself) does not have a constructor, so you are currently getting an error.
source
share