{"name":"@turf/line-offset","version":"6.4.0","keywords":["line","linestring","turf","offset"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-offset@6.4.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":"44a350a365e691f22b4e31099e9243817470c211","tarball":"http://registry-npm.ywwl.com/@turf/line-offset/download/@turf/line-offset-6.4.0.tgz","fileCount":7,"integrity":"sha512-gfAr6xMPZzLxuR2+kj/yctK9VwlgQBJ31svqxE9/e5vSpHv+geA1RVAsIUec/KD1JnA2thI089m2XyEjGkGjqQ==","signatures":[{"sig":"MEUCIQDDe6PEoH+RR4Y+nW0batMHMH/wdTy3OMHRl4qTjYWf/gIgRHIKG7WFIGjdpJi7P0QNXj2ASmORBnNjhV0ughbgvo0=","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\nwsFcBAEBCAAQBQJgy06GCRA9TVsSAnZWagAAitsP/17iNv8KeMoMZBnDuTIw\n/gfG5Ehp3YMVHK9hvJfg2ZrnyOJ2pFvMcBr2tj2wquyCobBTJv8ERqXKmPO4\nIYiOctdwo+jxhBV3kFRVD8GlnpzuNdUbI4IE5W8vpaE2cAM24FTNvF7lWaeZ\no6PZ+JeSfx9eoANKqL+CP1pC4isyasIZAVMD0Cn9jTCMe/JGmGP+YYHQNc36\ng3BkFAv7lJyfI5bwfP1gRm24AfEZI9l5tr3gY05vYwtgi+eQhghziqkyinFr\nUNcfcICAQy1NMetmBYYMZKPtYhLdXOIJ9EQYRmvqalDdbEb22Yj+4pxrSowB\ntDVIT4m7k541FyZ7ZScdyWCqlNxW/USWAydLE6uv6DKZz20ODdWCGDQztIwS\nK4fcXy8N1alEpI9egMMH67/tUMJ/s6clfzfXKZ19xh4LLZZx3ZQx4ZKvASQg\nSG7Iv7u5ixdkGOpZnDxOQ137rIYX/A7n1Nog6Q8DQhovxx3NTLJ7HsvAr69D\ny8SZxWLF3ilColL64bJYF3yNKR+6Lm/A+bRcEifCmzbiNgsst09NAfBfuGDi\nqVc2pGCvN3O2D+/NsBsbF2FqrQ2fuA5x7yIX1hbvV3J7W1Rc4RAki+AIZ9NI\na+ySIFs/QWy2rCmUdHqpDE6PUYCtnUiKRpNH5RbR/0Pv6neuc//1oxYS7/Nk\n5pC1\r\n=7OAD\r\n-----END PGP SIGNATURE-----\r\n","size":4479,"noattachment":false,"key":"/@turf/line-offset/-/@turf/line-offset-6.4.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":"1e62773cfc88c627cca8effcb5c14cfb65a905ac","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/3.20.2/node@v14.14.0+x64 (darwin)","description":"turf line-offset module","directories":{},"sideEffects":false,"_nodeVersion":"14.14.0","dependencies":{"@turf/meta":"^6.4.0","@turf/helpers":"^6.4.0","@turf/invariant":"^6.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","@turf/truncate":"^6.4.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/line-offset_6.4.0_1623936646032_0.9653432033153646","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":1623936646164,"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":1623936646164,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}