{"name":"@turf/convex","version":"6.5.0","keywords":["turf","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/convex@6.5.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"a7613e0d3795e2f5b9ce79a39271e86f54a3d354","tarball":"http://registry-npm.ywwl.com/@turf/convex/download/@turf/convex-6.5.0.tgz","fileCount":7,"integrity":"sha512-x7ZwC5z7PJB0SBwNh7JCeCNx7Iu+QSrH7fYgK0RhhNop13TqUlvHMirMLRgf2db1DqUetrAO2qHJeIuasquUWg==","signatures":[{"sig":"MEYCIQDhqCF1OU9HfUNDaeJ6yEwUtV10sT6jpun1K8RaYK7IZQIhAOOIZjodxXqa3xCOI8MJil2rHaZpDZyPD6zI9JeJmLGm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2fIaCRA9TVsSAnZWagAAEG4QAJW5rCFwasvhQO6QUxHS\nLe5G50g/7O5avxOjqWLaOIoyloMsnPbijZkIa+kbCh8DcHfafm2RhoPCwsR9\nLTxwiGXE0fCrmj5uY4kLwd6e7QwoYYwH1kp2GpjpAMQgzY4qhtbzKlXr4GYL\nz+DD2p95X1bwAHzkDOWQQEd3Wds0MkXhzMPQA2V0X8iwPM1ZmEHDPAtFTs1g\nszbr9KvT3fu6tz3Lmnq0DCXGhZevI3jRfDAvJIRbAhFANprcvRXvFpWV0hdD\nk7T1Iy8xznm8f2v9GbJ1iH04XhlqWLDjuibH7zUqAw5NoxxQZQsvbND0uggO\nJzwAARlRMojqE3rthylz5/MwwvBkHwDbYjebcFjiRnJJIVeR9gVshHE4H60P\nB4DucBHsGkHrdxfonTjX9W8ZJMERc9v0m6bOBV2IAQChuZLqULbQ8SkiZRDF\nZcnyRfen1fOW66urz9V2mWRzX5FJM1VlS7HXqXsuq+wGhY5TrSB7cB5rHn3u\nCdY2BgvEJaXBNbkcix1pZFSA45AFmEirc/HuwMcddBxE9KTmJOziPh7M7oa7\n6gl7JzVLDSbgRB+2uWFgRuFF1RvMwJS4mLXia4iamjhgSc+Puf2zN2bhFTEe\n7I5e6ZSbXWEmTl6WeCKKPTGMMfSZKAfiYZ96NYp+jt14P8yebqxQhQnwd4gt\nU3Zr\r\n=48I+\r\n-----END PGP SIGNATURE-----\r\n","size":3397,"noattachment":false,"key":"/@turf/convex/-/@turf/convex-6.5.0.tgz"},"main":"dist/js/index.js","types":"dist/js/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":"ts-node bench.js","build":"npm-run-all build:*","build:es":"tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json","build:js":"tsc","test:tape":"ts-node -r esm test.js"},"_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 convex module","directories":{},"sideEffects":false,"_nodeVersion":"14.8.0","dependencies":{"@turf/meta":"^6.5.0","concaveman":"*","@turf/helpers":"^6.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"glob":"*","tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*","@types/concaveman":"*"},"_npmOperationalInternal":{"tmp":"tmp/convex_6.5.0_1625912255569_0.23141167424561804","host":"s3://npm-registry-packages"},"readme":"# @turf/convex\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## convex\n\nTakes a [Feature][1] or a [FeatureCollection][2] and returns a convex hull [Polygon][3].\n\nInternally this uses\nthe [convex-hull][4] module that implements a\n[monotone chain hull][5].\n\n### Parameters\n\n*   `geojson` **[GeoJSON][6]** input Feature or FeatureCollection\n*   `options` **[Object][7]** Optional parameters (optional, default `{}`)\n\n    *   `options.concavity` **[number][8]** 1 - thin shape. Infinity - convex hull. (optional, default `Infinity`)\n    *   `options.properties` **[Object][7]** Translate Properties to Feature (optional, default `{}`)\n\n### Examples\n\n```javascript\nvar points = turf.featureCollection([\n  turf.point([10.195312, 43.755225]),\n  turf.point([10.404052, 43.8424511]),\n  turf.point([10.579833, 43.659924]),\n  turf.point([10.360107, 43.516688]),\n  turf.point([10.14038, 43.588348]),\n  turf.point([10.195312, 43.755225])\n]);\n\nvar hull = turf.convex(points);\n\n//addToMap\nvar addToMap = [points, hull]\n```\n\nReturns **[Feature][1]<[Polygon][3]>** a convex hull\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[3]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n[4]: https://github.com/mikolalysenko/convex-hull\n\n[5]: http://en.wikibooks.org/wiki/Algorithm_Implementation/Geometry/Convex_hull/Monotone_chain\n\n[6]: https://tools.ietf.org/html/rfc7946#section-3\n\n[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number\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/convex\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":1625912255692,"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":1625912255692,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}