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

79
frontend/node_modules/@turf/planepoint/README.md generated vendored Normal file
View File

@@ -0,0 +1,79 @@
# @turf/planepoint
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## planepoint
Takes a triangular plane as a [Polygon][1]
and a [Point][2] within that triangle and returns the z-value
at that point. The Polygon should have properties `a`, `b`, and `c`
that define the values at its three corners. Alternatively, the z-values
of each triangle point can be provided by their respective 3rd coordinate
if their values are not provided as properties.
**Parameters**
- `point` **[Coord][3]** the Point for which a z-value will be calculated
- `triangle` **[Feature][4]&lt;[Polygon][5]>** a Polygon feature with three vertices
**Examples**
```javascript
var point = turf.point([-75.3221, 39.529]);
// "a", "b", and "c" values represent the values of the coordinates in order.
var triangle = turf.polygon([[
[-75.1221, 39.57],
[-75.58, 39.18],
[-75.97, 39.86],
[-75.1221, 39.57]
]], {
"a": 11,
"b": 122,
"c": 44
});
var zValue = turf.planepoint(point, triangle);
point.properties.zValue = zValue;
//addToMap
var addToMap = [triangle, point];
```
Returns **[number][6]** the z-value for `interpolatedPoint`
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.6
[2]: https://tools.ietf.org/html/rfc7946#section-3.1.2
[3]: https://tools.ietf.org/html/rfc7946#section-3.1.1
[4]: https://tools.ietf.org/html/rfc7946#section-3.2
[5]: https://tools.ietf.org/html/rfc7946#section-3.1.6
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
<!-- 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/planepoint
```
Or install the Turf module that includes it as a function:
```sh
$ npm install @turf/turf
```

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

@@ -0,0 +1,77 @@
import { getCoord, getGeom } from '@turf/invariant';
/**
* Takes a triangular plane as a {@link Polygon}
* and a {@link Point} within that triangle and returns the z-value
* at that point. The Polygon should have properties `a`, `b`, and `c`
* that define the values at its three corners. Alternatively, the z-values
* of each triangle point can be provided by their respective 3rd coordinate
* if their values are not provided as properties.
*
* @name planepoint
* @param {Coord} point the Point for which a z-value will be calculated
* @param {Feature<Polygon>} triangle a Polygon feature with three vertices
* @returns {number} the z-value for `interpolatedPoint`
* @example
* var point = turf.point([-75.3221, 39.529]);
* // "a", "b", and "c" values represent the values of the coordinates in order.
* var triangle = turf.polygon([[
* [-75.1221, 39.57],
* [-75.58, 39.18],
* [-75.97, 39.86],
* [-75.1221, 39.57]
* ]], {
* "a": 11,
* "b": 122,
* "c": 44
* });
*
* var zValue = turf.planepoint(point, triangle);
* point.properties.zValue = zValue;
*
* //addToMap
* var addToMap = [triangle, point];
*/
function planepoint(point, triangle) {
// Normalize input
var coord = getCoord(point);
var geom = getGeom(triangle);
var coords = geom.coordinates;
var outer = coords[0];
if (outer.length < 4)
throw new Error("OuterRing of a Polygon must have 4 or more Positions.");
var properties = triangle.properties || {};
var a = properties.a;
var b = properties.b;
var c = properties.c;
// Planepoint
var x = coord[0];
var y = coord[1];
var x1 = outer[0][0];
var y1 = outer[0][1];
var z1 = a !== undefined ? a : outer[0][2];
var x2 = outer[1][0];
var y2 = outer[1][1];
var z2 = b !== undefined ? b : outer[1][2];
var x3 = outer[2][0];
var y3 = outer[2][1];
var z3 = c !== undefined ? c : outer[2][2];
var z =
(z3 * (x - x1) * (y - y2) +
z1 * (x - x2) * (y - y3) +
z2 * (x - x3) * (y - y1) -
z2 * (x - x1) * (y - y3) -
z3 * (x - x2) * (y - y1) -
z1 * (x - x3) * (y - y2)) /
((x - x1) * (y - y2) +
(x - x2) * (y - y3) +
(x - x3) * (y - y1) -
(x - x1) * (y - y3) -
(x - x2) * (y - y1) -
(x - x3) * (y - y2));
return z;
}
export default planepoint;

View File

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

80
frontend/node_modules/@turf/planepoint/dist/js/index.js generated vendored Executable file
View File

@@ -0,0 +1,80 @@
'use strict';
var invariant = require('@turf/invariant');
/**
* Takes a triangular plane as a {@link Polygon}
* and a {@link Point} within that triangle and returns the z-value
* at that point. The Polygon should have properties `a`, `b`, and `c`
* that define the values at its three corners. Alternatively, the z-values
* of each triangle point can be provided by their respective 3rd coordinate
* if their values are not provided as properties.
*
* @name planepoint
* @param {Coord} point the Point for which a z-value will be calculated
* @param {Feature<Polygon>} triangle a Polygon feature with three vertices
* @returns {number} the z-value for `interpolatedPoint`
* @example
* var point = turf.point([-75.3221, 39.529]);
* // "a", "b", and "c" values represent the values of the coordinates in order.
* var triangle = turf.polygon([[
* [-75.1221, 39.57],
* [-75.58, 39.18],
* [-75.97, 39.86],
* [-75.1221, 39.57]
* ]], {
* "a": 11,
* "b": 122,
* "c": 44
* });
*
* var zValue = turf.planepoint(point, triangle);
* point.properties.zValue = zValue;
*
* //addToMap
* var addToMap = [triangle, point];
*/
function planepoint(point, triangle) {
// Normalize input
var coord = invariant.getCoord(point);
var geom = invariant.getGeom(triangle);
var coords = geom.coordinates;
var outer = coords[0];
if (outer.length < 4)
throw new Error("OuterRing of a Polygon must have 4 or more Positions.");
var properties = triangle.properties || {};
var a = properties.a;
var b = properties.b;
var c = properties.c;
// Planepoint
var x = coord[0];
var y = coord[1];
var x1 = outer[0][0];
var y1 = outer[0][1];
var z1 = a !== undefined ? a : outer[0][2];
var x2 = outer[1][0];
var y2 = outer[1][1];
var z2 = b !== undefined ? b : outer[1][2];
var x3 = outer[2][0];
var y3 = outer[2][1];
var z3 = c !== undefined ? c : outer[2][2];
var z =
(z3 * (x - x1) * (y - y2) +
z1 * (x - x2) * (y - y3) +
z2 * (x - x3) * (y - y1) -
z2 * (x - x1) * (y - y3) -
z3 * (x - x2) * (y - y1) -
z1 * (x - x3) * (y - y2)) /
((x - x1) * (y - y2) +
(x - x2) * (y - y3) +
(x - x3) * (y - y1) -
(x - x1) * (y - y3) -
(x - x2) * (y - y1) -
(x - x3) * (y - y2));
return z;
}
module.exports = planepoint;
module.exports.default = planepoint;

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

@@ -0,0 +1,9 @@
import { Feature, Coord, Polygon } from "@turf/helpers";
/**
* http://turfjs.org/docs/#planepoint
*/
export default function planepoint(
point: Coord,
triangle: Feature<Polygon> | Polygon
): number;

60
frontend/node_modules/@turf/planepoint/package.json generated vendored Normal file
View File

@@ -0,0 +1,60 @@
{
"name": "@turf/planepoint",
"version": "6.5.0",
"description": "turf planepoint 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",
"geojson",
"plane",
"point",
"interpolation"
],
"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": {
"benchmark": "*",
"npm-run-all": "*",
"rollup": "*",
"tape": "*"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}