{"name":"@turf/line-offset","version":"6.5.0","keywords":["line","linestring","turf","offset"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-offset@6.5.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":"2bbd8fcf9ff82009b72890863da444b190e53689","tarball":"http://registry-npm.ywwl.com/@turf/line-offset/download/@turf/line-offset-6.5.0.tgz","fileCount":7,"integrity":"sha512-CEXZbKgyz8r72qRvPchK0dxqsq8IQBdH275FE6o4MrBkzMcoZsfSjghtXzKaz9vvro+HfIXal0sTk2mqV1lQTw==","signatures":[{"sig":"MEQCIHCPGZG6Ag/m3ys+TT69RiNu9R4ikYTgC+y8QxOaehbsAiB7WNoRzZrtodaFQvnuc6Giz5Nvt+zmZy9Tf3VQB93kow==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2fJdCRA9TVsSAnZWagAAHSgP/1Yxw6x8DDUpFklGGu3u\nRMRDMsw0X+fZc57hyvI29Xkb4UxuRokbuCHMnQxpKy4JS5hHkkMj8QEPQOu1\nAyCX2Xby1iRDa+CoDESUYieHTZ9tEifkf6mclX9Lk2ChCQvUaYrV3IlaolOu\n6ES4M/AaAI+pcmbzpqDKiuNlOW6rgQa9r/UoXybZQkffu0PYdXVsO0DNrP1v\nwM/YOJg7ebMHPXI3H7OQsML1xOD1zeZx0gmcDiGhSpyJaacWWM/7epnNhxd+\nx4jUAk9FnRqmhQNHQ0mnF3KVo+hD0qoBHZa0Z3Sfj3licXXXVjjF32soZX39\n4t01R/dyadr4MPAsH5hu1w6YHAlmV6lXUlXTwHUAuRiNhRRbTulUART99u9p\nJy+K3k10IWqPEzbYn+LfKsSZ2AYSHB5cIfFSbHU400q1xfX4Z8eE5Lqveg+/\nin3xHXSpNXhpEPSUZmNICtoPqho9XuarhEw44lQSCrmV/SLxTV1Wdh9K/4XQ\nG3ZS3Csv3BGKBTU83HDX25JbqNN040dQgH8OQFEZJMrbbiBYqiXrlm9n9FEl\nYkGMGwDBXI0FVMN1hp7v2ZA0VVG8xf7Yi29IhqkwmbH/nnY1ISAtfVEkKjdK\nTfs23iUxGOgE67InlqKB9lCu5BXmMmoqNs7l1OVFaq4fE7TnsiKetbfpjHpB\n3/Up\r\n=k6hj\r\n-----END PGP SIGNATURE-----\r\n","size":4519,"noattachment":false,"key":"/@turf/line-offset/-/@turf/line-offset-6.5.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"},"funding":"https://opencollective.com/turf","gitHead":"5375941072b90d489389db22b43bfe809d5e451e","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":"rowanwins","email":"rowanwins@yahoo.com.au"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.8.0+x64 (darwin)","description":"turf line-offset module","directories":{},"sideEffects":false,"_nodeVersion":"14.8.0","dependencies":{"@turf/meta":"^6.5.0","@turf/helpers":"^6.5.0","@turf/invariant":"^6.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","@turf/truncate":"^6.5.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/line-offset_6.5.0_1625912257826_0.5118192078417365","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":1625912257958,"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":1625912257958,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}