{"name":"@turf/line-offset","version":"6.2.0-alpha.3","keywords":["line","linestring","turf","offset"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/line-offset@6.2.0-alpha.3","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":"9fc27bdb27ff8c12b2a1025c4b9dcfd9e74bda19","tarball":"http://registry-npm.ywwl.com/@turf/line-offset/download/@turf/line-offset-6.2.0-alpha.3.tgz","fileCount":8,"integrity":"sha512-CbV5bdQGnEot0XgRDRbf4/YFBbT+eT59fmT/l6gCjJM4WQ9thAc5F7VW88a8lwjWm1/Nhc3wMgUsT1hoy+d5PA==","signatures":[{"sig":"MEYCIQCC8h0z5kphXgEIl9iDxYHUsExPVF8tPJl/oMWoOtZOuwIhALPW8/lMlvOaw0uNK6CKxrOHYRD2ahXOvxaBB/T0WjAZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0o1uCRA9TVsSAnZWagAAscUQAIwB7qTyNVKgsXGo0Vl9\n5luGrhRHcKyom72zyMunpXSBG4MqJTn30TvEjo57xqLzQNCxhPBkLZo79bxi\ncGB74PqZCVMicqKT6nq/rGivIQGsejTl1xrpWMS/FkzVkHmGfNpj+pRtm/lJ\nK27bDjYj2ThMZLMom7ZK4CwHEr3pLo7XPnZATNtgJF8gW6Bhiitsgkopy0R7\nM6q2tunm+pw46JbkvqpiX1lKLlgZiMhHbL/fiaOLF86U7akOqzP80fWi7vwd\n177EDH5bLGn2Ab0h0W4cUPnGLaCULw4UOoQZ+cIZ4GGWEKUAn0N8JP8rqYez\nZF2CqJujuLMeS9x4Rvn6L4bqSetI+d0oadEW6iB1wz79W+kMG+mJfe+Ob/G7\nR9MDeEwbj8UnfF6ZxBMGqeWr6FyD2p3g5+6b8lHWK3cFbsK5bPxOZNu2amux\nULvOuzwwMONlUA9s2KMkx4D+b8km7jVZ6mwTvCaEXjrfaDZx/ScJNqDSXYVo\nPJyQsA08E6dVtp0O65MIUDAUuj9Wo4MhUZiwx7Q3RFz4EEkAy49fckWIzFUl\nVB4Nr4vsw0Mm6t7z2UmwMbnjMitdWBpg9DCvEM+eu/a+uEnXh6z+SpiKiw9N\no+NMM/taz7t9c7jW/4hB3/BMu2SRo/lA/6OPdkhmr8is/6LQC7DyS/3koscn\nHsPI\r\n=45vI\r\n-----END PGP SIGNATURE-----\r\n","size":4933,"noattachment":false,"key":"/@turf/line-offset/-/@turf/line-offset-6.2.0-alpha.3.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":"dce9edfc705352e8cb9e0083c9330ba0e8d77409","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","posttest":"node -r esm ../../scripts/validate-es5-dependencies.js","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-alpha.3","@turf/helpers":"^6.2.0-alpha.3","@turf/invariant":"^6.2.0-alpha.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"*","rollup":"*","benchmark":"*","npm-run-all":"*","@turf/truncate":"^6.2.0-alpha.3","load-json-file":"*","write-json-file":"*"},"_npmOperationalInternal":{"tmp":"tmp/line-offset_6.2.0-alpha.3_1607634286394_0.04699741376858402","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":1607634286515,"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":1607634286515,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}