@turf/boolean-parallel 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 +4 -4
- package/dist/es/index.js +1 -1
- package/dist/js/index.d.ts +1 -1
- package/dist/js/index.js +5 -7
- package/package.json +12 -10
package/README.md
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
Boolean-Parallel returns True if each segment of `line1` is parallel to the correspondent segment of `line2`
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### Parameters
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* `line1` **([Geometry][1] | [Feature][2]<[LineString][3]>)** GeoJSON Feature or Geometry
|
|
12
|
+
* `line2` **([Geometry][1] | [Feature][2]<[LineString][3]>)** GeoJSON Feature or Geometry
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
### Examples
|
|
15
15
|
|
|
16
16
|
```javascript
|
|
17
17
|
var line1 = turf.lineString([[0, 0], [0, 1]]);
|
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import cleanCoords from "@turf/clean-coords";
|
|
2
2
|
import lineSegment from "@turf/line-segment";
|
|
3
3
|
import rhumbBearing from "@turf/rhumb-bearing";
|
|
4
|
-
import { bearingToAzimuth
|
|
4
|
+
import { bearingToAzimuth } from "@turf/helpers";
|
|
5
5
|
/**
|
|
6
6
|
* Boolean-Parallel returns True if each segment of `line1` is parallel to the correspondent segment of `line2`
|
|
7
7
|
*
|
package/dist/js/index.d.ts
CHANGED
package/dist/js/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const clean_coords_1 = tslib_1.__importDefault(require("@turf/clean-coords"));
|
|
5
|
+
const line_segment_1 = tslib_1.__importDefault(require("@turf/line-segment"));
|
|
6
|
+
const rhumb_bearing_1 = tslib_1.__importDefault(require("@turf/rhumb-bearing"));
|
|
7
|
+
const helpers_1 = require("@turf/helpers");
|
|
10
8
|
/**
|
|
11
9
|
* Boolean-Parallel returns True if each segment of `line1` is parallel to the correspondent segment of `line2`
|
|
12
10
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/boolean-parallel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.1",
|
|
4
4
|
"description": "turf boolean-parallel module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"exports": {
|
|
31
31
|
"./package.json": "./package.json",
|
|
32
32
|
".": {
|
|
33
|
+
"types": "./dist/js/index.d.ts",
|
|
33
34
|
"import": "./dist/es/index.js",
|
|
34
35
|
"require": "./dist/js/index.js"
|
|
35
36
|
}
|
|
@@ -40,13 +41,13 @@
|
|
|
40
41
|
"dist"
|
|
41
42
|
],
|
|
42
43
|
"scripts": {
|
|
43
|
-
"bench": "
|
|
44
|
+
"bench": "tsx bench.js",
|
|
44
45
|
"build": "npm-run-all build:*",
|
|
45
46
|
"build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json",
|
|
46
47
|
"build:js": "tsc",
|
|
47
|
-
"docs": "
|
|
48
|
+
"docs": "tsx ../../scripts/generate-readmes",
|
|
48
49
|
"test": "npm-run-all test:*",
|
|
49
|
-
"test:tape": "
|
|
50
|
+
"test:tape": "tsx test.js"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@types/tape": "*",
|
|
@@ -54,16 +55,17 @@
|
|
|
54
55
|
"load-json-file": "*",
|
|
55
56
|
"npm-run-all": "*",
|
|
56
57
|
"tape": "*",
|
|
57
|
-
"ts-node": "*",
|
|
58
58
|
"tslint": "*",
|
|
59
|
+
"tsx": "*",
|
|
59
60
|
"typescript": "*",
|
|
60
61
|
"write-json-file": "*"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
|
-
"@turf/clean-coords": "^
|
|
64
|
-
"@turf/helpers": "^
|
|
65
|
-
"@turf/line-segment": "^
|
|
66
|
-
"@turf/rhumb-bearing": "^
|
|
64
|
+
"@turf/clean-coords": "^7.0.0-alpha.1",
|
|
65
|
+
"@turf/helpers": "^7.0.0-alpha.1",
|
|
66
|
+
"@turf/line-segment": "^7.0.0-alpha.1",
|
|
67
|
+
"@turf/rhumb-bearing": "^7.0.0-alpha.1",
|
|
68
|
+
"tslib": "^2.3.0"
|
|
67
69
|
},
|
|
68
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
|
|
69
71
|
}
|