@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 +5 -5
- package/dist/es/index.js +0 -0
- package/dist/js/index.js +0 -0
- package/index.d.ts +2 -2
- package/package.json +9 -9
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
|
-
|
|
9
|
+
### Parameters
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
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]
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/polygon-tangents",
|
|
3
|
-
"version": "
|
|
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": "^
|
|
63
|
-
"@turf/boolean-within": "^
|
|
64
|
-
"@turf/explode": "^
|
|
65
|
-
"@turf/helpers": "^
|
|
66
|
-
"@turf/invariant": "^
|
|
67
|
-
"@turf/nearest-point": "^
|
|
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": "
|
|
69
|
+
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
|
|
70
70
|
}
|