Socket
Socket
Sign inDemoInstall

@turf/line-arc

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-arc - npm Package Compare versions

Comparing version 5.0.4 to 5.1.0

main.mjs

2

index.js

@@ -10,3 +10,3 @@ import destination from '@turf/destination';

* @name lineArc
* @param {Feature<Point>} center center point
* @param {Coord} center center point
* @param {number} radius radius of the circle

@@ -13,0 +13,0 @@ * @param {number} bearing1 angle, in decimal degrees, of the first radius of the arc

@@ -14,3 +14,3 @@ 'use strict';

* @name lineArc
* @param {Feature<Point>} center center point
* @param {Coord} center center point
* @param {number} radius radius of the circle

@@ -37,3 +37,3 @@ * @param {number} bearing1 angle, in decimal degrees, of the first radius of the arc

options = options || {};
if (!helpers.isObject(options)) throw new Error('options is invalid');
if (!helpers.isObject(options)) { throw new Error('options is invalid'); }
var steps = options.steps;

@@ -43,7 +43,7 @@ var units = options.units;

// validation
if (!center) throw new Error('center is required');
if (!radius) throw new Error('radius is required');
if (bearing1 === undefined || bearing1 === null) throw new Error('bearing1 is required');
if (bearing2 === undefined || bearing2 === null) throw new Error('bearing2 is required');
if (typeof options !== 'object') throw new Error('options must be an object');
if (!center) { throw new Error('center is required'); }
if (!radius) { throw new Error('radius is required'); }
if (bearing1 === undefined || bearing1 === null) { throw new Error('bearing1 is required'); }
if (bearing2 === undefined || bearing2 === null) { throw new Error('bearing2 is required'); }
if (typeof options !== 'object') { throw new Error('options must be an object'); }

@@ -50,0 +50,0 @@ // default params

{
"name": "@turf/line-arc",
"version": "5.0.4",
"version": "5.1.0",
"description": "turf line-arc module",
"main": "main",
"module": "index",
"jsnext:main": "index",
"main": "main.js",
"module": "main.mjs",
"types": "index.d.ts",

@@ -12,3 +11,4 @@ "files": [

"index.d.ts",
"main.js"
"main.js",
"main.mjs"
],

@@ -18,3 +18,4 @@ "scripts": {

"test": "node -r @std/esm test.js",
"bench": "node -r @std/esm bench.js"
"bench": "node -r @std/esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},

@@ -37,6 +38,7 @@ "repository": {

"@std/esm": "*",
"@turf/truncate": "^5.0.4",
"@turf/truncate": "^5.1.0",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
"rollup-plugin-buble": "*",
"tape": "*",

@@ -46,5 +48,5 @@ "write-json-file": "*"

"dependencies": {
"@turf/circle": "^5.0.4",
"@turf/destination": "^5.0.4",
"@turf/helpers": "^5.0.4"
"@turf/circle": "^5.1.0",
"@turf/destination": "^5.1.0",
"@turf/helpers": "^5.1.0"
},

@@ -51,0 +53,0 @@ "@std/esm": {

@@ -12,3 +12,3 @@ # @turf/line-arc

- `center` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[Point](http://geojson.org/geojson-spec.html#point)>** center point
- `center` **[Coord](https://tools.ietf.org/html/rfc7946#section-3.1.1)** center point
- `radius` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** radius of the circle

@@ -35,3 +35,3 @@ - `bearing1` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** angle, in decimal degrees, of the first radius of the arc

Returns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[LineString](http://geojson.org/geojson-spec.html#linestring)>** line arc
Returns **[Feature](https://tools.ietf.org/html/rfc7946#section-3.2)&lt;[LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4)>** line arc

@@ -38,0 +38,0 @@ <!-- This file is automatically generated. Please don't edit it directly:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc