Socket
Socket
Sign inDemoInstall

@turf/sector

Package Overview
Dependencies
57
Maintainers
7
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.5.0 to 7.0.0-alpha.0

5

index.d.ts

@@ -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>;

18

package.json
{
"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"
}

@@ -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]&lt;[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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc