@turf/great-circle
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.js | ||
@@ -10,3 +7,3 @@ import { getCoord } from "@turf/invariant"; | ||
var R2D = 180 / Math.PI; | ||
var Coord = /* @__PURE__ */ __name(function(lon, lat) { | ||
var Coord = function(lon, lat) { | ||
this.lon = lon; | ||
@@ -16,3 +13,3 @@ this.lat = lat; | ||
this.y = D2R * lat; | ||
}, "Coord"); | ||
}; | ||
Coord.prototype.view = function() { | ||
@@ -26,6 +23,6 @@ return String(this.lon).slice(0, 4) + "," + String(this.lat).slice(0, 4); | ||
}; | ||
var LineString = /* @__PURE__ */ __name(function() { | ||
var LineString = function() { | ||
this.coords = []; | ||
this.length = 0; | ||
}, "LineString"); | ||
}; | ||
LineString.prototype.move_to = function(coord) { | ||
@@ -35,6 +32,6 @@ this.length++; | ||
}; | ||
var Arc = /* @__PURE__ */ __name(function(properties) { | ||
var Arc = function(properties) { | ||
this.properties = properties || {}; | ||
this.geometries = []; | ||
}, "Arc"); | ||
}; | ||
Arc.prototype.json = function() { | ||
@@ -68,5 +65,5 @@ if (this.geometries.length <= 0) { | ||
var wkt = "LINESTRING("; | ||
var collect = /* @__PURE__ */ __name(function(c) { | ||
var collect = function(c) { | ||
wkt += c[0] + " " + c[1] + ","; | ||
}, "collect"); | ||
}; | ||
for (var i = 0; i < this.geometries.length; i++) { | ||
@@ -83,3 +80,3 @@ if (this.geometries[i].coords.length === 0) { | ||
}; | ||
var GreatCircle = /* @__PURE__ */ __name(function(start, end, properties) { | ||
var GreatCircle = function(start, end, properties) { | ||
if (!start || start.x === void 0 || start.y === void 0) { | ||
@@ -111,3 +108,3 @@ throw new Error( | ||
} | ||
}, "GreatCircle"); | ||
}; | ||
GreatCircle.prototype.interpolate = function(f) { | ||
@@ -247,3 +244,2 @@ var A = Math.sin((1 - f) * this.g) / Math.sin(this.g); | ||
} | ||
__name(greatCircle, "greatCircle"); | ||
var turf_great_circle_default = greatCircle; | ||
@@ -250,0 +246,0 @@ export { |
{ | ||
"name": "@turf/great-circle", | ||
"version": "7.0.0", | ||
"version": "7.1.0-alpha.7+0ce6ecca0", | ||
"description": "turf great-circle module", | ||
@@ -61,3 +61,3 @@ "author": "Turf Authors", | ||
"devDependencies": { | ||
"@turf/truncate": "^7.0.0", | ||
"@turf/truncate": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@types/benchmark": "^2.1.5", | ||
@@ -74,6 +74,6 @@ "@types/tape": "^4.2.32", | ||
"dependencies": { | ||
"@turf/helpers": "^7.0.0", | ||
"@turf/invariant": "^7.0.0" | ||
"@turf/helpers": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/invariant": "^7.1.0-alpha.7+0ce6ecca0" | ||
}, | ||
"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
63403
542
1
1