@turf/boolean-touches 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 +14 -9
- package/dist/es/index.js +0 -0
- package/dist/js/index.d.ts +1 -1
- package/dist/js/index.js +4 -6
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -4,26 +4,31 @@
|
|
|
4
4
|
|
|
5
5
|
## booleanTouches
|
|
6
6
|
|
|
7
|
-
Boolean-touches
|
|
8
|
-
|
|
9
|
-
must not intersect the exterior of the secondary (geometry b).
|
|
7
|
+
Boolean-touches true if none of the points common to both geometries
|
|
8
|
+
intersect the interiors of both geometries.
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
### Parameters
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
* `feature1` **([Geometry][1] | [Feature][2]\<any>)** GeoJSON Feature or Geometry
|
|
13
|
+
* `feature2` **([Geometry][1] | [Feature][2]\<any>)** GeoJSON Feature or Geometry
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
### Examples
|
|
17
16
|
|
|
18
17
|
```javascript
|
|
19
18
|
var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);
|
|
20
|
-
var point = turf.point([1,
|
|
19
|
+
var point = turf.point([1, 1]);
|
|
21
20
|
|
|
22
21
|
turf.booleanTouches(point, line);
|
|
23
22
|
//=true
|
|
24
23
|
```
|
|
25
24
|
|
|
26
|
-
Returns **[boolean]
|
|
25
|
+
Returns **[boolean][3]** true/false
|
|
26
|
+
|
|
27
|
+
[1]: https://tools.ietf.org/html/rfc7946#section-3.1
|
|
28
|
+
|
|
29
|
+
[2]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
30
|
+
|
|
31
|
+
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
|
|
27
32
|
|
|
28
33
|
<!-- This file is automatically generated. Please don't edit it directly:
|
|
29
34
|
if you find an error, edit the source file (likely index.js), and re-run
|
package/dist/es/index.js
CHANGED
|
File without changes
|
package/dist/js/index.d.ts
CHANGED
package/dist/js/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const boolean_point_on_line_1 = tslib_1.__importDefault(require("@turf/boolean-point-on-line"));
|
|
5
|
+
const boolean_point_in_polygon_1 = tslib_1.__importDefault(require("@turf/boolean-point-in-polygon"));
|
|
6
|
+
const invariant_1 = require("@turf/invariant");
|
|
9
7
|
/**
|
|
10
8
|
* Boolean-touches true if none of the points common to both geometries
|
|
11
9
|
* intersect the interiors of both geometries.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/boolean-touches",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.0",
|
|
4
4
|
"description": "turf boolean-touches module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"docs": "node ../../scripts/generate-readmes",
|
|
50
50
|
"test": "npm-run-all test:*",
|
|
51
51
|
"test:tape": "ts-node -r esm test.js",
|
|
52
|
-
"test:types": "tsc --esModuleInterop --noEmit types.ts"
|
|
52
|
+
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/tape": "*",
|
|
@@ -65,10 +65,11 @@
|
|
|
65
65
|
"typescript": "*"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@turf/boolean-point-in-polygon": "^
|
|
69
|
-
"@turf/boolean-point-on-line": "^
|
|
70
|
-
"@turf/helpers": "^
|
|
71
|
-
"@turf/invariant": "^
|
|
68
|
+
"@turf/boolean-point-in-polygon": "^7.0.0-alpha.0",
|
|
69
|
+
"@turf/boolean-point-on-line": "^7.0.0-alpha.0",
|
|
70
|
+
"@turf/helpers": "^7.0.0-alpha.0",
|
|
71
|
+
"@turf/invariant": "^7.0.0-alpha.0",
|
|
72
|
+
"tslib": "^2.3.0"
|
|
72
73
|
},
|
|
73
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
|
|
74
75
|
}
|