The SVGPathSeg interfaces were part of SVG 1.1, but have been removed. A polyfill is available at https://github.com/progers/pathseg
Docs: https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement