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/line-slice/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/line-slice/README.md generated vendored Normal file
View File

@@ -0,0 +1,74 @@
# @turf/line-slice
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
## lineSlice
Takes a [line][1], a start [Point][2], and a stop point
and returns a subsection of the line in-between those points.
The start & stop points don't need to fall exactly on the line.
This can be useful for extracting only the part of a route between waypoints.
**Parameters**
- `startPt` **[Coord][3]** starting point
- `stopPt` **[Coord][3]** stopping point
- `line` **([Feature][4]&lt;[LineString][5]> | [LineString][5])** line to slice
**Examples**
```javascript
var line = turf.lineString([
[-77.031669, 38.878605],
[-77.029609, 38.881946],
[-77.020339, 38.884084],
[-77.025661, 38.885821],
[-77.021884, 38.889563],
[-77.019824, 38.892368]
]);
var start = turf.point([-77.029609, 38.881946]);
var stop = turf.point([-77.021884, 38.889563]);
var sliced = turf.lineSlice(start, stop, line);
//addToMap
var addToMap = [start, stop, line]
```
Returns **[Feature][4]&lt;[LineString][5]>** sliced line
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4
[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.4
<!-- 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/line-slice
```
Or install the Turf module that includes it as a function:
```sh
$ npm install @turf/turf
```

60
frontend/node_modules/@turf/line-slice/dist/es/index.js generated vendored Executable file
View File

@@ -0,0 +1,60 @@
import { getCoords, getType } from '@turf/invariant';
import { lineString } from '@turf/helpers';
import nearestPointOnLine from '@turf/nearest-point-on-line';
/**
* Takes a {@link LineString|line}, a start {@link Point}, and a stop point
* and returns a subsection of the line in-between those points.
* The start & stop points don't need to fall exactly on the line.
*
* This can be useful for extracting only the part of a route between waypoints.
*
* @name lineSlice
* @param {Coord} startPt starting point
* @param {Coord} stopPt stopping point
* @param {Feature<LineString>|LineString} line line to slice
* @returns {Feature<LineString>} sliced line
* @example
* var line = turf.lineString([
* [-77.031669, 38.878605],
* [-77.029609, 38.881946],
* [-77.020339, 38.884084],
* [-77.025661, 38.885821],
* [-77.021884, 38.889563],
* [-77.019824, 38.892368]
* ]);
* var start = turf.point([-77.029609, 38.881946]);
* var stop = turf.point([-77.021884, 38.889563]);
*
* var sliced = turf.lineSlice(start, stop, line);
*
* //addToMap
* var addToMap = [start, stop, line]
*/
function lineSlice(startPt, stopPt, line) {
// Validation
var coords = getCoords(line);
if (getType(line) !== "LineString")
throw new Error("line must be a LineString");
var startVertex = nearestPointOnLine(line, startPt);
var stopVertex = nearestPointOnLine(line, stopPt);
var ends;
if (startVertex.properties.index <= stopVertex.properties.index) {
ends = [startVertex, stopVertex];
} else {
ends = [stopVertex, startVertex];
}
var clipCoords = [ends[0].geometry.coordinates];
for (
var i = ends[0].properties.index + 1;
i < ends[1].properties.index + 1;
i++
) {
clipCoords.push(coords[i]);
}
clipCoords.push(ends[1].geometry.coordinates);
return lineString(clipCoords, line.properties);
}
export default lineSlice;

View File

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

67
frontend/node_modules/@turf/line-slice/dist/js/index.js generated vendored Executable file
View File

@@ -0,0 +1,67 @@
'use strict';
var invariant = require('@turf/invariant');
var helpers = require('@turf/helpers');
var nearestPointOnLine = require('@turf/nearest-point-on-line');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var nearestPointOnLine__default = /*#__PURE__*/_interopDefaultLegacy(nearestPointOnLine);
/**
* Takes a {@link LineString|line}, a start {@link Point}, and a stop point
* and returns a subsection of the line in-between those points.
* The start & stop points don't need to fall exactly on the line.
*
* This can be useful for extracting only the part of a route between waypoints.
*
* @name lineSlice
* @param {Coord} startPt starting point
* @param {Coord} stopPt stopping point
* @param {Feature<LineString>|LineString} line line to slice
* @returns {Feature<LineString>} sliced line
* @example
* var line = turf.lineString([
* [-77.031669, 38.878605],
* [-77.029609, 38.881946],
* [-77.020339, 38.884084],
* [-77.025661, 38.885821],
* [-77.021884, 38.889563],
* [-77.019824, 38.892368]
* ]);
* var start = turf.point([-77.029609, 38.881946]);
* var stop = turf.point([-77.021884, 38.889563]);
*
* var sliced = turf.lineSlice(start, stop, line);
*
* //addToMap
* var addToMap = [start, stop, line]
*/
function lineSlice(startPt, stopPt, line) {
// Validation
var coords = invariant.getCoords(line);
if (invariant.getType(line) !== "LineString")
throw new Error("line must be a LineString");
var startVertex = nearestPointOnLine__default['default'](line, startPt);
var stopVertex = nearestPointOnLine__default['default'](line, stopPt);
var ends;
if (startVertex.properties.index <= stopVertex.properties.index) {
ends = [startVertex, stopVertex];
} else {
ends = [stopVertex, startVertex];
}
var clipCoords = [ends[0].geometry.coordinates];
for (
var i = ends[0].properties.index + 1;
i < ends[1].properties.index + 1;
i++
) {
clipCoords.push(coords[i]);
}
clipCoords.push(ends[1].geometry.coordinates);
return helpers.lineString(clipCoords, line.properties);
}
module.exports = lineSlice;
module.exports.default = lineSlice;

10
frontend/node_modules/@turf/line-slice/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import { Feature, LineString, Coord } from "@turf/helpers";
/**
* http://turfjs.org/docs/#lineslice
*/
export default function lineSlice(
startPt: Coord,
stopPt: Coord,
line: Feature<LineString> | LineString
): Feature<LineString>;

65
frontend/node_modules/@turf/line-slice/package.json generated vendored Normal file
View File

@@ -0,0 +1,65 @@
{
"name": "@turf/line-slice",
"version": "6.5.0",
"description": "turf line-slice 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",
"linestring",
"geojson",
"linear",
"reference",
"line",
"distance"
],
"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": {
"@turf/truncate": "^6.5.0",
"benchmark": "*",
"load-json-file": "*",
"npm-run-all": "*",
"rollup": "*",
"tape": "*",
"write-json-file": "*"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0",
"@turf/nearest-point-on-line": "^6.5.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
}