@turf/line-slice-along 7.1.0-alpha.7 → 7.1.0-alpha.70
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 +9 -11
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -12,12 +12,12 @@ This can be useful for extracting only the part of a route between two distances
|
|
|
12
12
|
|
|
13
13
|
### Parameters
|
|
14
14
|
|
|
15
|
-
* `line` **([Feature][3]<[LineString][
|
|
16
|
-
* `startDist` **[number][
|
|
17
|
-
* `stopDist` **[number][
|
|
18
|
-
* `options` **[Object][
|
|
15
|
+
* `line` **([Feature][3]<[LineString][1]> | [LineString][1])** input line
|
|
16
|
+
* `startDist` **[number][4]** distance along the line to starting point
|
|
17
|
+
* `stopDist` **[number][4]** distance along the line to ending point
|
|
18
|
+
* `options` **[Object][5]** Optional parameters (optional, default `{}`)
|
|
19
19
|
|
|
20
|
-
* `options.units` **[string][
|
|
20
|
+
* `options.units` **[string][6]** can be degrees, radians, miles, or kilometers (optional, default `'kilometers'`)
|
|
21
21
|
|
|
22
22
|
### Examples
|
|
23
23
|
|
|
@@ -31,7 +31,7 @@ var sliced = turf.lineSliceAlong(line, start, stop, {units: 'miles'});
|
|
|
31
31
|
var addToMap = [line, start, stop, sliced]
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
Returns **[Feature][3]<[LineString][
|
|
34
|
+
Returns **[Feature][3]<[LineString][1]>** sliced line
|
|
35
35
|
|
|
36
36
|
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4
|
|
37
37
|
|
|
@@ -39,13 +39,11 @@ Returns **[Feature][3]<[LineString][4]>** sliced line
|
|
|
39
39
|
|
|
40
40
|
[3]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
41
41
|
|
|
42
|
-
[4]: https://
|
|
42
|
+
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
|
|
43
43
|
|
|
44
|
-
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/
|
|
44
|
+
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
45
45
|
|
|
46
|
-
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/
|
|
47
|
-
|
|
48
|
-
[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
|
|
46
|
+
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
|
|
49
47
|
|
|
50
48
|
<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run "yarn docs" from the root of the turf project. -->
|
|
51
49
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/line-slice-along",
|
|
3
|
-
"version": "7.1.0-alpha.
|
|
3
|
+
"version": "7.1.0-alpha.70+948cdafaf",
|
|
4
4
|
"description": "turf line-slice-along module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test:tape": "tsx test.ts"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@turf/along": "^7.1.0-alpha.
|
|
54
|
-
"@turf/length": "^7.1.0-alpha.
|
|
53
|
+
"@turf/along": "^7.1.0-alpha.70+948cdafaf",
|
|
54
|
+
"@turf/length": "^7.1.0-alpha.70+948cdafaf",
|
|
55
55
|
"@types/benchmark": "^2.1.5",
|
|
56
56
|
"@types/tape": "^4.2.32",
|
|
57
57
|
"benchmark": "^2.1.4",
|
|
@@ -62,10 +62,11 @@
|
|
|
62
62
|
"tsx": "^4.6.2"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@turf/bearing": "^7.1.0-alpha.
|
|
66
|
-
"@turf/destination": "^7.1.0-alpha.
|
|
67
|
-
"@turf/distance": "^7.1.0-alpha.
|
|
68
|
-
"@turf/helpers": "^7.1.0-alpha.
|
|
65
|
+
"@turf/bearing": "^7.1.0-alpha.70+948cdafaf",
|
|
66
|
+
"@turf/destination": "^7.1.0-alpha.70+948cdafaf",
|
|
67
|
+
"@turf/distance": "^7.1.0-alpha.70+948cdafaf",
|
|
68
|
+
"@turf/helpers": "^7.1.0-alpha.70+948cdafaf",
|
|
69
|
+
"@types/geojson": "^7946.0.10"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "948cdafaf70606d2e27fcc79973fa48ee1182067"
|
|
71
72
|
}
|