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/ellipse/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.

72
frontend/node_modules/@turf/ellipse/README.md generated vendored Normal file
View File

@@ -0,0 +1,72 @@
# @turf/ellipse
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## ellipse
Takes a [Point][1] and calculates the ellipse polygon given two semi-axes expressed in variable units and steps for precision.
**Parameters**
- `center` **[Coord][2]** center point
- `xSemiAxis` **[number][3]** semi (major) axis of the ellipse along the x-axis
- `ySemiAxis` **[number][3]** semi (minor) axis of the ellipse along the y-axis
- `options` **[Object][4]** Optional parameters (optional, default `{}`)
- `options.angle` **[number][3]** angle of rotation (along the vertical axis), from North in decimal degrees, negative clockwise (optional, default `0`)
- `options.pivot` **[Coord][2]** point around which the rotation will be performed (optional, default `'origin'`)
- `options.steps` **[number][3]** number of steps (optional, default `64`)
- `options.units` **[string][5]** unit of measurement for axes (optional, default `'kilometers'`)
- `options.properties` **[Object][4]** properties (optional, default `{}`)
**Examples**
```javascript
var center = [-75, 40];
var xSemiAxis = 5;
var ySemiAxis = 2;
var ellipse = turf.ellipse(center, xSemiAxis, ySemiAxis);
//addToMap
var addToMap = [turf.point(center), ellipse]
```
Returns **[Feature][6]&lt;[Polygon][7]>** ellipse polygon
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.2
[2]: https://tools.ietf.org/html/rfc7946#section-3.1.1
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
[6]: https://tools.ietf.org/html/rfc7946#section-3.2
[7]: 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/ellipse
```
Or install the Turf module that includes it as a function:
```sh
$ npm install @turf/turf
```

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

@@ -0,0 +1,104 @@
import { isObject, isNumber, degreesToRadians, polygon } from '@turf/helpers';
import rhumbDestination from '@turf/rhumb-destination';
import transformRotate from '@turf/transform-rotate';
import { getCoord } from '@turf/invariant';
/**
* Takes a {@link Point} and calculates the ellipse polygon given two semi-axes expressed in variable units and steps for precision.
*
* @param {Coord} center center point
* @param {number} xSemiAxis semi (major) axis of the ellipse along the x-axis
* @param {number} ySemiAxis semi (minor) axis of the ellipse along the y-axis
* @param {Object} [options={}] Optional parameters
* @param {number} [options.angle=0] angle of rotation in decimal degrees, positive clockwise
* @param {Coord} [options.pivot='origin'] point around which the rotation will be performed
* @param {number} [options.steps=64] number of steps
* @param {string} [options.units='kilometers'] unit of measurement for axes
* @param {Object} [options.properties={}] properties
* @returns {Feature<Polygon>} ellipse polygon
* @example
* var center = [-75, 40];
* var xSemiAxis = 5;
* var ySemiAxis = 2;
* var ellipse = turf.ellipse(center, xSemiAxis, ySemiAxis);
*
* //addToMap
* var addToMap = [turf.point(center), ellipse]
*/
function ellipse(center, xSemiAxis, ySemiAxis, options) {
// Optional params
options = options || {};
var steps = options.steps || 64;
var units = options.units || "kilometers";
var angle = options.angle || 0;
var pivot = options.pivot || center;
var properties = options.properties || center.properties || {};
// validation
if (!center) throw new Error("center is required");
if (!xSemiAxis) throw new Error("xSemiAxis is required");
if (!ySemiAxis) throw new Error("ySemiAxis is required");
if (!isObject(options)) throw new Error("options must be an object");
if (!isNumber(steps)) throw new Error("steps must be a number");
if (!isNumber(angle)) throw new Error("angle must be a number");
var centerCoords = getCoord(center);
if (units === "degrees") {
var angleRad = degreesToRadians(angle);
} else {
xSemiAxis = rhumbDestination(center, xSemiAxis, 90, { units: units });
ySemiAxis = rhumbDestination(center, ySemiAxis, 0, { units: units });
xSemiAxis = getCoord(xSemiAxis)[0] - centerCoords[0];
ySemiAxis = getCoord(ySemiAxis)[1] - centerCoords[1];
}
var coordinates = [];
for (var i = 0; i < steps; i += 1) {
var stepAngle = (i * -360) / steps;
var x =
(xSemiAxis * ySemiAxis) /
Math.sqrt(
Math.pow(ySemiAxis, 2) +
Math.pow(xSemiAxis, 2) * Math.pow(getTanDeg(stepAngle), 2)
);
var y =
(xSemiAxis * ySemiAxis) /
Math.sqrt(
Math.pow(xSemiAxis, 2) +
Math.pow(ySemiAxis, 2) / Math.pow(getTanDeg(stepAngle), 2)
);
if (stepAngle < -90 && stepAngle >= -270) x = -x;
if (stepAngle < -180 && stepAngle >= -360) y = -y;
if (units === "degrees") {
var newx = x * Math.cos(angleRad) + y * Math.sin(angleRad);
var newy = y * Math.cos(angleRad) - x * Math.sin(angleRad);
x = newx;
y = newy;
}
coordinates.push([x + centerCoords[0], y + centerCoords[1]]);
}
coordinates.push(coordinates[0]);
if (units === "degrees") {
return polygon([coordinates], properties);
} else {
return transformRotate(polygon([coordinates], properties), angle, {
pivot: pivot,
});
}
}
/**
* Get Tan Degrees
*
* @private
* @param {number} deg Degrees
* @returns {number} Tan Degrees
*/
function getTanDeg(deg) {
var rad = (deg * Math.PI) / 180;
return Math.tan(rad);
}
export default ellipse;

View File

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

112
frontend/node_modules/@turf/ellipse/dist/js/index.js generated vendored Executable file
View File

@@ -0,0 +1,112 @@
'use strict';
var helpers = require('@turf/helpers');
var rhumbDestination = require('@turf/rhumb-destination');
var transformRotate = require('@turf/transform-rotate');
var invariant = require('@turf/invariant');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var rhumbDestination__default = /*#__PURE__*/_interopDefaultLegacy(rhumbDestination);
var transformRotate__default = /*#__PURE__*/_interopDefaultLegacy(transformRotate);
/**
* Takes a {@link Point} and calculates the ellipse polygon given two semi-axes expressed in variable units and steps for precision.
*
* @param {Coord} center center point
* @param {number} xSemiAxis semi (major) axis of the ellipse along the x-axis
* @param {number} ySemiAxis semi (minor) axis of the ellipse along the y-axis
* @param {Object} [options={}] Optional parameters
* @param {number} [options.angle=0] angle of rotation in decimal degrees, positive clockwise
* @param {Coord} [options.pivot='origin'] point around which the rotation will be performed
* @param {number} [options.steps=64] number of steps
* @param {string} [options.units='kilometers'] unit of measurement for axes
* @param {Object} [options.properties={}] properties
* @returns {Feature<Polygon>} ellipse polygon
* @example
* var center = [-75, 40];
* var xSemiAxis = 5;
* var ySemiAxis = 2;
* var ellipse = turf.ellipse(center, xSemiAxis, ySemiAxis);
*
* //addToMap
* var addToMap = [turf.point(center), ellipse]
*/
function ellipse(center, xSemiAxis, ySemiAxis, options) {
// Optional params
options = options || {};
var steps = options.steps || 64;
var units = options.units || "kilometers";
var angle = options.angle || 0;
var pivot = options.pivot || center;
var properties = options.properties || center.properties || {};
// validation
if (!center) throw new Error("center is required");
if (!xSemiAxis) throw new Error("xSemiAxis is required");
if (!ySemiAxis) throw new Error("ySemiAxis is required");
if (!helpers.isObject(options)) throw new Error("options must be an object");
if (!helpers.isNumber(steps)) throw new Error("steps must be a number");
if (!helpers.isNumber(angle)) throw new Error("angle must be a number");
var centerCoords = invariant.getCoord(center);
if (units === "degrees") {
var angleRad = helpers.degreesToRadians(angle);
} else {
xSemiAxis = rhumbDestination__default['default'](center, xSemiAxis, 90, { units: units });
ySemiAxis = rhumbDestination__default['default'](center, ySemiAxis, 0, { units: units });
xSemiAxis = invariant.getCoord(xSemiAxis)[0] - centerCoords[0];
ySemiAxis = invariant.getCoord(ySemiAxis)[1] - centerCoords[1];
}
var coordinates = [];
for (var i = 0; i < steps; i += 1) {
var stepAngle = (i * -360) / steps;
var x =
(xSemiAxis * ySemiAxis) /
Math.sqrt(
Math.pow(ySemiAxis, 2) +
Math.pow(xSemiAxis, 2) * Math.pow(getTanDeg(stepAngle), 2)
);
var y =
(xSemiAxis * ySemiAxis) /
Math.sqrt(
Math.pow(xSemiAxis, 2) +
Math.pow(ySemiAxis, 2) / Math.pow(getTanDeg(stepAngle), 2)
);
if (stepAngle < -90 && stepAngle >= -270) x = -x;
if (stepAngle < -180 && stepAngle >= -360) y = -y;
if (units === "degrees") {
var newx = x * Math.cos(angleRad) + y * Math.sin(angleRad);
var newy = y * Math.cos(angleRad) - x * Math.sin(angleRad);
x = newx;
y = newy;
}
coordinates.push([x + centerCoords[0], y + centerCoords[1]]);
}
coordinates.push(coordinates[0]);
if (units === "degrees") {
return helpers.polygon([coordinates], properties);
} else {
return transformRotate__default['default'](helpers.polygon([coordinates], properties), angle, {
pivot: pivot,
});
}
}
/**
* Get Tan Degrees
*
* @private
* @param {number} deg Degrees
* @returns {number} Tan Degrees
*/
function getTanDeg(deg) {
var rad = (deg * Math.PI) / 180;
return Math.tan(rad);
}
module.exports = ellipse;
module.exports.default = ellipse;

15
frontend/node_modules/@turf/ellipse/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import { Feature, Coord, Polygon, Units, Properties } from "@turf/helpers";
/**
* http://turfjs.org/docs/#ellipse
*/
export default function (
center: Coord,
xSemiAxis: number,
ySemiAxis: number,
options?: {
steps?: number;
units?: Units;
properties?: Properties;
}
): Feature<Polygon>;

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

@@ -0,0 +1,69 @@
{
"name": "@turf/ellipse",
"version": "6.5.0",
"description": "turf ellipse module",
"author": "Turf Authors",
"contributors": [
"Moacir P. de Sá Pereira <@muziejus>"
],
"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",
"ellipse"
],
"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": {
"@mapbox/geojsonhint": "*",
"@turf/bbox-polygon": "^6.5.0",
"@turf/circle": "^6.5.0",
"@turf/destination": "^6.5.0",
"@turf/truncate": "^6.5.0",
"benchmark": "*",
"glob": "*",
"load-json-file": "*",
"npm-run-all": "*",
"rollup": "*",
"tape": "*",
"write-json-file": "*"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0",
"@turf/rhumb-destination": "^6.5.0",
"@turf/transform-rotate": "^6.5.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}