@turf/line-arc
Advanced tools
Comparing version 5.0.4 to 5.1.0
@@ -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
main.js
@@ -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)<[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)<[LineString](http://geojson.org/geojson-spec.html#linestring)>** line arc | ||
Returns **[Feature](https://tools.ietf.org/html/rfc7946#section-3.2)<[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: |
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
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
14086
7
254
8
Updated@turf/circle@^5.1.0
Updated@turf/destination@^5.1.0
Updated@turf/helpers@^5.1.0