@turf/polygon-tangents 6.5.0 → 7.0.0-alpha.1
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 +14 -12
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.1",
|
|
4
4
|
"description": "turf polygon tangents module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
"./package.json": "./package.json",
|
|
34
34
|
".": {
|
|
35
|
+
"types": "./index.d.ts",
|
|
35
36
|
"import": "./dist/es/index.js",
|
|
36
37
|
"require": "./dist/js/index.js"
|
|
37
38
|
}
|
|
@@ -43,12 +44,12 @@
|
|
|
43
44
|
"index.d.ts"
|
|
44
45
|
],
|
|
45
46
|
"scripts": {
|
|
46
|
-
"bench": "
|
|
47
|
+
"bench": "tsx bench.js",
|
|
47
48
|
"build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
|
|
48
|
-
"docs": "
|
|
49
|
+
"docs": "tsx ../../scripts/generate-readmes",
|
|
49
50
|
"test": "npm-run-all test:*",
|
|
50
|
-
"test:tape": "
|
|
51
|
-
"test:types": "tsc --esModuleInterop --noEmit types.ts"
|
|
51
|
+
"test:tape": "tsx test.js",
|
|
52
|
+
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"benchmark": "*",
|
|
@@ -56,15 +57,16 @@
|
|
|
56
57
|
"npm-run-all": "*",
|
|
57
58
|
"rollup": "*",
|
|
58
59
|
"tape": "*",
|
|
60
|
+
"tsx": "*",
|
|
59
61
|
"write-json-file": "*"
|
|
60
62
|
},
|
|
61
63
|
"dependencies": {
|
|
62
|
-
"@turf/bbox": "^
|
|
63
|
-
"@turf/boolean-within": "^
|
|
64
|
-
"@turf/explode": "^
|
|
65
|
-
"@turf/helpers": "^
|
|
66
|
-
"@turf/invariant": "^
|
|
67
|
-
"@turf/nearest-point": "^
|
|
64
|
+
"@turf/bbox": "^7.0.0-alpha.1",
|
|
65
|
+
"@turf/boolean-within": "^7.0.0-alpha.1",
|
|
66
|
+
"@turf/explode": "^7.0.0-alpha.1",
|
|
67
|
+
"@turf/helpers": "^7.0.0-alpha.1",
|
|
68
|
+
"@turf/invariant": "^7.0.0-alpha.1",
|
|
69
|
+
"@turf/nearest-point": "^7.0.0-alpha.1"
|
|
68
70
|
},
|
|
69
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
|
|
70
72
|
}
|