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

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

@@ -0,0 +1,35 @@
import { featureEach, coordEach } from '@turf/meta';
import { point, featureCollection } from '@turf/helpers';
/**
* Takes a feature or set of features and returns all positions as {@link Point|points}.
*
* @name explode
* @param {GeoJSON} geojson input features
* @returns {FeatureCollection<point>} points representing the exploded input features
* @throws {Error} if it encounters an unknown geometry type
* @example
* var polygon = turf.polygon([[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]);
*
* var explode = turf.explode(polygon);
*
* //addToMap
* var addToMap = [polygon, explode]
*/
function explode(geojson) {
var points = [];
if (geojson.type === "FeatureCollection") {
featureEach(geojson, function (feature) {
coordEach(feature, function (coord) {
points.push(point(coord, feature.properties));
});
});
} else {
coordEach(geojson, function (coord) {
points.push(point(coord, geojson.properties));
});
}
return featureCollection(points);
}
export default explode;

View File

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

38
frontend/node_modules/@turf/explode/dist/js/index.js generated vendored Executable file
View File

@@ -0,0 +1,38 @@
'use strict';
var meta = require('@turf/meta');
var helpers = require('@turf/helpers');
/**
* Takes a feature or set of features and returns all positions as {@link Point|points}.
*
* @name explode
* @param {GeoJSON} geojson input features
* @returns {FeatureCollection<point>} points representing the exploded input features
* @throws {Error} if it encounters an unknown geometry type
* @example
* var polygon = turf.polygon([[[-81, 41], [-88, 36], [-84, 31], [-80, 33], [-77, 39], [-81, 41]]]);
*
* var explode = turf.explode(polygon);
*
* //addToMap
* var addToMap = [polygon, explode]
*/
function explode(geojson) {
var points = [];
if (geojson.type === "FeatureCollection") {
meta.featureEach(geojson, function (feature) {
meta.coordEach(feature, function (coord) {
points.push(helpers.point(coord, feature.properties));
});
});
} else {
meta.coordEach(geojson, function (coord) {
points.push(helpers.point(coord, geojson.properties));
});
}
return helpers.featureCollection(points);
}
module.exports = explode;
module.exports.default = explode;