all these changes

This commit is contained in:
Jake Kasper
2026-04-09 13:19:47 -05:00
parent e83a51a051
commit 65315f36d1
39102 changed files with 7932979 additions and 567 deletions

20
frontend/node_modules/@turf/voronoi/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 TurfJS
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

68
frontend/node_modules/@turf/voronoi/README.md generated vendored Normal file
View File

@@ -0,0 +1,68 @@
# @turf/voronoi
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## voronoi
Takes a FeatureCollection of points, and a bounding box, and returns a FeatureCollection
of Voronoi polygons.
The Voronoi algorithim used comes from the d3-voronoi package.
**Parameters**
- `points` **[FeatureCollection][1]&lt;[Point][2]>** to find the Voronoi polygons around.
- `options` **[Object][3]** Optional parameters (optional, default `{}`)
- `options.bbox` **[Array][4]&lt;[number][5]>** clipping rectangle, in [minX, minY, maxX, MaxY] order. (optional, default `[-180,-85,180,-85]`)
**Examples**
```javascript
var options = {
bbox: [-70, 40, -60, 60]
};
var points = turf.randomPoint(100, options);
var voronoiPolygons = turf.voronoi(points, options);
//addToMap
var addToMap = [voronoiPolygons, points];
```
Returns **[FeatureCollection][1]&lt;[Polygon][6]>** a set of polygons, one per input point.
[1]: https://tools.ietf.org/html/rfc7946#section-3.3
[2]: https://tools.ietf.org/html/rfc7946#section-3.1.2
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
[6]: https://tools.ietf.org/html/rfc7946#section-3.1.6
<!-- This file is automatically generated. Please don't edit it directly:
if you find an error, edit the source file (likely index.js), and re-run
./scripts/generate-readmes in the turf project. -->
---
This module is part of the [Turfjs project](http://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.
### Installation
Install this module individually:
```sh
$ npm install @turf/voronoi
```
Or install the Turf module that includes it as a function:
```sh
$ npm install @turf/turf
```

66
frontend/node_modules/@turf/voronoi/dist/es/index.js generated vendored Executable file
View File

@@ -0,0 +1,66 @@
import { isObject, featureCollection, polygon } from '@turf/helpers';
import { collectionOf } from '@turf/invariant';
import { voronoi as voronoi$1 } from 'd3-voronoi';
/**
* @private
* @param {Array<Array<number>>} coords representing a polygon
* @returns {Feature<Polygon>} polygon
*/
function coordsToPolygon(coords) {
coords = coords.slice();
coords.push(coords[0]);
return polygon([coords]);
}
/**
* Takes a FeatureCollection of points, and a bounding box, and returns a FeatureCollection
* of Voronoi polygons.
*
* The Voronoi algorithim used comes from the d3-voronoi package.
*
* @name voronoi
* @param {FeatureCollection<Point>} points to find the Voronoi polygons around.
* @param {Object} [options={}] Optional parameters
* @param {number[]} [options.bbox=[-180, -85, 180, -85]] clipping rectangle, in [minX, minY, maxX, MaxY] order.
* @returns {FeatureCollection<Polygon>} a set of polygons, one per input point.
* @example
* var options = {
* bbox: [-70, 40, -60, 60]
* };
* var points = turf.randomPoint(100, options);
* var voronoiPolygons = turf.voronoi(points, options);
*
* //addToMap
* var addToMap = [voronoiPolygons, points];
*/
function voronoi(points, options) {
// Optional params
options = options || {};
if (!isObject(options)) throw new Error("options is invalid");
var bbox = options.bbox || [-180, -85, 180, 85];
// Input Validation
if (!points) throw new Error("points is required");
if (!Array.isArray(bbox)) throw new Error("bbox is invalid");
collectionOf(points, "Point", "points");
// Main
return featureCollection(
voronoi$1()
.x(function (feature) {
return feature.geometry.coordinates[0];
})
.y(function (feature) {
return feature.geometry.coordinates[1];
})
.extent([
[bbox[0], bbox[1]],
[bbox[2], bbox[3]],
])
.polygons(points.features)
.map(coordsToPolygon)
);
}
export default voronoi;

View File

@@ -0,0 +1 @@
{"type":"module"}

69
frontend/node_modules/@turf/voronoi/dist/js/index.js generated vendored Executable file
View File

@@ -0,0 +1,69 @@
'use strict';
var helpers = require('@turf/helpers');
var invariant = require('@turf/invariant');
var d3voronoi = require('d3-voronoi');
/**
* @private
* @param {Array<Array<number>>} coords representing a polygon
* @returns {Feature<Polygon>} polygon
*/
function coordsToPolygon(coords) {
coords = coords.slice();
coords.push(coords[0]);
return helpers.polygon([coords]);
}
/**
* Takes a FeatureCollection of points, and a bounding box, and returns a FeatureCollection
* of Voronoi polygons.
*
* The Voronoi algorithim used comes from the d3-voronoi package.
*
* @name voronoi
* @param {FeatureCollection<Point>} points to find the Voronoi polygons around.
* @param {Object} [options={}] Optional parameters
* @param {number[]} [options.bbox=[-180, -85, 180, -85]] clipping rectangle, in [minX, minY, maxX, MaxY] order.
* @returns {FeatureCollection<Polygon>} a set of polygons, one per input point.
* @example
* var options = {
* bbox: [-70, 40, -60, 60]
* };
* var points = turf.randomPoint(100, options);
* var voronoiPolygons = turf.voronoi(points, options);
*
* //addToMap
* var addToMap = [voronoiPolygons, points];
*/
function voronoi(points, options) {
// Optional params
options = options || {};
if (!helpers.isObject(options)) throw new Error("options is invalid");
var bbox = options.bbox || [-180, -85, 180, 85];
// Input Validation
if (!points) throw new Error("points is required");
if (!Array.isArray(bbox)) throw new Error("bbox is invalid");
invariant.collectionOf(points, "Point", "points");
// Main
return helpers.featureCollection(
d3voronoi.voronoi()
.x(function (feature) {
return feature.geometry.coordinates[0];
})
.y(function (feature) {
return feature.geometry.coordinates[1];
})
.extent([
[bbox[0], bbox[1]],
[bbox[2], bbox[3]],
])
.polygons(points.features)
.map(coordsToPolygon)
);
}
module.exports = voronoi;
module.exports.default = voronoi;

9
frontend/node_modules/@turf/voronoi/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import { FeatureCollection, BBox, Point, Polygon } from "@turf/helpers";
/**
* http://turfjs.org/docs/#voronoi
*/
export default function voronoi(
points: FeatureCollection<Point>,
options: { bbox: BBox }
): FeatureCollection<Polygon>;

69
frontend/node_modules/@turf/voronoi/package.json generated vendored Normal file
View File

@@ -0,0 +1,69 @@
{
"name": "@turf/voronoi",
"version": "6.5.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"
],
"main": "dist/js/index.js",
"module": "dist/es/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
},
"types": "index.d.ts",
"sideEffects": false,
"files": [
"dist",
"index.d.ts"
],
"scripts": {
"bench": "node -r esm bench.js",
"build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
"docs": "node ../../scripts/generate-readmes",
"test": "npm-run-all test:*",
"test:tape": "node -r esm test.js"
},
"devDependencies": {
"benchmark": "*",
"glob": "*",
"load-json-file": "*",
"npm-run-all": "*",
"rollup": "*",
"tape": "*",
"write-json-file": "*"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0",
"d3-voronoi": "1.1.2"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}