{"name":"@turf/line-offset","version":"6.3.0","keywords":["line","linestring","turf","offset"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-offset@6.3.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":"a1650bf738f653bef6000117fd2e2600e3c2c46e","tarball":"http://registry-npm.ywwl.com/@turf/line-offset/download/@turf/line-offset-6.3.0.tgz","fileCount":7,"integrity":"sha512-yzgmNc/8miyn+pH2ubT4rZb9uAPY6oLqkwmEdzy2fuU4yUFnCNN/nWvYP4acGdgaSfprJd+4MdlLFzWBJxSplw==","signatures":[{"sig":"MEYCIQD7yLRMy8gU8U4b7X5aS8zLWsf5jskbjk/fGExUSUVwzgIhALnddENpegFHhij1+fBdaQjI58dGIioWqlGRBzD3lsPT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCECZCRA9TVsSAnZWagAAL+sQAI/HFsD6lYFa4gK3mkmY\nDd5XHGHCc511fho2DjAeJyu1KixgGeGOGjU1g8/M7RtpD4lID2NTBfpHZiVx\nv6mOIc9bLldvJQJZQxnmuKX6W+FAw55xCcL4smHc8xejaksngDL1oiqFMLtt\nYoQa/nYiailSW+/DtBXDFfHZgV5UWvwj6IQ540IpE6FIsesav3Q312qk8saA\npOxdbLbgqn4gp/RKZ17ATaQ1v2Bqbl+0LxKIi2PDX4aFW5cXiiyLg4d8jT9m\ne5keprGJlcN2BOksry4GbGLSlB95tlE9wGi73AqTAoxAt5Ob5zbeRYmtnRtL\niLgMy7yDbIcT9qm+hck2uNCTtcm7Q5ZKt9MBb0VDoWHuSxfZJMIb4qvhj8c9\nNkMJGExpB62n9gogpHJs5jQLBuRaLSFV0nWlV+41Jlwbyzm44wmB/uIPcvwc\ntWavDE3Pvz4afX60MKKl1eHNAaoQjZN13gVV6i5rjpPG6mPjdVW+485xio+q\nCvSsvbB23zpfU8fWdh+1SO9ngyn4EL3wphNZOh7SJV+kCaO/z92X5kyud6tK\npUG7ipUvrXBKnGwzMXrsxVtSv6Icl0GT48S+0i8Qm4ZkDyyqi3VtMYp5CCEk\nhdd4V0Fz5Cq7EcNmewdkSiE4DsO86xqtMxlJdr7KZoaHz7cGJmGm/q1yxDuN\nJXnF\r\n=eXll\r\n-----END PGP SIGNATURE-----\r\n","size":4475,"noattachment":false,"key":"/@turf/line-offset/-/@turf/line-offset-6.3.0.tgz"},"main":"dist/js/index.js","types":"index.d.ts","module":"dist/es/index.js","exports":{".":{"import":"./dist/es/index.js","require":"./dist/js/index.js"},"./package.json":"./package.json"},"gitHead":"57c8877e1e2d67effc2cdd23385c02b2a6615a49","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all test:*","bench":"node -r esm bench.js","build":"rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json","test:tape":"node -r esm test.js","test:types":"tsc --esModuleInterop --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.3.0","@turf/helpers":"^6.3.0","@turf/invariant":"^6.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","@turf/truncate":"^6.3.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/line-offset_6.3.0_1611153561092_0.4944403129686965","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":1611153561214,"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":1611153561214,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}