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

74
frontend/node_modules/@turf/sector/README.md generated vendored Normal file
View File

@@ -0,0 +1,74 @@
# @turf/sector
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## sector
Creates a circular sector of a circle of given radius and center [Point][1],
between (clockwise) bearing1 and bearing2; 0 bearing is North of center point, positive clockwise.
**Parameters**
- `center` **[Coord][2]** center point
- `radius` **[number][3]** radius of the circle
- `bearing1` **[number][3]** angle, in decimal degrees, of the first radius of the sector
- `bearing2` **[number][3]** angle, in decimal degrees, of the second radius of the sector
- `options` **[Object][4]** Optional parameters (optional, default `{}`)
- `options.units` **[string][5]** miles, kilometers, degrees, or radians (optional, default `'kilometers'`)
- `options.steps` **[number][3]** number of steps (optional, default `64`)
- `options.properties` **Properties** Translate properties to Feature Polygon (optional, default `{}`)
**Examples**
```javascript
var center = turf.point([-75, 40]);
var radius = 5;
var bearing1 = 25;
var bearing2 = 45;
var sector = turf.sector(center, radius, bearing1, bearing2);
//addToMap
var addToMap = [center, sector];
```
Returns **[Feature][6]&lt;[Polygon][7]>** sector 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/sector
```
Or install the Turf module that includes it as a function:
```sh
$ npm install @turf/turf
```

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

@@ -0,0 +1,75 @@
import circle from '@turf/circle';
import lineArc from '@turf/line-arc';
import { coordEach } from '@turf/meta';
import { isObject, polygon } from '@turf/helpers';
import { getCoords } from '@turf/invariant';
/**
* Creates a circular sector of a circle of given radius and center {@link Point},
* between (clockwise) bearing1 and bearing2; 0 bearing is North of center point, positive clockwise.
*
* @name sector
* @param {Coord} center center point
* @param {number} radius radius of the circle
* @param {number} bearing1 angle, in decimal degrees, of the first radius of the sector
* @param {number} bearing2 angle, in decimal degrees, of the second radius of the sector
* @param {Object} [options={}] Optional parameters
* @param {string} [options.units='kilometers'] miles, kilometers, degrees, or radians
* @param {number} [options.steps=64] number of steps
* @param {Properties} [options.properties={}] Translate properties to Feature Polygon
* @returns {Feature<Polygon>} sector polygon
* @example
* var center = turf.point([-75, 40]);
* var radius = 5;
* var bearing1 = 25;
* var bearing2 = 45;
*
* var sector = turf.sector(center, radius, bearing1, bearing2);
*
* //addToMap
* var addToMap = [center, sector];
*/
function sector(center, radius, bearing1, bearing2, options) {
// Optional parameters
options = options || {};
if (!isObject(options)) throw new Error("options is invalid");
var properties = options.properties;
// validation
if (!center) throw new Error("center is required");
if (bearing1 === undefined || bearing1 === null)
throw new Error("bearing1 is required");
if (bearing2 === undefined || bearing2 === null)
throw new Error("bearing2 is required");
if (!radius) throw new Error("radius is required");
if (typeof options !== "object") throw new Error("options must be an object");
if (convertAngleTo360(bearing1) === convertAngleTo360(bearing2)) {
return circle(center, radius, options);
}
var coords = getCoords(center);
var arc = lineArc(center, radius, bearing1, bearing2, options);
var sliceCoords = [[coords]];
coordEach(arc, function (currentCoords) {
sliceCoords[0].push(currentCoords);
});
sliceCoords[0].push(coords);
return polygon(sliceCoords, properties);
}
/**
* Takes any angle in degrees
* and returns a valid angle between 0-360 degrees
*
* @private
* @param {number} alfa angle between -180-180 degrees
* @returns {number} angle between 0-360 degrees
*/
function convertAngleTo360(alfa) {
var beta = alfa % 360;
if (beta < 0) beta += 360;
return beta;
}
export default sector;

View File

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

83
frontend/node_modules/@turf/sector/dist/js/index.js generated vendored Executable file
View File

@@ -0,0 +1,83 @@
'use strict';
var circle = require('@turf/circle');
var lineArc = require('@turf/line-arc');
var meta = require('@turf/meta');
var helpers = require('@turf/helpers');
var invariant = require('@turf/invariant');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var circle__default = /*#__PURE__*/_interopDefaultLegacy(circle);
var lineArc__default = /*#__PURE__*/_interopDefaultLegacy(lineArc);
/**
* Creates a circular sector of a circle of given radius and center {@link Point},
* between (clockwise) bearing1 and bearing2; 0 bearing is North of center point, positive clockwise.
*
* @name sector
* @param {Coord} center center point
* @param {number} radius radius of the circle
* @param {number} bearing1 angle, in decimal degrees, of the first radius of the sector
* @param {number} bearing2 angle, in decimal degrees, of the second radius of the sector
* @param {Object} [options={}] Optional parameters
* @param {string} [options.units='kilometers'] miles, kilometers, degrees, or radians
* @param {number} [options.steps=64] number of steps
* @param {Properties} [options.properties={}] Translate properties to Feature Polygon
* @returns {Feature<Polygon>} sector polygon
* @example
* var center = turf.point([-75, 40]);
* var radius = 5;
* var bearing1 = 25;
* var bearing2 = 45;
*
* var sector = turf.sector(center, radius, bearing1, bearing2);
*
* //addToMap
* var addToMap = [center, sector];
*/
function sector(center, radius, bearing1, bearing2, options) {
// Optional parameters
options = options || {};
if (!helpers.isObject(options)) throw new Error("options is invalid");
var properties = options.properties;
// validation
if (!center) throw new Error("center is required");
if (bearing1 === undefined || bearing1 === null)
throw new Error("bearing1 is required");
if (bearing2 === undefined || bearing2 === null)
throw new Error("bearing2 is required");
if (!radius) throw new Error("radius is required");
if (typeof options !== "object") throw new Error("options must be an object");
if (convertAngleTo360(bearing1) === convertAngleTo360(bearing2)) {
return circle__default['default'](center, radius, options);
}
var coords = invariant.getCoords(center);
var arc = lineArc__default['default'](center, radius, bearing1, bearing2, options);
var sliceCoords = [[coords]];
meta.coordEach(arc, function (currentCoords) {
sliceCoords[0].push(currentCoords);
});
sliceCoords[0].push(coords);
return helpers.polygon(sliceCoords, properties);
}
/**
* Takes any angle in degrees
* and returns a valid angle between 0-360 degrees
*
* @private
* @param {number} alfa angle between -180-180 degrees
* @returns {number} angle between 0-360 degrees
*/
function convertAngleTo360(alfa) {
var beta = alfa % 360;
if (beta < 0) beta += 360;
return beta;
}
module.exports = sector;
module.exports.default = sector;

16
frontend/node_modules/@turf/sector/index.d.ts generated vendored Normal file
View File

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

63
frontend/node_modules/@turf/sector/package.json generated vendored Normal file
View File

@@ -0,0 +1,63 @@
{
"name": "@turf/sector",
"version": "6.5.0",
"description": "turf sector module",
"author": "Turf Authors",
"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",
"gif"
],
"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",
"test:types": "tsc --esModuleInterop --noEmit types.ts"
},
"devDependencies": {
"@turf/truncate": "^6.5.0",
"benchmark": "*",
"load-json-file": "*",
"npm-run-all": "*",
"rollup": "*",
"tape": "*",
"write-json-file": "*"
},
"dependencies": {
"@turf/circle": "^6.5.0",
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0",
"@turf/line-arc": "^6.5.0",
"@turf/meta": "^6.5.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}