{"name":"@turf/line-offset","version":"6.2.0","keywords":["line","linestring","turf","offset"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-offset@6.2.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":"ec3ee6ff39bcc73a5e0e1956f1d5b0b3ffe81b16","tarball":"http://registry-npm.ywwl.com/@turf/line-offset/download/@turf/line-offset-6.2.0.tgz","fileCount":7,"integrity":"sha512-ZPir31mnQbEdR+6CU6stmD9/l2N6kOmVKSJd1HWKkuUaHn9Qy37ppVi5SMfHFr9JGYW3TWpTbXqJdgO/HEuUTA==","signatures":[{"sig":"MEUCIQC1fi/qOYn2O3d8U/Rxem+qcfqOt45R6JpyhNZJNjr3cgIgA2yTtyQ1eZXrSzNbBW7U2vL+sLy/bG+fiIlQehTThqU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/bjcCRA9TVsSAnZWagAAV9QP/0ru7HGqn9JWBa/cNW6x\nxgOqoaSFZhbtYPjmgO6KfVZMbKmbD4POpl+tDNZxvUzTD0AcYBv7NGV6l79b\n94WrMNlqg/0ASt9d1KIOBexdv5VC41Vg7TnjHZrBrtLGpzcIiPgaosbBUWmK\nIGwZ+MEZzZgAdkxaLdFrh7zGH9jw/WDLvpAp6W+sY9dfgu8QhvhxLSkaYrWx\nMNPR6ql9dCrqqLn7MQN2QuNU/HyDYdHojsbPwuDuOh5pnXsB9Gwco97OjhNM\nKH4VrB0vf1c0jXyxZTzXvNsILAITtSEi2aREjgiW3wy8L7mUjTqwXkP1M5cg\nw6WpZc8c8StZBWbWq+iHxElFDn4/giG8hhgWUubAhRu+AcAabVlR4opkA1wF\nPocwqywXOblukRm0uYJCPrtTPtQ1meRKE4SJs9EmTmv+AD63H9BV2GWlu8yb\noIjfwLqbrsjLXS9e0gvV4PaCK5/FOwb0AwUUeYIAd/SLRWtSwWWBCHUGtZ9M\nV766TSQPI2O5/1UHmfCozD3KXKHl1AOlGSWG8tDzPOopZCHjw+3AyeISGqWh\ng+lzQFQS3NER72mS/41NOaffbR0OouK8HapLatdp1+URx5LuzCLgVUJ3lltz\nRmk2GPp+hRNdCLmtYOO542lVAQTbm88YLRRi+7hbqppOVIXZNjDc1t+loPD5\nbwrs\r\n=q8bz\r\n-----END PGP SIGNATURE-----\r\n","size":4466,"noattachment":false,"key":"/@turf/line-offset/-/@turf/line-offset-6.2.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"},"gitHead":"c277baf2b967a35efec75de9ae54869d20da5288","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.2.0","@turf/helpers":"^6.2.0","@turf/invariant":"^6.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","@turf/truncate":"^6.2.0","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/line-offset_6.2.0_1610463451814_0.7915945384189527","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":1610463451952,"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":1610463451952,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}