{"name":"@turf/voronoi","version":"7.2.0","description":"turf voronoi module","author":"Turf Authors","contributors":["Philippe Riviere <@Fil>","Mike Bostock <@mbostock>","Steve Bennett <@stevage1>","Denis Carriere <@DenisCarriere>"],"license":"MIT","bugs":{"url":"https://github.com/Turfjs/turf/issues"},"homepage":"https://github.com/Turfjs/turf","repository":{"type":"git","url":"git://github.com/Turfjs/turf.git"},"funding":"https://opencollective.com/turf","publishConfig":{"access":"public"},"keywords":["turf","geometry","voronoi","polygons","points"],"type":"module","main":"dist/cjs/index.cjs","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}}},"sideEffects":false,"scripts":{"bench":"tsx bench.ts","build":"tsup --config ../../tsup.config.ts","docs":"tsx ../../scripts/generate-readmes.ts","test":"npm-run-all --npm-path npm test:*","test:tape":"tsx test.ts"},"devDependencies":{"@types/benchmark":"^2.1.5","@types/tape":"^4.13.4","benchmark":"^2.1.4","glob":"^10.3.10","load-json-file":"^7.0.1","npm-run-all":"^4.1.5","tape":"^5.9.0","tsup":"^8.3.5","tsx":"^4.19.2","typescript":"^5.5.4","write-json-file":"^5.0.0"},"dependencies":{"@turf/clone":"^7.2.0","@turf/helpers":"^7.2.0","@turf/invariant":"^7.2.0","@types/d3-voronoi":"^1.1.12","@types/geojson":"^7946.0.10","d3-voronoi":"1.1.2","tslib":"^2.8.1"},"gitHead":"7b0f0374c4668cd569f8904c71e2ae7d941be867","_nodeVersion":"18.20.5","_npmVersion":"lerna/8.1.9/node@v18.20.5+x64 (linux)","_id":"@turf/voronoi@7.2.0","dist":{"integrity":"sha512-3K6N0LtJsWTXxPb/5N2qD9e8f4q8+tjTbGV3lE3v8x06iCnNlnuJnqM5NZNPpvgvCatecBkhClO3/3RndE61Fw==","shasum":"677b562cc836fa1f4e62f9bf59673d373144203e","tarball":"http://registry-npm.ywwl.com/@turf/voronoi/download/@turf/voronoi-7.2.0.tgz","fileCount":9,"unpackedSize":17748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsgL7eXCT17rYf2U9VpD5WBKanqw6oDEg8ZqCvuNVFlgIgT5bu+GXHLSx+CdFunVLnIYQURn5qKPILqOKI7SE7vgc="}],"size":5099,"noattachment":false,"key":"/@turf/voronoi/-/@turf/voronoi-7.2.0.tgz"},"_npmUser":{"name":"mdfedderly","email":"mdfedderly@mdfedderly.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/voronoi_7.2.0_1735448346028_0.48372695176903124"},"_hasShrinkwrap":false,"readme":"# @turf/voronoi\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## voronoi\n\nTakes a collection of points and a bounding box, and returns a collection\nof Voronoi polygons.\n\nThe Voronoi algorithim used comes from the d3-voronoi package.\n\n### Parameters\n\n*   `points` **[FeatureCollection][1]<[Point][2]>** points around which to calculate the Voronoi polygons\n*   `options` **[Object][3]** Optional parameters (optional, default `{}`)\n\n    *   `options.bbox` **[BBox][4]** clipping rectangle, in \\[minX, minY, maxX, MaxY] order (optional, default `[-180,-85,180,-85]`)\n\n### Examples\n\n```javascript\nconst options = {\n  bbox: [-70, 40, -60, 60]\n};\nconst points = turf.randomPoint(100, options);\nconst voronoiPolygons = turf.voronoi(points, options);\n\n//addToMap\nconst addToMap = [voronoiPolygons, points];\n```\n\nReturns **[FeatureCollection][1]<[Polygon][5]>** a set of polygons, one per input point\n\n[1]: https://tools.ietf.org/html/rfc7946#section-3.3\n\n[2]: https://tools.ietf.org/html/rfc7946#section-3.1.2\n\n[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object\n\n[4]: https://tools.ietf.org/html/rfc7946#section-5\n\n[5]: https://tools.ietf.org/html/rfc7946#section-3.1.6\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/voronoi\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":1735448346186,"maintainers":[{"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"},{"name":"twelch","email":"tim.j.welch@gmail.com"},{"name":"jamesmilneruk","email":"jamesmilner22@hotmail.com"},{"name":"morgan.herlocker","email":"morganherlocker@gmail.com"},{"name":"smallsaucepan","email":"james@smallsaucepan.com"}],"_cnpm_publish_time":1735448346186,"dist-tags":{"latest":"7.4.0","prerelease":"7.1.0-alpha.70"}}