{"name":"@turf/line-offset","version":"6.2.0-alpha.0","keywords":["line","linestring","turf","offset"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-offset@6.2.0-alpha.0","contributors":[{"name":"David Wee","email":"@rook2pawn"},{"name":"Rowan Winsemius","email":"@rowanwins"},{"name":"Denis Carriere","email":"@DenisCarriere"}],"homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"b7b6356ea5a961b53101671c728ab4dcb1d6475f","tarball":"http://registry-npm.ywwl.com/@turf/line-offset/download/@turf/line-offset-6.2.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-aYyz0faGaN1jAQXAddRCKhxc421nvtVERfsjtaZAFYRg1BylxDRau1qKm0ibLR+BzXQFMn+4qkV7Mozh+pYQkQ==","signatures":[{"sig":"MEUCIBEKxkvpxEzqXwQJuntG2SRoVkD98952NdTPLJ9Kwj6kAiEApQoRXzNXsGuPAR3STByytpQPQke9VX06k6yEFgr2Mgg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefS41CRA9TVsSAnZWagAAZcYP/38B51oC0AEA29lkQndX\nh3tYRJg2miOalM0Gm6J+NFFm7GoVOFgN6ngYjbdAPqSmV70fS3JnvuGBbdsx\nhlkZcv/OJwiTXT7oslm1LvzhYkpHASFW4J0LudFm4sHRTeRdbIsb8g9CawiM\nU1WrfMIql5lW+ia1dig3gR+85iGxX6UZtMkwbpmKndsI+6DsQrYEZHnJM0Tf\ndk7RI3ZWJnd4dxfqXSNWvP29IR8Hr7tGKNDNVBq+7gMe88ybbTEil9e2XxRn\ndaBXX2pOPoKppQkGAocbzStTp+Owcx2rg69BkqBjZ4ig+FbPr3jW4UmsZZIf\njGNN6lDudEbWNtfXKEuJsB4qWRetnGrGrIsDq7HRXXrGRobVvLyzafPJHXRK\nQLiPOmMXeC+k+KgH8tQqh9cQ5VwVfWhz43H/i0VFVeMSx6OQWjpZIYyQw6SC\nwSCJLH/BGv5SFpY2pWIxrDPnBDLRb6aIjiORo3j2J6/NuFdzP1gtcfITSDOx\nK5pKKVQ8k4dBpvmCGdWBl1NIAwwUM79DMCln+7SAJVrZ5Tl1pphk5PnpOPFD\n0QbyTxF91yuBUsqEsCy1tLEyO8pfli5Qvv3p+iCNbIhfpPRNRDdkh7HmunMS\n94gePUM2VYEkrLXAZ/dKNC00YYQNid+5ci5XgVOhcKqHKQa3J46KyEmZqn+Y\nGPSY\r\n=xL5Q\r\n-----END PGP SIGNATURE-----\r\n","size":4484,"noattachment":false,"key":"/@turf/line-offset/-/@turf/line-offset-6.2.0-alpha.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","gitHead":"23b651deaa1ca6a0960d0142aea620b7cc6a076d","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"rollup -c ../../rollup.config.js","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","bench:run":"node bench.js","test:tape":"node -r esm test.js","test:types":"tsc --noEmit types.ts"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.10.1+x64 (darwin)","description":"turf line-offset module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.2.0-alpha.0","@turf/helpers":"^6.2.0-alpha.0","@turf/invariant":"^6.2.0-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","@turf/truncate":"^6.2.0-alpha.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/line-offset_6.2.0-alpha.0_1585262133071_0.09804626039884257","host":"s3://npm-registry-packages"},"readme":"# @turf/line-offset\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## lineOffset\n\nTakes a [line][1] and returns a [line][1] at offset by the specified distance.\n\n### Parameters\n\n*   `geojson` **([Geometry][2] | [Feature][3]<([LineString][1] | [MultiLineString][4])>)** input GeoJSON\n*   `distance` **[number][5]** distance to offset the line (can be of negative value)\n*   `options` **[Object][6]** Optional parameters (optional, default `{}`)\n\n    *   `options.units` **Units** Supports all valid Turf [Units][7]. (optional, default `'kilometers'`)\n\n### Examples\n\n```javascript\nvar line = turf.lineString([[-83, 30], [-84, 36], [-78, 41]], { \"stroke\": \"#F00\" });\n\nvar offsetLine = turf.lineOffset(line, 2, {units: 'miles'});\n\n//addToMap\nvar addToMap = [offsetLine, line]\noffsetLine.properties.stroke = \"#00F\"\n```\n\nReturns **[Feature][3]<([LineString][1] | [MultiLineString][4])>** Line offset from the input line\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[4]: https://tools.ietf.org/html/rfc7946#section-3.1.5\n\n[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\n\n[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[7]: https://turfjs.org/docs/api/types/Units\n\n<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run \"yarn docs\" from the root of the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](https://turfjs.org/), an open source module collection dedicated to geographic algorithms. It is maintained in the [Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create PRs and issues.\n\n### Installation\n\nInstall this single module individually:\n\n```sh\n$ npm install @turf/line-offset\n```\n\nOr install the all-encompassing @turf/turf module that includes all modules as functions:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1585262133223,"maintainers":[{"name":"smallsaucepan","email":"james@smallsaucepan.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"rowanwins","email":"rowanwins@yahoo.com.au"},{"name":"tmcw","email":"tom@macwright.com"},{"name":"morganherlocker","email":"morgan.herlocker@gmail.com"},{"name":"tcql","email":"tim.channell@gmail.com"},{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"}],"_cnpm_publish_time":1585262133223,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}