### Example API Usage with SVGPathSeg Source: https://github.com/progers/pathseg/blob/master/README.md Demonstrates creating and manipulating SVG path segments using the polyfilled APIs. Modifying segment properties directly updates the 'd' attribute. ```javascript var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); var moveToSeg = path.createSVGPathSegMovetoRel(10, 10); var lineToSeg = path.createSVGPathSegLinetoRel(100, 100); path.pathSegList.appendItem(moveToSeg); path.pathSegList.appendItem(lineToSeg); console.log(path.getAttribute('d')); // m 10 10 l 100 100 moveToSeg.x += 200; moveToSeg.y += 200; console.log(path.getAttribute('d')); // m 210 210 l 100 100 ``` -------------------------------- ### Include pathseg.js in HTML Source: https://github.com/progers/pathseg/blob/master/README.md Add this script tag to your HTML or SVG files to include the polyfill. ```html ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.