@turf/line-chunk 7.1.0-alpha.7 → 7.1.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.
Files changed (2) hide show
  1. package/README.md +11 -13
  2. package/package.json +8 -7
package/README.md CHANGED
@@ -9,12 +9,12 @@ If the line is shorter than the segment length then the original line is returne
9
9
 
10
10
  ### Parameters
11
11
 
12
- * `geojson` **([FeatureCollection][2] | [Geometry][3] | [Feature][4]<([LineString][5] | [MultiLineString][6])>)** the lines to split
13
- * `segmentLength` **[number][7]** how long to make each segment
14
- * `options` **[Object][8]** Optional parameters (optional, default `{}`)
12
+ * `geojson` **([FeatureCollection][2] | [Geometry][3] | [Feature][4]<([LineString][1] | [MultiLineString][5])>)** the lines to split
13
+ * `segmentLength` **[number][6]** how long to make each segment
14
+ * `options` **[Object][7]** Optional parameters (optional, default `{}`)
15
15
 
16
- * `options.units` **[string][9]** units can be degrees, radians, miles, or kilometers (optional, default `'kilometers'`)
17
- * `options.reverse` **[boolean][10]** reverses coordinates to start the first chunked segment at the end (optional, default `false`)
16
+ * `options.units` **[string][8]** units can be degrees, radians, miles, or kilometers (optional, default `'kilometers'`)
17
+ * `options.reverse` **[boolean][9]** reverses coordinates to start the first chunked segment at the end (optional, default `false`)
18
18
 
19
19
  ### Examples
20
20
 
@@ -27,7 +27,7 @@ var chunk = turf.lineChunk(line, 15, {units: 'miles'});
27
27
  var addToMap = [chunk];
28
28
  ```
29
29
 
30
- Returns **[FeatureCollection][2]<[LineString][5]>** collection of line segments
30
+ Returns **[FeatureCollection][2]<[LineString][1]>** collection of line segments
31
31
 
32
32
  [1]: https://tools.ietf.org/html/rfc7946#section-3.1.4
33
33
 
@@ -37,17 +37,15 @@ Returns **[FeatureCollection][2]<[LineString][5]>** collection of line segments
37
37
 
38
38
  [4]: https://tools.ietf.org/html/rfc7946#section-3.2
39
39
 
40
- [5]: https://tools.ietf.org/html/rfc7946#section-3.1.4
40
+ [5]: https://tools.ietf.org/html/rfc7946#section-3.1.5
41
41
 
42
- [6]: https://tools.ietf.org/html/rfc7946#section-3.1.5
42
+ [6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
43
43
 
44
- [7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
44
+ [7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
45
45
 
46
- [8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
46
+ [8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
47
47
 
48
- [9]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
49
-
50
- [10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
48
+ [9]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
51
49
 
52
50
  <!-- 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. -->
53
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turf/line-chunk",
3
- "version": "7.1.0-alpha.7+0ce6ecca0",
3
+ "version": "7.1.0",
4
4
  "description": "turf line-chunk module",
5
5
  "author": "Turf Authors",
6
6
  "contributors": [
@@ -59,7 +59,7 @@
59
59
  "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts"
60
60
  },
61
61
  "devDependencies": {
62
- "@turf/truncate": "^7.1.0-alpha.7+0ce6ecca0",
62
+ "@turf/truncate": "^7.1.0",
63
63
  "@types/benchmark": "^2.1.5",
64
64
  "@types/tape": "^4.2.32",
65
65
  "benchmark": "^2.1.4",
@@ -71,10 +71,11 @@
71
71
  "write-json-file": "^5.0.0"
72
72
  },
73
73
  "dependencies": {
74
- "@turf/helpers": "^7.1.0-alpha.7+0ce6ecca0",
75
- "@turf/length": "^7.1.0-alpha.7+0ce6ecca0",
76
- "@turf/line-slice-along": "^7.1.0-alpha.7+0ce6ecca0",
77
- "@turf/meta": "^7.1.0-alpha.7+0ce6ecca0"
74
+ "@turf/helpers": "^7.1.0",
75
+ "@turf/length": "^7.1.0",
76
+ "@turf/line-slice-along": "^7.1.0",
77
+ "@turf/meta": "^7.1.0",
78
+ "@types/geojson": "^7946.0.10"
78
79
  },
79
- "gitHead": "0ce6ecca05829690270fec6d6bed2003495fe0ea"
80
+ "gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
80
81
  }