@turf/polygon-tangents 6.5.0 → 7.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,12 +6,12 @@
6
6
 
7
7
  Finds the tangents of a [(Multi)Polygon][1] from a [Point][2].
8
8
 
9
- **Parameters**
9
+ ### Parameters
10
10
 
11
- - `pt` **[Coord][3]** to calculate the tangent points from
12
- - `polygon` **[Feature][4]<([Polygon][5] \| [MultiPolygon][6])>** to get tangents from
11
+ * `pt` **[Coord][3]** to calculate the tangent points from
12
+ * `polygon` **[Feature][4]<([Polygon][5] | [MultiPolygon][6])>** to get tangents from
13
13
 
14
- **Examples**
14
+ ### Examples
15
15
 
16
16
  ```javascript
17
17
  var polygon = turf.polygon([[[11, 0], [22, 4], [31, 0], [31, 11], [21, 15], [11, 11], [11, 0]]]);
@@ -23,7 +23,7 @@ var tangents = turf.polygonTangents(point, polygon)
23
23
  var addToMap = [tangents, point, polygon];
24
24
  ```
25
25
 
26
- Returns **[FeatureCollection][7]&lt;[Point][8]>** Feature Collection containing the two tangent points
26
+ Returns **[FeatureCollection][7]<[Point][8]>** Feature Collection containing the two tangent points
27
27
 
28
28
  [1]: https://tools.ietf.org/html/rfc7946#section-3.1.6
29
29
 
package/dist/es/index.js CHANGED
File without changes
package/dist/js/index.js CHANGED
File without changes
package/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Feature,
3
3
  FeatureCollection,
4
- Coord,
5
4
  Point,
6
5
  Polygon,
7
6
  MultiPolygon,
8
- } from "@turf/helpers";
7
+ } from "geojson";
8
+ import { Coord } from "@turf/helpers";
9
9
 
10
10
  /**
11
11
  * http://turfjs.org/docs/#polygontangents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/polygon-tangents",
3
- "version": "6.5.0",
3
+ "version": "7.0.0-alpha.0",
4
4
  "description": "turf polygon tangents module",
5
5
  "author": "Turf Authors",
6
6
  "contributors": [
@@ -48,7 +48,7 @@
48
48
  "docs": "node ../../scripts/generate-readmes",
49
49
  "test": "npm-run-all test:*",
50
50
  "test:tape": "node -r esm test.js",
51
- "test:types": "tsc --esModuleInterop --noEmit types.ts"
51
+ "test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
52
52
  },
53
53
  "devDependencies": {
54
54
  "benchmark": "*",
@@ -59,12 +59,12 @@
59
59
  "write-json-file": "*"
60
60
  },
61
61
  "dependencies": {
62
- "@turf/bbox": "^6.5.0",
63
- "@turf/boolean-within": "^6.5.0",
64
- "@turf/explode": "^6.5.0",
65
- "@turf/helpers": "^6.5.0",
66
- "@turf/invariant": "^6.5.0",
67
- "@turf/nearest-point": "^6.5.0"
62
+ "@turf/bbox": "^7.0.0-alpha.0",
63
+ "@turf/boolean-within": "^7.0.0-alpha.0",
64
+ "@turf/explode": "^7.0.0-alpha.0",
65
+ "@turf/helpers": "^7.0.0-alpha.0",
66
+ "@turf/invariant": "^7.0.0-alpha.0",
67
+ "@turf/nearest-point": "^7.0.0-alpha.0"
68
68
  },
69
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
69
+ "gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
70
70
  }