@turf/line-slice 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 +6 -6
- package/dist/es/index.js +0 -0
- package/dist/js/index.js +0 -0
- package/index.d.ts +2 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -10,13 +10,13 @@ The start & stop points don't need to fall exactly on the line.
|
|
|
10
10
|
|
|
11
11
|
This can be useful for extracting only the part of a route between waypoints.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
### Parameters
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
* `startPt` **[Coord][3]** starting point
|
|
16
|
+
* `stopPt` **[Coord][3]** stopping point
|
|
17
|
+
* `line` **([Feature][4]<[LineString][5]> | [LineString][5])** line to slice
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
### Examples
|
|
20
20
|
|
|
21
21
|
```javascript
|
|
22
22
|
var line = turf.lineString([
|
|
@@ -36,7 +36,7 @@ var sliced = turf.lineSlice(start, stop, line);
|
|
|
36
36
|
var addToMap = [start, stop, line]
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Returns **[Feature][4]
|
|
39
|
+
Returns **[Feature][4]<[LineString][5]>** sliced line
|
|
40
40
|
|
|
41
41
|
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4
|
|
42
42
|
|
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/line-slice",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.0",
|
|
4
4
|
"description": "turf line-slice module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"test:tape": "node -r esm test.js"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@turf/truncate": "^
|
|
51
|
+
"@turf/truncate": "^7.0.0-alpha.0",
|
|
52
52
|
"benchmark": "*",
|
|
53
53
|
"load-json-file": "*",
|
|
54
54
|
"npm-run-all": "*",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"write-json-file": "*"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@turf/helpers": "^
|
|
61
|
-
"@turf/invariant": "^
|
|
62
|
-
"@turf/nearest-point-on-line": "^
|
|
60
|
+
"@turf/helpers": "^7.0.0-alpha.0",
|
|
61
|
+
"@turf/invariant": "^7.0.0-alpha.0",
|
|
62
|
+
"@turf/nearest-point-on-line": "^7.0.0-alpha.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
|
|
65
65
|
}
|