planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

22
node_modules/ol/geom/flat/topology.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
/**
* @module ol/geom/flat/topology
*/
import { linearRing as linearRingArea } from './area.js';
/**
* Check if the linestring is a boundary.
* @param {Array<number>} flatCoordinates Flat coordinates.
* @param {number} offset Offset.
* @param {number} end End.
* @param {number} stride Stride.
* @return {boolean} The linestring is a boundary.
*/
export function lineStringIsClosed(flatCoordinates, offset, end, stride) {
var lastCoord = end - stride;
if (flatCoordinates[offset] === flatCoordinates[lastCoord] &&
flatCoordinates[offset + 1] === flatCoordinates[lastCoord + 1] &&
(end - offset) / stride > 3) {
return !!linearRingArea(flatCoordinates, offset, end, stride);
}
return false;
}
//# sourceMappingURL=topology.js.map