{"name":"@turf/convex","version":"7.0.0-alpha.0","keywords":["turf","gis"],"author":{"name":"Turf Authors"},"license":"MIT","_id":"@turf/convex@7.0.0-alpha.0","homepage":"https://github.com/Turfjs/turf","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"dist":{"shasum":"b4e48231667519bdb98e87a6e33ad98a956d1f7a","tarball":"http://registry-npm.ywwl.com/@turf/convex/download/@turf/convex-7.0.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-WCuPZ2qqVksSgMLP9cj3YMS9XWd/Y5jVAfMQ52EN439JSjclCOgGXyyNIOSNSuvQDZ2oWOiURCg/H6l0UKJIhg==","signatures":[{"sig":"MEUCIQD3SvkduVGpx8GtKSiWWFKSWqPz7zaPsQmzC/IGSVkmAAIgSfG4UuH81c+ehIrl6uPErJbxpEKwDOGUpih5MgFHzq8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja8OpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUMQ/+LJ8BzGQkPkHmKkLqYOVpqgwl1N/7d5stiliZUnnLyY4pRYVF\r\nwwrfPz5I75BJTdP4vceFt0T2czyOs9WwvHoQewCQnQoqu+na29a24GiTcMc+\r\nUfSkzhIvp1Q9peets8fmCXG0Isy/RqIoSom3Te8cI/Mz0TuBdJr9bxr+pR/3\r\nHstIlznULCyt+htKclfmE6J+UYIc0sNE6b5XOcFmccOKo8tu9DVEreikOxIl\r\nJoshPt2stCThv1aaHj3BKFWCTI4GTVlDwLomh2T+OW6cMysqOQkY8usJAlwb\r\n+VJGscJWel/93BeXxXa8zk6PNZuld5LErOliHu2j11oYjfmwqXRROELK7vBm\r\nAb5/OnR6p+fx3z8koArRXgta5LVf1nE3fBoohfLyIOkumzCdIo6GeAHkvvYh\r\nQ6allDCDPGhDIJVxMzhKS2eYOm+okIawq3lBZ4+uzU2PTCbB9jOeXl8CIUUE\r\nWXJRV4QteNpE0F9ML+1Qzm+YGguR4O7+K0XuxO+NNjDA5skWNBLj6JQdNZgj\r\nb27v2YZ3hlLtOvYyQ05PrObLZeFoQZT/DkjMRnFYYV3spmVn39VLfDyb7zUH\r\njkUOXVzffyI4l7Uxg+WWfZBnbczbgPf8p7nfaxU0nWP9kxQB58D8E75yoTpW\r\nGOQ72CIGgiNunZn9bqDI+y0oAmv9icAN4hI=\r\n=c6tC\r\n-----END PGP SIGNATURE-----\r\n","size":3359,"noattachment":false,"key":"/@turf/convex/-/@turf/convex-7.0.0-alpha.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":"0edc4c491b999e5ace770a61e1cf549f7c004189","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":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"repository":{"url":"git://github.com/Turfjs/turf.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v19.0.1+arm64 (darwin)","description":"turf convex module","directories":{},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"tslib":"^2.3.0","@turf/meta":"^7.0.0-alpha.0","concaveman":"^1.2.1","@turf/helpers":"^7.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"glob":"*","tape":"*","tslint":"*","ts-node":"*","benchmark":"*","typescript":"*","@types/tape":"*","npm-run-all":"*","load-json-file":"*","write-json-file":"*","@types/concaveman":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/convex_7.0.0-alpha.0_1668006825408_0.4478505246027442","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][9]<[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":1668006825610,"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":1668006825610,"dist-tags":{"canary":"3.5.2-alpha.d2c36ee7","latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}