@turf/point-to-line-distance
Advanced tools
Comparing version 7.0.0 to 7.1.0-alpha.7
@@ -1,4 +0,1 @@ | ||
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
// index.ts | ||
@@ -54,3 +51,2 @@ import { distance as getDistance } from "@turf/distance"; | ||
} | ||
__name(pointToLineDistance, "pointToLineDistance"); | ||
function distanceToSegment(p, a, b, options) { | ||
@@ -71,11 +67,8 @@ const v = [b[0] - a[0], b[1] - a[1]]; | ||
} | ||
__name(distanceToSegment, "distanceToSegment"); | ||
function dot(u, v) { | ||
return u[0] * v[0] + u[1] * v[1]; | ||
} | ||
__name(dot, "dot"); | ||
function calcDistance(a, b, options) { | ||
return options.method === "planar" ? getPlanarDistance(a, b, options) : getDistance(a, b, options); | ||
} | ||
__name(calcDistance, "calcDistance"); | ||
var turf_point_to_line_distance_default = pointToLineDistance; | ||
@@ -82,0 +75,0 @@ export { |
{ | ||
"name": "@turf/point-to-line-distance", | ||
"version": "7.0.0", | ||
"version": "7.1.0-alpha.7+0ce6ecca0", | ||
"description": "turf point-to-line-distance module", | ||
@@ -57,3 +57,3 @@ "author": "Turf Authors", | ||
"devDependencies": { | ||
"@turf/circle": "^7.0.0", | ||
"@turf/circle": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@types/benchmark": "^2.1.5", | ||
@@ -71,13 +71,13 @@ "@types/tape": "^4.2.32", | ||
"dependencies": { | ||
"@turf/bearing": "^7.0.0", | ||
"@turf/distance": "^7.0.0", | ||
"@turf/helpers": "^7.0.0", | ||
"@turf/invariant": "^7.0.0", | ||
"@turf/meta": "^7.0.0", | ||
"@turf/projection": "^7.0.0", | ||
"@turf/rhumb-bearing": "^7.0.0", | ||
"@turf/rhumb-distance": "^7.0.0", | ||
"@turf/bearing": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/distance": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/helpers": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/invariant": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/meta": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/projection": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/rhumb-bearing": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/rhumb-distance": "^7.1.0-alpha.7+0ce6ecca0", | ||
"tslib": "^2.6.2" | ||
}, | ||
"gitHead": "3d3a7917025fbabe191dbddbc89754b86f9c7739" | ||
"gitHead": "0ce6ecca05829690270fec6d6bed2003495fe0ea" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25016
171
1
1