{"name":"concaveman","version":"1.2.1","description":"Fast 2D concave hull algorithm in JavaScript (generates an outline of a point set)","main":"index.js","dependencies":{"point-in-polygon":"^1.1.0","rbush":"^3.0.1","robust-predicates":"^2.0.4","tinyqueue":"^2.0.3"},"devDependencies":{"eslint":"^7.32.0","eslint-config-mourner":"^2.0.1","tape":"^5.3.1"},"scripts":{"pretest":"eslint index.js test/*.js","test":"tape test/test.js"},"repository":{"type":"git","url":"git://github.com/mapbox/concaveman.git"},"keywords":["concave","hull","algorithm","geometry","shape","outline"],"eslintConfig":{"extends":"mourner"},"author":{"name":"Vladimir Agafonkin"},"license":"ISC","gitHead":"f01d6e4b2c94e644a46e8113c6065aa0b4b79bc6","bugs":{"url":"https://github.com/mapbox/concaveman/issues"},"homepage":"https://github.com/mapbox/concaveman#readme","_id":"concaveman@1.2.1","_nodeVersion":"14.17.4","_npmVersion":"7.19.1","dist":{"integrity":"sha512-PwZYKaM/ckQSa8peP5JpVr7IMJ4Nn/MHIaWUjP4be+KoZ7Botgs8seAZGpmaOM+UZXawcdYRao/px9ycrCihHw==","shasum":"47d20b4521125c15fabf453653c2696d9ee41e0b","tarball":"http://registry-npm.ywwl.com/concaveman/download/concaveman-1.2.1.tgz","fileCount":5,"unpackedSize":15030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEPojCRA9TVsSAnZWagAAV0UP/3FYKAPomPQQeAN08oDR\nUuSox8TWw/5gpBnz9nWvfEO+xwH0zZv28zP87Sv4RtjpUxTe7TQupeoQPhAL\neoi0JkQ5epNG5qV76vqrgBTA8gp1PSPX6BoKDOTZUyNh/FjF/ultKEIkiell\nt9cI3CkIXhpd6E/4SDqkdtpE53jrLHOx+RUs+lcrDkcDicLCWxFnZZkv/Zcd\nw1xjeQ564l2IvLQ7NJt6EtSheHRekcw/eLPMw4xvLjGmfoKaLOJmmCgSwxQa\n4/7nYD6x//xzyp5cKTZIgmE8B6ZvqYUG9BKNT2GDxlSJlUfTjeEPSKX13+Yc\ndxWNggnbJ/02dgftP5EM4YO0Qr4Vv+ftFlO+1ThtNVRxv9QQZa7wd6MZmpHZ\nTf0kUZZy3A9v13OhwYkeSjfYuyp5WvhVcy35bDV74pv/xUkHAJ2zB90O4sSj\ng4hLqLx9SI9Y1mqL5gzDQj+rFfCTGybw0oCm9GFxYLZTj7DCF4TNZRuXBhkI\nuwxSVJq1V9uJCzTQpK1zWl0KxDSykncZZfM7owjlR57Q31V3p1x/6ww2Xv8d\n+4WOmuf2zPhpSuXuDaVkw0XVVqNZB+rlTXM1oqoZbIOtAN5RzgbvomXM/d3W\nuI41dO6B1nbmhhZUJgKdIRYQ34rsCVnrz5bFWEdzP87YtlE4RylGmXHPVf7T\nsvjK\r\n=9mQB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE/nuLAh4nQ5B2v+q4GbzAZmR7gFERkkrH1iWlVWFC79AiEA7tYTZAvz4wPJFEtzRYEvn0aDj6mAJAQ5Au9FhJEuBaw="}],"size":5591,"noattachment":false,"key":"/concaveman/-/concaveman-1.2.1.tgz"},"_npmUser":{"name":"mourner","email":"agafonkin@gmail.com"},"directories":{},"maintainers":[{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-07","email":"accounts+npmjs-07@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-05","email":"accounts+npmjs-05@mapbox.com"},{"name":"mapbox-npm-06","email":"accounts+npmjs-06@mapbox.com"},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":"accounts+npmjs-advanced-actions@mapbox.com"},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-admin","email":"accounts@mapbox.com"},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mourner","email":"agafonkin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/concaveman_1.2.1_1628502563120_0.8851149288155771"},"_hasShrinkwrap":false,"readme":"## concaveman\n\nA very fast **2D concave hull** algorithm in JavaScript (generates a general outline of a point set).\n\n[![Build Status](https://travis-ci.org/mapbox/concaveman.svg?branch=master)](https://travis-ci.org/mapbox/concaveman)\n[![Coverage Status](https://coveralls.io/repos/github/mapbox/concaveman/badge.svg?branch=master)](https://coveralls.io/github/mapbox/concaveman?branch=master)\n[![](https://img.shields.io/badge/simply-awesome-brightgreen.svg)](https://github.com/mourner/projects)\n\n<img width=\"570\" alt=\"sample concave hull\" src=\"https://cloud.githubusercontent.com/assets/25395/12975726/ada2ad10-d0c6-11e5-96c8-6e42c995e0e2.png\">\n\n### Usage\n\n```js\nvar points = [[10, 20], [30, 12.5], ...];\nvar polygon = concaveman(points);\n```\n\nSignature: `concaveman(points[, concavity = 2, lengthThreshold = 0])`\n\n- `points` is an array of `[x, y]` points.\n- `concavity` is a relative measure of concavity. `1` results in a relatively detailed shape, `Infinity` results in a convex hull.\nYou can use values lower than `1`, but they can produce pretty crazy shapes.\n- `lengthThreshold`: when a segment length is under this threshold, it stops being considered for further detalization.\nHigher values result in simpler shapes.\n\n### Algorithm\n\nThe algorithm is based on ideas from the paper [A New Concave Hull Algorithm and Concaveness Measure\nfor n-dimensional Datasets, 2012](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.676.6258&rep=rep1&type=pdf)\nby Jin-Seo Park and Se-Jong Oh.\n\nThis implementation dramatically improves performance over the one stated in the paper\n(`O(rn)`, where `r` is a number of output points, to `O(n log n)`)\nby introducing a fast _k nearest points to a segment_ algorithm,\na modification of a depth-first kNN R-tree search using a priority queue.\n\n### TypeScript\n\n[TypeScript type definitions](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/concaveman)\nare available through `npm install --save @types/concaveman`.\n\n### Dependencies\n\n- [monotone-convex-hull-2d](https://github.com/mikolalysenko/monotone-convex-hull-2d) for the convex hull algorithm\n- [rbush](https://github.com/mourner/rbush) for point indexing\n- [tinyqueue](https://github.com/mourner/tinyqueue) as a priority queue\n- [point-in-polygon](https://github.com/substack/point-in-polygon) for point in polygon queries\n- [robust-orientation](https://github.com/mikolalysenko/robust-orientation) for 3-point orientation tests\n\n### C++ Port\n\nIn 2019, a [C++ port](https://github.com/sadaszewski/concaveman-cpp) has been created, allowing for efficient usage from C/C++, Python (via cffi) and other languages featuring an FFI and/or plug-in mechanism for C (e.g. a MATLAB MEX file should be easy to prepare).\n","publish_time":1628502563353,"_cnpm_publish_time":1628502563353,"dist-tags":{"latest":"2.0.0"}}