@turf/boolean-touches 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 CHANGED
@@ -4,26 +4,31 @@
4
4
 
5
5
  ## booleanTouches
6
6
 
7
- Boolean-touches returns true if the first geometry is completely within the second geometry.
8
- The interiors of both geometries must intersect and, the interior and boundary of the primary (geometry a)
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
- **Parameters**
10
+ ### Parameters
12
11
 
13
- - `feature1` **([Geometry](https://tools.ietf.org/html/rfc7946#section-3.1) \| [Feature](https://tools.ietf.org/html/rfc7946#section-3.2)<any>)** GeoJSON Feature or Geometry
14
- - `feature2` **([Geometry](https://tools.ietf.org/html/rfc7946#section-3.1) \| [Feature](https://tools.ietf.org/html/rfc7946#section-3.2)<any>)** GeoJSON Feature or Geometry
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
- **Examples**
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, 2]);
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](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true/false
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
@@ -1,4 +1,4 @@
1
- import { Feature, Geometry } from "@turf/helpers";
1
+ import { Feature, Geometry } from "geojson";
2
2
  /**
3
3
  * Boolean-touches true if none of the points common to both geometries
4
4
  * intersect the interiors of both geometries.
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
- var boolean_point_on_line_1 = __importDefault(require("@turf/boolean-point-on-line"));
7
- var boolean_point_in_polygon_1 = __importDefault(require("@turf/boolean-point-in-polygon"));
8
- var invariant_1 = require("@turf/invariant");
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": "6.5.0",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "turf boolean-touches 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": "./dist/js/index.d.ts",
35
36
  "import": "./dist/es/index.js",
36
37
  "require": "./dist/js/index.js"
37
38
  }
@@ -42,14 +43,14 @@
42
43
  "dist"
43
44
  ],
44
45
  "scripts": {
45
- "bench": "ts-node bench.js",
46
+ "bench": "tsx bench.js",
46
47
  "build": "npm-run-all build:*",
47
48
  "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json",
48
49
  "build:js": "tsc",
49
- "docs": "node ../../scripts/generate-readmes",
50
+ "docs": "tsx ../../scripts/generate-readmes",
50
51
  "test": "npm-run-all test:*",
51
- "test:tape": "ts-node -r esm test.js",
52
- "test:types": "tsc --esModuleInterop --noEmit types.ts"
52
+ "test:tape": "tsx test.js",
53
+ "test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@types/tape": "*",
@@ -60,15 +61,16 @@
60
61
  "load-json-file": "*",
61
62
  "npm-run-all": "*",
62
63
  "tape": "*",
63
- "ts-node": "*",
64
64
  "tslint": "*",
65
+ "tsx": "*",
65
66
  "typescript": "*"
66
67
  },
67
68
  "dependencies": {
68
- "@turf/boolean-point-in-polygon": "^6.5.0",
69
- "@turf/boolean-point-on-line": "^6.5.0",
70
- "@turf/helpers": "^6.5.0",
71
- "@turf/invariant": "^6.5.0"
69
+ "@turf/boolean-point-in-polygon": "^7.0.0-alpha.1",
70
+ "@turf/boolean-point-on-line": "^7.0.0-alpha.1",
71
+ "@turf/helpers": "^7.0.0-alpha.1",
72
+ "@turf/invariant": "^7.0.0-alpha.1",
73
+ "tslib": "^2.3.0"
72
74
  },
73
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
75
+ "gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
74
76
  }