@turf/sector
Advanced tools
+3
-2
@@ -1,2 +0,3 @@ | ||
| import { Feature, Polygon, Units, Coord, Properties } from "@turf/helpers"; | ||
| import { Feature, Polygon, GeoJsonProperties } from "geojson"; | ||
| import { Units, Coord } from "@turf/helpers"; | ||
@@ -14,4 +15,4 @@ /** | ||
| units?: Units; | ||
| properties?: Properties; | ||
| properties?: GeoJsonProperties; | ||
| } | ||
| ): Feature<Polygon>; |
+9
-9
| { | ||
| "name": "@turf/sector", | ||
| "version": "6.5.0", | ||
| "version": "7.0.0-alpha.0", | ||
| "description": "turf sector module", | ||
@@ -44,6 +44,6 @@ "author": "Turf Authors", | ||
| "test:tape": "node -r esm test.js", | ||
| "test:types": "tsc --esModuleInterop --noEmit types.ts" | ||
| "test:types": "tsc --esModuleInterop --noEmit --strict types.ts" | ||
| }, | ||
| "devDependencies": { | ||
| "@turf/truncate": "^6.5.0", | ||
| "@turf/truncate": "^7.0.0-alpha.0", | ||
| "benchmark": "*", | ||
@@ -57,9 +57,9 @@ "load-json-file": "*", | ||
| "dependencies": { | ||
| "@turf/circle": "^6.5.0", | ||
| "@turf/helpers": "^6.5.0", | ||
| "@turf/invariant": "^6.5.0", | ||
| "@turf/line-arc": "^6.5.0", | ||
| "@turf/meta": "^6.5.0" | ||
| "@turf/circle": "^7.0.0-alpha.0", | ||
| "@turf/helpers": "^7.0.0-alpha.0", | ||
| "@turf/invariant": "^7.0.0-alpha.0", | ||
| "@turf/line-arc": "^7.0.0-alpha.0", | ||
| "@turf/meta": "^7.0.0-alpha.0" | ||
| }, | ||
| "gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
| "gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189" | ||
| } |
+12
-11
@@ -10,15 +10,16 @@ # @turf/sector | ||
| **Parameters** | ||
| ### Parameters | ||
| - `center` **[Coord][2]** center point | ||
| - `radius` **[number][3]** radius of the circle | ||
| - `bearing1` **[number][3]** angle, in decimal degrees, of the first radius of the sector | ||
| - `bearing2` **[number][3]** angle, in decimal degrees, of the second radius of the sector | ||
| - `options` **[Object][4]** Optional parameters (optional, default `{}`) | ||
| - `options.units` **[string][5]** miles, kilometers, degrees, or radians (optional, default `'kilometers'`) | ||
| - `options.steps` **[number][3]** number of steps (optional, default `64`) | ||
| - `options.properties` **Properties** Translate properties to Feature Polygon (optional, default `{}`) | ||
| * `center` **[Coord][2]** center point | ||
| * `radius` **[number][3]** radius of the circle | ||
| * `bearing1` **[number][3]** angle, in decimal degrees, of the first radius of the sector | ||
| * `bearing2` **[number][3]** angle, in decimal degrees, of the second radius of the sector | ||
| * `options` **[Object][4]** Optional parameters (optional, default `{}`) | ||
| **Examples** | ||
| * `options.units` **[string][5]** miles, kilometers, degrees, or radians (optional, default `'kilometers'`) | ||
| * `options.steps` **[number][3]** number of steps (optional, default `64`) | ||
| * `options.properties` **Properties** Translate properties to Feature Polygon (optional, default `{}`) | ||
| ### Examples | ||
| ```javascript | ||
@@ -36,3 +37,3 @@ var center = turf.point([-75, 40]); | ||
| Returns **[Feature][6]<[Polygon][7]>** sector polygon | ||
| Returns **[Feature][6]<[Polygon][7]>** sector polygon | ||
@@ -39,0 +40,0 @@ [1]: https://tools.ietf.org/html/rfc7946#section-3.1.2 |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11089
0.94%159
0.63%76
1.33%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated