{"name":"@turf/convex","version":"6.2.0-alpha.2","keywords":["turf","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/convex@6.2.0-alpha.2","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"cffb09b1667fce298ca9f2d06cc056d3c6a410fa","tarball":"http://registry-npm.ywwl.com/@turf/convex/download/@turf/convex-6.2.0-alpha.2.tgz","fileCount":6,"integrity":"sha512-sdMeqPsPYVj61203zKI54xFqehdsbq9BsukRgTArcku7gM7Mq59GEHbq34aSMUTHJSCXCnV3JuUYKjvseGD0bQ==","signatures":[{"sig":"MEUCIQDCxc9lQtVt95ZQ9mrcF9zMcYC4D+FIWxS/5zkPx73gRwIgHoOMBMLNBGhdaWbprBD6ra5EJX+uCoRv8peBPrtpx9o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10202,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDHJSCRA9TVsSAnZWagAAcagQAKJFThpIwtoqoeIVYGgE\nHENXwkU8LnvkbtcBAHflubCEFGpdgqlMmrZZPbukAD3uWTC9IDSLx4xqWJYu\nM72Gzo5mOFiQDOolABYQggWjcI5vrg1fwO6GG42KMCd410m7jWlaluPjZveK\nXBdWqxjWOR8vi29skRCQ5QAgtzegfNp9NZOYI0jBriURNnShFyP+YuMMrsM5\n07Txgtuflm2ZekqKUS8XZ5r99hjaqFTt9UatUVwkW0X6v7ijRRQkSM69ho/2\nLEDSzVCcamlDN9CGXmAsXTMOqr/dJkVAQ5uBn4ABKSNBrws/sQH/Aeeo8xYh\n9tU/gjAS1aUPllsreXi/b4XpHamMs0Nxef/AHFBPyJHVG6LC9f0o70iWKV5h\n5e9aeWddKYrOBM3Zng8AOQ7PYWV8JNkbApEvA/MOuPIdUyzK329kpT2MRh+P\n1JyKJT/p9ozco8uSmyjil3iXSfxshp1sfGE/yh1lz2DzQbwxuNR9eePMUeoo\nFMoGWOurX2KJZVBZXQsI5XG3VDz14N3f7Wi8ma4+ZmuVUJW63gUGjOYAxmxu\nzlT1mP7HPv+Y7GVwQJcz8ew16x87EGekgYZr7fF8KSMZ9izz19YB21BN2d8S\nXwwi254VMNQQlM+Kgy7DuHymXJW+G6gqMX41IhEvbYsUrap0b/kOCEJVHCjk\nsvlL\r\n=V7/s\r\n-----END PGP SIGNATURE-----\r\n","size":3260,"noattachment":false,"key":"/@turf/convex/-/@turf/convex-6.2.0-alpha.2.tgz"},"main":"dist/js/index.js","types":"dist/js/index.d.ts","module":"dist/es/index.js","gitHead":"23d5cb91d77e0c1e2e903a2252f525797f1d0d09","scripts":{"docs":"node ../../scripts/generate-readmes","test":"npm-run-all prepare test:*","bench":"npm-run-all prepare bench:run","prepare":"npm-run-all prepare:*","bench:run":"node bench.js","test:tape":"node -r esm test.js","prepare:es":"tsc --outDir dist/es --module esnext --declaration false","prepare:js":"tsc"},"_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 convex module","directories":{},"sideEffects":false,"_nodeVersion":"13.10.1","dependencies":{"@turf/meta":"^6.2.0-alpha.2","concaveman":"*","@turf/helpers":"^6.2.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"glob":"*","tape":"*","tslint":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*","@types/concaveman":"*"},"_npmOperationalInternal":{"tmp":"tmp/convex_6.2.0-alpha.2_1594651218447_0.6726986224207079","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\nimplements a [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    -   `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][9]&lt;[Polygon][10]>** 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[9]: https://tools.ietf.org/html/rfc7946#section-3.2\n\n[10]: https://tools.ietf.org/html/rfc7946#section-3.1.6\n\n<!-- This file is automatically generated. Please don't edit it directly:\nif you find an error, edit the source file (likely index.js), and re-run\n./scripts/generate-readmes in the turf project. -->\n\n---\n\nThis module is part of the [Turfjs project](http://turfjs.org/), an open source\nmodule collection dedicated to geographic algorithms. It is maintained in the\n[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create\nPRs and issues.\n\n### Installation\n\nInstall this module individually:\n\n```sh\n$ npm install @turf/convex\n```\n\nOr install the Turf module that includes it as a function:\n\n```sh\n$ npm install @turf/turf\n```\n","publish_time":1594651218603,"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":1594651218603,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}