🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@turf/angle

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/angle - npm Package Compare versions

Comparing version

to
7.2.0

2

dist/esm/index.d.ts

@@ -7,3 +7,3 @@ import { Coord } from '@turf/helpers';

*
* @name angle
* @function
* @param {Coord} startPoint Start Point Coordinates

@@ -10,0 +10,0 @@ * @param {Coord} midPoint Mid Point Coordinates

@@ -21,13 +21,16 @@ // index.ts

const B = endPoint;
const azimuthAO = bearingToAzimuth(
options.mercator !== true ? bearing(A, O) : rhumbBearing(A, O)
const azimuthOA = bearingToAzimuth(
options.mercator !== true ? bearing(O, A) : rhumbBearing(O, A)
);
const azimuthBO = bearingToAzimuth(
options.mercator !== true ? bearing(B, O) : rhumbBearing(B, O)
let azimuthOB = bearingToAzimuth(
options.mercator !== true ? bearing(O, B) : rhumbBearing(O, B)
);
const angleAO = Math.abs(azimuthAO - azimuthBO);
if (azimuthOB < azimuthOA) {
azimuthOB = azimuthOB + 360;
}
const angleAOB = azimuthOB - azimuthOA;
if (options.explementary === true) {
return 360 - angleAO;
return 360 - angleAOB;
}
return angleAO;
return angleAOB;
}

@@ -34,0 +37,0 @@ var turf_angle_default = angle;

{
"name": "@turf/angle",
"version": "7.1.0",
"version": "7.2.0",
"description": "turf angle module",

@@ -55,7 +55,7 @@ "author": "Turf Authors",

"devDependencies": {
"@turf/distance": "^7.1.0",
"@turf/sector": "^7.1.0",
"@turf/truncate": "^7.1.0",
"@turf/distance": "^7.2.0",
"@turf/sector": "^7.2.0",
"@turf/truncate": "^7.2.0",
"@types/benchmark": "^2.1.5",
"@types/tape": "^4.2.32",
"@types/tape": "^4.13.4",
"benchmark": "^2.1.4",

@@ -65,17 +65,17 @@ "glob": "^10.3.10",

"npm-run-all": "^4.1.5",
"tape": "^5.7.2",
"tsup": "^8.0.1",
"tsx": "^4.6.2",
"typescript": "^5.2.2",
"tape": "^5.9.0",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "^5.5.4",
"write-json-file": "^5.0.0"
},
"dependencies": {
"@turf/bearing": "^7.1.0",
"@turf/helpers": "^7.1.0",
"@turf/invariant": "^7.1.0",
"@turf/rhumb-bearing": "^7.1.0",
"@turf/bearing": "^7.2.0",
"@turf/helpers": "^7.2.0",
"@turf/invariant": "^7.2.0",
"@turf/rhumb-bearing": "^7.2.0",
"@types/geojson": "^7946.0.10",
"tslib": "^2.6.2"
"tslib": "^2.8.1"
},
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
"gitHead": "7b0f0374c4668cd569f8904c71e2ae7d941be867"
}

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

Sorry, the diff of this file is not supported yet