{"_id":"pathseg","_rev":"9-f005ecd4c1ba9edee559baba4883b438","name":"pathseg","description":"A polyfill for SVG's SVGPathSeg and SVGPathSegList","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"pathseg","version":"1.0.0","description":"A polyfill for SVG's SVGPathSeg and SVGPathSegList","main":"pathseg.js","directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/progers/pathseg.git"},"author":{"name":"Philip Rogers"},"license":"Chromium/Apache","bugs":{"url":"https://github.com/progers/pathseg/issues"},"homepage":"https://github.com/progers/pathseg","keywords":["SVG","polyfill","pathseg","SVGPathSeg","SVGPathSegList"],"gitHead":"54de3eb1c1f63ce600b57dd892b1872e805238b6","_id":"pathseg@1.0.0","scripts":{},"_shasum":"c5ab3b2d9f8e1b51f1a551c40134086a8de106d5","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"progers","email":"progers7@gatech.edu"},"dist":{"shasum":"c5ab3b2d9f8e1b51f1a551c40134086a8de106d5","tarball":"https://registry.npmjs.org/pathseg/-/pathseg-1.0.0.tgz","integrity":"sha512-vRo1onZ/QFrTfNRbP99jYqXihyNUbUa8MLcqASHdgcKJCUmj8k0la4As2scosJZn6BU/ryks22u/H1Y6V+WMaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHuyWIsbAtDZvFa2GLFzHdUmfmKUx9zUgbEH6fJ96iHAIgemjgafLQ27y1rdbd6DjqOm5Z9m5M8egZ+YYjkWAxEc4="}]},"maintainers":[{"name":"progers","email":"progers7@gatech.edu"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/pathseg-1.0.0.tgz_1454788885644_0.819483014754951"}},"1.0.1":{"name":"pathseg","version":"1.0.1","description":"A polyfill for SVG's SVGPathSeg and SVGPathSegList","main":"pathseg.js","directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/progers/pathseg.git"},"author":{"name":"Philip Rogers"},"license":"Chromium's License","bugs":{"url":"https://github.com/progers/pathseg/issues"},"homepage":"https://github.com/progers/pathseg","keywords":["SVG","polyfill","pathseg","SVGPathSeg","SVGPathSegList"],"gitHead":"54de3eb1c1f63ce600b57dd892b1872e805238b6","_id":"pathseg@1.0.1","scripts":{},"_shasum":"d058953486e8584a0f803c06395a40f896de267c","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"progers","email":"progers7@gatech.edu"},"dist":{"shasum":"d058953486e8584a0f803c06395a40f896de267c","tarball":"https://registry.npmjs.org/pathseg/-/pathseg-1.0.1.tgz","integrity":"sha512-0WD1DetQxv/UnZM6fc+3sQ3+XFq/y32iOZFEB9477wiyHS0XiSZLwpaopCFZtXtrBAy7LiJl4biBsE2b4AXI1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCmZIM7t1JI0ui9xHJF2qqUKPz3urVB5ryDCztOTwqawIgMDacDnfNFPQE8bE3qB732LO9KS+gTZHI3EfAwagZZNs="}]},"maintainers":[{"name":"progers","email":"progers7@gatech.edu"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/pathseg-1.0.1.tgz_1454789122530_0.3204951954539865"}},"1.0.2":{"name":"pathseg","version":"1.0.2","description":"A polyfill for SVG's SVGPathSeg and SVGPathSegList","main":"pathseg.js","directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/progers/pathseg.git"},"author":{"name":"Philip Rogers"},"license":"Chromium's License","bugs":{"url":"https://github.com/progers/pathseg/issues"},"homepage":"https://github.com/progers/pathseg","keywords":["SVG","polyfill","pathseg","SVGPathSeg","SVGPathSegList"],"gitHead":"bfdb80e6a1c6cac1c6d57e74a170561dade2cbbd","_id":"pathseg@1.0.2","scripts":{},"_shasum":"148fd63f2f4d97aff8e6069ef9fe70c05376d618","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"progers","email":"progers7@gatech.edu"},"dist":{"shasum":"148fd63f2f4d97aff8e6069ef9fe70c05376d618","tarball":"https://registry.npmjs.org/pathseg/-/pathseg-1.0.2.tgz","integrity":"sha512-ByDlxAMPLnxET/FMJcK7v6w8lFGfmKYPcR5aLu80wg9xwXbk7abgx/wawQjpp3MxjqH66ildCSJUftmjIHRmuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIATNaa6wg4xpw234PDaK1tA7BoUuMuIhqap7KR5aZuXEAiAT4n1SmUlTSo2A73yEz7eVDI5zCeHNH0irPNiLOkZR6w=="}]},"maintainers":[{"name":"progers","email":"progers7@gatech.edu"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/pathseg-1.0.2.tgz_1456851813558_0.1830844844225794"}},"1.1.0":{"name":"pathseg","version":"1.1.0","description":"A polyfill for SVG's SVGPathSeg and SVGPathSegList","main":"pathseg.js","directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/progers/pathseg.git"},"author":{"name":"Philip Rogers"},"license":"Chromium's License","bugs":{"url":"https://github.com/progers/pathseg/issues"},"homepage":"https://github.com/progers/pathseg","keywords":["SVG","polyfill","pathseg","SVGPathSeg","SVGPathSegList"],"gitHead":"a1072a7bfbb3f45d70fa3d783bb710537ba7974c","_id":"pathseg@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"progers","email":"progers7@gatech.edu"},"dist":{"integrity":"sha512-QPQnfHZF42IVLMTMT0dHXILrKObId7AtLJYK4aoG7fYqBUgYCeHWPOH3ib7aO7+XM4UvvUnoguHFbHmzuJdhMA==","shasum":"72795be842feadfe8684a386ebc713932e646fcb","tarball":"https://registry.npmjs.org/pathseg/-/pathseg-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdbowiYVd+q9FZr7gxTd/9ADL3qrtPhMtP+MCbqs5yvAiEAs8ECw5GqcF12JUg10tYRUHd/6E1iJpddbgSjPTOsEnQ="}]},"maintainers":[{"name":"progers","email":"progers7@gatech.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pathseg-1.1.0.tgz_1503691398362_0.4555725837126374"}},"1.2.0":{"name":"pathseg","version":"1.2.0","description":"A polyfill for SVG's SVGPathSeg and SVGPathSegList","main":"pathseg.js","directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/progers/pathseg.git"},"author":{"name":"Philip Rogers"},"license":"Chromium's License","bugs":{"url":"https://github.com/progers/pathseg/issues"},"homepage":"https://github.com/progers/pathseg","keywords":["SVG","polyfill","pathseg","SVGPathSeg","SVGPathSegList"],"gitHead":"58a771aa2f3d741458c73173d43ea42b9641bedb","_id":"pathseg@1.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"progers","email":"progers7@gatech.edu"},"dist":{"integrity":"sha512-+pQS7lTaoVIXhaCW7R3Wd/165APzZHWzYVqe7dxzdupxQwebgpBaCmf0/XZwmoA/rkDq3qvzO0qv4d5oFVrBRw==","shasum":"22af051e28037671e7799e296fe96c5dcbe53acd","tarball":"https://registry.npmjs.org/pathseg/-/pathseg-1.2.0.tgz","fileCount":13,"unpackedSize":244231,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqzQAC/YzPVbJHnCi0NJfTattYBAWxYL1Z8gZSDnBURAIhAN353vK/aGh4WVc/47XLvj1YRW83GPTaPfqanqxZdXF6"}]},"maintainers":[{"name":"progers","email":"progers7@gatech.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pathseg_1.2.0_1521821897972_0.9490596843944759"},"_hasShrinkwrap":false},"1.2.1":{"name":"pathseg","version":"1.2.1","description":"A polyfill for SVG's SVGPathSeg and SVGPathSegList","main":"pathseg.js","directories":{"test":"tests"},"repository":{"type":"git","url":"git+https://github.com/progers/pathseg.git"},"author":{"name":"Philip Rogers"},"license":"Chromium's License","bugs":{"url":"https://github.com/progers/pathseg/issues"},"homepage":"https://github.com/progers/pathseg","keywords":["SVG","polyfill","pathseg","SVGPathSeg","SVGPathSegList"],"gitHead":"ad406ab8f44949f34111b4815572af37f0059ddb","_id":"pathseg@1.2.1","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-LtvemzPvcGamWBbNWJaIrgfUzpynXfwYrP6SSFVRhNHVcCaq6SVm4kRGJNuIV8qzBKgCN3fEXFZZ16YETFIXoA==","shasum":"50b3fc4fc05c64f4a52f8c04156f6f3975b0df3c","tarball":"https://registry.npmjs.org/pathseg/-/pathseg-1.2.1.tgz","fileCount":9,"unpackedSize":234941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDVeXCRA9TVsSAnZWagAAIu8P/RGw2NbGE7yToVKheTBM\nLR1+HncL8l38DfMY/HTKOD5/K7zNIWBXxrhO6CaNP9jNrl4xHSLRuvMnygrH\nKP+zxco/oPrrWXIV5bNcU6Dh+1to98SeXn3xAvUJc5SpOmWg2mU/cEpXTt/W\nZxIuJ0sxbDVC8kYF1N27l5rYWH8Wi5TIsFfTgHKcn0Fi3g8dpAFUMKOJhq/I\n/TUnElqGTYd2NDH9M6Ks7LByOmIR3x07TU1tQuy4CoBMERt23IIIkuBrDUK+\nEj7LvR5uTgXWWBh6B2cKCbQRMhxXkjJpqFqu2G44Pldh6Ug3QUErJHQIkPnV\n3ihWBF1pCY2kshVIHQiBElrvTM4v/lhNRnzH5OAzQyDpBFXAbRUcuLzA2a3x\nt6/YU+nONbU9Vk3gg8xxMS3JfKaqpBcRWXtuqziP0yl96XD4SbB5Jpv2Mg8G\nVKVdbOiuyBiUHi7Bc3yL0fd/WfJhhhWy7+s3/ampiBSAlVDAzk8eH6AmO0Kf\nBaXnbOuW8Z0GL92HbgbJ2K7hwHCwxHqLgwIk2aU5hJ0atSQ5VydMhaJVpyNW\nZV1pzHcgLhge7zuG/yVqpvkTqGEQL0NZFzwpiO+lcHs/h7rsAF7AQoDsGj8G\nG1+QFi4Gwufg1YcuybqrFNwQuiIKSSAgJRBRgvNNmpJ0Q/g2Pn9qS7NSKQbF\nTw5X\r\n=Znaf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAGHOiz+TqTWepxg3B7jzVKnWH645ReJP4ET63i2Fq4TAiEAslxZn1CswvxOLEMe5GIPXWwDQfQuqP5J3jGBAaODcTM="}]},"_npmUser":{"name":"progers","email":"progers7@gatech.edu"},"maintainers":[{"name":"progers","email":"progers7@gatech.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pathseg_1.2.1_1628264342797_0.257788760627472"},"_hasShrinkwrap":false}},"readme":"# SVGPathSeg polyfill\n\nThis is a drop-in replacement for the SVGPathSeg, SVGPathSegList, and getPathSegAtLength APIs that were removed from SVG2 (https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html). Existing code that uses the SVGPathSeg or SVGPathSegList APIs can use this polyfill to keep working. This polyfill is based on the exact code and tests that were removed from Chromium 47.\n\nThe SVGPathSeg API was difficult to use and has been removed from the SVG spec in favor of a new, awesomer API in the Paths module (https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html). All new development should use the SVG Path Data API. There's a polyfill ([path-data-polyfill.js](https://github.com/jarek-foksa/path-data-polyfill.js)) for browsers that do not yet support the new API.\n\n## Implementation status\n\nNow passing all SVGPathSeg tests from the Chromium repository.\n\nNow used by [svg-edit](https://github.com/SVG-Edit/svgedit) and passes all svg-edit path tests.\n\nBlink will likely remove SVGPathElement.getPathSegAtLength (see: [Intent to deprecate and remove SVGPathElement.getPathSegAtLength](https://groups.google.com/a/chromium.org/d/msg/blink-dev/Gc1Aw282beo/NsfsKf8LBgAJ)). A getPathSegAtLength polyfill has been added to this library.\n\nFirefox 59 will likely remove portions of the SVGPathSeg and SVGPathSegList APIs (see: [Remove the WebIDL methods for creating and mutating SVG path data](https://bugzilla.mozilla.org/show_bug.cgi?id=1436438)). This library has support for polyfilling this partial implementation.\n\n## Using pathseg.js\nJust add pathseg.js to your server and drop this in your html or svg files:\n```\n<script src=\"pathseg.js\"></script>\n```\n\n## Example API usage\n```\nvar path = document.createElementNS(\"http://www.w3.org/2000/svg\", \"path\");\nvar moveToSeg = path.createSVGPathSegMovetoRel(10, 10);\nvar lineToSeg = path.createSVGPathSegLinetoRel(100, 100);\npath.pathSegList.appendItem(moveToSeg);\npath.pathSegList.appendItem(lineToSeg);\nconsole.log(path.getAttribute('d')); // m 10 10 l 100 100\nmoveToSeg.x += 200;\nmoveToSeg.y += 200;\nconsole.log(path.getAttribute('d')); // m 210 210 l 100 100\n```\n\nThese APIs have been removed from SVG 2 but their original definitions can be found at:\n\nhttp://www.w3.org/TR/SVG/single-page.html#paths-InterfaceSVGPathSeg\n\nhttp://www.w3.org/TR/SVG/single-page.html#paths-InterfaceSVGPathSegList\n\nhttps://www.w3.org/TR/SVG/single-page.html#paths-__svg__SVGPathElement__getPathSegAtLength\n","maintainers":[{"name":"progers","email":"progers7@gatech.edu"}],"time":{"modified":"2022-06-23T14:55:13.997Z","created":"2016-02-06T20:01:26.445Z","1.0.0":"2016-02-06T20:01:26.445Z","1.0.1":"2016-02-06T20:05:24.954Z","1.0.2":"2016-03-01T17:03:36.962Z","1.1.0":"2017-08-25T20:03:18.515Z","1.2.0":"2018-03-23T16:18:18.076Z","1.2.1":"2021-08-06T15:39:03.273Z"},"homepage":"https://github.com/progers/pathseg","keywords":["SVG","polyfill","pathseg","SVGPathSeg","SVGPathSegList"],"repository":{"type":"git","url":"git+https://github.com/progers/pathseg.git"},"author":{"name":"Philip Rogers"},"bugs":{"url":"https://github.com/progers/pathseg/issues"},"license":"Chromium's License","readmeFilename":"README.md"}