@turf/line-chunk
Advanced tools
Comparing version 5.1.5 to 6.2.0-alpha.1
{ | ||
"name": "@turf/line-chunk", | ||
"version": "5.1.5", | ||
"version": "6.2.0-alpha.1", | ||
"description": "turf line-chunk module", | ||
"main": "main.js", | ||
"module": "main.es.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts", | ||
"main.js", | ||
"main.es.js" | ||
"author": "Turf Authors", | ||
"contributors": [ | ||
"Tim Channell <@tcql>", | ||
"Rowan Winsemius <@rowanwins>", | ||
"Denis Carriere <@DenisCarriere>", | ||
"Daniel Pulido <@dpmcmlxxvi>" | ||
], | ||
"scripts": { | ||
"pretest": "rollup -c ../../rollup.config.js", | ||
"test": "node -r @std/esm test.js", | ||
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", | ||
"bench": "node -r @std/esm bench.js", | ||
"docs": "node ../../scripts/generate-readmes" | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Turfjs/turf/issues" | ||
}, | ||
"homepage": "https://github.com/Turfjs/turf", | ||
"repository": { | ||
@@ -25,2 +21,5 @@ "type": "git", | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"keywords": [ | ||
@@ -33,17 +32,22 @@ "turf", | ||
], | ||
"author": "Turf Authors", | ||
"contributors": [ | ||
"Tim Channell <@tcql>", | ||
"Rowan Winsemius <@rowanwins>", | ||
"Denis Carriere <@DenisCarriere>", | ||
"Daniel Pulido <@dpmcmlxxvi>" | ||
"main": "dist/js/index.js", | ||
"module": "dist/es/index.js", | ||
"types": "index.d.ts", | ||
"sideEffects": false, | ||
"files": [ | ||
"dist", | ||
"index.d.ts" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Turfjs/turf/issues" | ||
"scripts": { | ||
"bench": "npm-run-all prepare bench:run", | ||
"bench:run": "node bench.js", | ||
"docs": "node ../../scripts/generate-readmes", | ||
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", | ||
"prepare": "rollup -c ../../rollup.config.js", | ||
"test": "npm-run-all prepare test:*", | ||
"test:tape": "node -r esm test.js", | ||
"test:types": "tsc --noEmit types.ts" | ||
}, | ||
"homepage": "https://github.com/Turfjs/turf", | ||
"devDependencies": { | ||
"@std/esm": "*", | ||
"@turf/truncate": "^5.1.5", | ||
"@turf/truncate": "^6.2.0-alpha.1", | ||
"benchmark": "*", | ||
@@ -56,11 +60,8 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/helpers": "^5.1.5", | ||
"@turf/length": "^5.1.5", | ||
"@turf/line-slice-along": "^5.1.5", | ||
"@turf/meta": "^5.1.5" | ||
"@turf/helpers": "^6.2.0-alpha.1", | ||
"@turf/length": "^6.2.0-alpha.1", | ||
"@turf/line-slice-along": "^6.2.0-alpha.1", | ||
"@turf/meta": "^6.2.0-alpha.1" | ||
}, | ||
"@std/esm": { | ||
"esm": "js", | ||
"cjs": true | ||
} | ||
"gitHead": "fc519c045a8931c1e14eab9160a7e28391f8da02" | ||
} |
@@ -7,3 +7,3 @@ # @turf/line-chunk | ||
Divides a [LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4) into chunks of a specified length. | ||
Divides a [LineString][1] into chunks of a specified length. | ||
If the line is shorter than the segment length then the original line is returned. | ||
@@ -13,7 +13,7 @@ | ||
- `geojson` **([FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3) \| [Geometry](https://tools.ietf.org/html/rfc7946#section-3.1) \| [Feature](https://tools.ietf.org/html/rfc7946#section-3.2)<([LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4) \| [MultiLineString](https://tools.ietf.org/html/rfc7946#section-3.1.5))>)** the lines to split | ||
- `segmentLength` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** how long to make each segment | ||
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional parameters (optional, default `{}`) | ||
- `options.units` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** units can be degrees, radians, miles, or kilometers (optional, default `'kilometers'`) | ||
- `options.reverse` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** reverses coordinates to start the first chunked segment at the end (optional, default `false`) | ||
- `geojson` **([FeatureCollection][2] \| [Geometry][3] \| [Feature][4]<([LineString][5] \| [MultiLineString][6])>)** the lines to split | ||
- `segmentLength` **[number][7]** how long to make each segment | ||
- `options` **[Object][8]** Optional parameters (optional, default `{}`) | ||
- `options.units` **[string][9]** units can be degrees, radians, miles, or kilometers (optional, default `'kilometers'`) | ||
- `options.reverse` **[boolean][10]** reverses coordinates to start the first chunked segment at the end (optional, default `false`) | ||
@@ -31,4 +31,24 @@ **Examples** | ||
Returns **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)<[LineString](https://tools.ietf.org/html/rfc7946#section-3.1.4)>** collection of line segments | ||
Returns **[FeatureCollection][2]<[LineString][5]>** collection of line segments | ||
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.4 | ||
[2]: https://tools.ietf.org/html/rfc7946#section-3.3 | ||
[3]: https://tools.ietf.org/html/rfc7946#section-3.1 | ||
[4]: https://tools.ietf.org/html/rfc7946#section-3.2 | ||
[5]: https://tools.ietf.org/html/rfc7946#section-3.1.4 | ||
[6]: https://tools.ietf.org/html/rfc7946#section-3.1.5 | ||
[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number | ||
[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object | ||
[9]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String | ||
[10]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean | ||
<!-- This file is automatically generated. Please don't edit it directly: | ||
@@ -35,0 +55,0 @@ if you find an error, edit the source file (likely index.js), and re-run |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14860
6
75
1
2
+ Added@turf/bearing@6.5.0(transitive)
+ Added@turf/destination@6.5.0(transitive)
+ Added@turf/distance@6.5.0(transitive)
+ Added@turf/helpers@6.5.0(transitive)
+ Added@turf/invariant@6.5.0(transitive)
+ Added@turf/length@6.5.0(transitive)
+ Added@turf/line-slice-along@6.5.0(transitive)
+ Added@turf/meta@6.5.0(transitive)
- Removed@turf/bearing@5.1.5(transitive)
- Removed@turf/destination@5.1.5(transitive)
- Removed@turf/distance@5.1.5(transitive)
- Removed@turf/helpers@5.1.5(transitive)
- Removed@turf/invariant@5.2.0(transitive)
- Removed@turf/length@5.1.5(transitive)
- Removed@turf/line-slice-along@5.1.5(transitive)
- Removed@turf/meta@5.2.0(transitive)
Updated@turf/helpers@^6.2.0-alpha.1
Updated@turf/length@^6.2.0-alpha.1
Updated@turf/meta@^6.2.0-alpha.1