{"name":"@turf/convex","version":"3.5.2","keywords":["turf","gis"],"author":{"name":"Morgan Herlocker"},"license":"ISC","_id":"@turf/convex@3.5.2","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"a96b0ec55eacad3c126ab3c7b35bce3e9940b28e","tarball":"http://registry-npm.ywwl.com/@turf/convex/download/@turf/convex-3.5.2.tgz","integrity":"sha512-sX1ubC+LEe2W2Zj1N/N/p8bOco4Xz10ZxR2z93C6PTyY4guUonj08EFpYFD2MRW0lzxJ5dbNC8zWsmOJKnpgQQ==","signatures":[{"sig":"MEQCIBewnldRiXPPaYUEd0tfsUDifN3SQR5hXdTlEjj3zj8OAiBHQ8ox/zuKNeuq6HWcabsPPbmQLRiW0M9pKHnnX902RA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":4092,"noattachment":false,"key":"/@turf/convex/-/@turf/convex-3.5.2.tgz"},"main":"index.js","_from":".","_shasum":"a96b0ec55eacad3c126ab3c7b35bce3e9940b28e","scripts":{"test":"tape test/*.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"2.15.9","description":"# convex","directories":{"test":"test"},"_nodeVersion":"4.5.0","dependencies":{"@turf/meta":"^3.5.2","convex-hull":"^1.0.3","@turf/helpers":"^3.5.2"},"devDependencies":{"glob":"~4.3.5","tape":"~3.5.0","benchmark":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/convex-3.5.2.tgz_1471904449147_0.3151328556705266","host":"packages-12-west.internal.npmjs.com"},"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":1471904451213,"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":1471904451213,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}