{"_id":"svg-path-bounds","_rev":"6-ccc98328146cab82fd535b01d4614272","name":"svg-path-bounds","description":"Get bounding box of an svg path data","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"svg-path-bounds","version":"1.0.0","description":"Get bounding box of an svg path data","main":"index.js","scripts":{"test":"node test"},"keywords":["svg","boundaries","normalize","coordinate","range","clip","mask","svg path","path"],"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"license":"MIT","dependencies":{"abs-svg-path":"^0.1.1","is-svg-path":"^1.0.1","normalize-svg-path":"^1.0.0","parse-svg-path":"^0.1.2"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/svg-path-bounds.git"},"bugs":{"url":"https://github.com/dfcreative/svg-path-bounds/issues"},"homepage":"https://github.com/dfcreative/svg-path-bounds#readme","devDependencies":{"tape":"^4.7.0"},"gitHead":"cfa5cc644206801775d243250899f6d187b714bb","_id":"svg-path-bounds@1.0.0","_shasum":"21c56863804affef93d31a083401d827baea3ee2","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"21c56863804affef93d31a083401d827baea3ee2","tarball":"https://registry.npmjs.org/svg-path-bounds/-/svg-path-bounds-1.0.0.tgz","integrity":"sha512-6Ebogi995OuxSNwnhEDKmgy8MMXDRWEi/SZ4k/KI7AcxtWABbQRAe+CalIxozlWEwAMllbFL8UbgG37KYwIBlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDldXU2J86O+iA/kymtk4YIry+QIQdj7BwuY7tBPQCM/QIhALr246qjLEHX8Vs/b37mAHmiJ2tMJGhHbDopvZZsIXDA"}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svg-path-bounds-1.0.0.tgz_1500734188453_0.7959745291154832"},"directories":{}},"1.0.1":{"name":"svg-path-bounds","version":"1.0.1","description":"Get bounding box of an svg path data","main":"index.js","scripts":{"test":"node test"},"keywords":["svg","boundaries","normalize","coordinate","range","clip","mask","svg path","path"],"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"license":"MIT","dependencies":{"abs-svg-path":"^0.1.1","is-svg-path":"^1.0.1","normalize-svg-path":"^1.0.0","parse-svg-path":"^0.1.2"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/svg-path-bounds.git"},"bugs":{"url":"https://github.com/dfcreative/svg-path-bounds/issues"},"homepage":"https://github.com/dfcreative/svg-path-bounds#readme","devDependencies":{"tape":"^4.7.0"},"gitHead":"130f5d2a04681f58c9177f1621c19603fe656563","_id":"svg-path-bounds@1.0.1","_shasum":"bf458b783726bf53431b4633f2792f60748d9f74","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"bf458b783726bf53431b4633f2792f60748d9f74","tarball":"https://registry.npmjs.org/svg-path-bounds/-/svg-path-bounds-1.0.1.tgz","integrity":"sha512-/DFqXEpwv2SRR1CJKkhblNnm4wxDcTcILkhRLqPbxScM9MYcYAoveVl+Kxy7ehjLRqFsozVWU9kiK4N8vIb25A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFoBEhv3VOaz/yUerXFnsjOTF0EnBrdv3HGasndxs9sUAiEAsckrAe8qTHZdWENqzfNLXM98QzALST8NFVpwnzTdv/E="}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svg-path-bounds-1.0.1.tgz_1503592522161_0.44601807557046413"},"directories":{}},"1.0.2":{"name":"svg-path-bounds","version":"1.0.2","description":"Get bounding box of an svg path data","main":"index.js","scripts":{"test":"node test"},"keywords":["svg","boundaries","normalize","coordinate","range","clip","mask","svg path","path"],"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"license":"MIT","dependencies":{"abs-svg-path":"^0.1.1","is-svg-path":"^1.0.1","normalize-svg-path":"^1.0.0","parse-svg-path":"^0.1.2"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/svg-path-bounds.git"},"bugs":{"url":"https://github.com/dfcreative/svg-path-bounds/issues"},"homepage":"https://github.com/dfcreative/svg-path-bounds#readme","devDependencies":{"tape":"^4.7.0"},"gitHead":"295974027c5424e48fab34c6d7f11264db72f357","_id":"svg-path-bounds@1.0.2","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-H4/uAgLWrppIC0kHsb2/dWUYSmb4GE5UqH06uqWBcg6LBjX2fu0A8+JrO2/FJPZiSsNOKZAhyFFgsLTdYUvSqQ==","shasum":"00312f672b08afc432a66ddfbd06db40cec8d0d0","tarball":"https://registry.npmjs.org/svg-path-bounds/-/svg-path-bounds-1.0.2.tgz","fileCount":6,"unpackedSize":8326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkDwyCRA9TVsSAnZWagAAgmcQAKNFPY9KmAvRNC8V1d3J\nd6UXjaAdffdnoA1HPorfgpcgQVQQJdKQuC+P2i4m9S8sthklVawSd9/k/NtY\n8mLHSoZwp0pYSofiNOHzTVXeKzGRp5iwKe1A1CQBZkRun5E96hgoyh81j9nT\nchcWJywfMsV+DAgRQJEKc4KWzvvkOwKU0BcMzfPX4VK8KUjRotbK2gwqRZJL\n3NDseybQN5r0tAx3lKSbeMdAdOOMeE0UFTUhZa4cHNFAMq1FbHlrkuNIQAVg\nZsK604+2oAL3vyUAxSURTMXDIkXn0/0VzSaAJk0IjK1ljmIysoyvPZlwwWMB\n11MGF90xcKOhfJ5DMZyFnP08FmT0zk5dyIyp+7TdloGlMFAp4Poy2Y/6ipm8\nTe8laP1tJOZSsIESIViPludkThb0sX7CRJ+4M6IrICJYIdXc9gH2zZpvwP1n\nOAw9Km8TENVJBCBuiJeX2Ehl0RxJzJY3ZeWFrwolo1X03FUDQI8TI0WcftRL\n5omKZBeWhHr/bdQzAY2ZKW1mqY1b4LHcY42BGPWF+6vhi8qq/NtZGfBOJa4A\nCdRlzUzvaW81McD7S2ERfC+lvPo72WKqcOUc6V8t4a2D+sQNifJTJ7yiqSBZ\n6Jp/tGIcCwO+/9iKqCJ3zrUvx+EstEquh8oelRTRx0svQLdhGIBKdxOAuV7g\nXnVd\r\n=a789\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2sfNibjjlq/AObFk86bGAatBZHrlciK1cl5b1YtXGEAiEApFbSm6ZMgFvI7ctBs5BRhRJyMpUhm84OsO8tQEFYDLQ="}]},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svg-path-bounds_1.0.2_1620065329831_0.5791432615814038"},"_hasShrinkwrap":false}},"readme":"# svg-path-bounds [![Build Status](https://travis-ci.org/dfcreative/svg-path-bounds.svg?branch=master)](https://travis-ci.org/dy/svg-path-bounds)\r\n\r\nRetrieve bounding box from svg path data.\r\n\r\n## Usage\r\n\r\n[![npm install svg-path-bounds](https://nodei.co/npm/svg-path-bounds.png?mini=true)](https://npmjs.org/package/svg-path-bounds/)\r\n\r\n```js\r\nconst getBounds = require('svg-path-bounds')\r\n\r\nlet [left, top, right, bottom] = getBounds('M0 0L10 10 20 0Z') // [0, 0, 20, 10]\r\n```\r\n\r\n## API\r\n\r\n### bounds = getBounds(path|segments)\r\n\r\nCalculate bounding box for [svg path data](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d) string or [parsed path segments](https://www.npmjs.com/package/parse-svg-path) array. The box is detected by controlling points, not the real path.\r\n\r\n## Related\r\n\r\n* [parse-svg-path](https://npmjs.org/parse-svg-path) - return svg path data segments\r\n* [abs-svg-path](https://npmjs.org/abs-svg-path) - convert svg path to absolute values\r\n* [rel-svg-path](https://npmjs.org/abs-svg-path) - convert svg path to relative values\r\n* [normalize-svg-path](https://npmjs.org/normalize-svg-path) - make path consist of only bezier curve segments\r\n* [draw-svg-path](https://npmjs.org/draw-svg-path) - create canvas shape based on svg path data\r\n* [normalize-svg-coords](https://npmjs.org/normalize-svg-coords) - bring svg path coordinates to any linear range\r\n\r\n## Similar\r\n\r\n* [svg-boundings](https://www.npmjs.com/package/svg-boundings)\r\n* [svg-path-bounding-box](https://github.com/icons8/svg-path-bounding-box)\r\n\r\n## License\r\n\r\nMIT © Dima Yv\r\n","maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"time":{"modified":"2022-06-27T02:34:48.692Z","created":"2017-07-22T14:36:29.419Z","1.0.0":"2017-07-22T14:36:29.419Z","1.0.1":"2017-08-24T16:35:23.040Z","1.0.2":"2021-05-03T18:08:49.962Z"},"homepage":"https://github.com/dfcreative/svg-path-bounds#readme","keywords":["svg","boundaries","normalize","coordinate","range","clip","mask","svg path","path"],"repository":{"type":"git","url":"git+https://github.com/dfcreative/svg-path-bounds.git"},"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"bugs":{"url":"https://github.com/dfcreative/svg-path-bounds/issues"},"license":"MIT","readmeFilename":"readme.md"}