@turf/line-slice-along
Advanced tools
Comparing version 6.5.0 to 7.0.0-alpha.0
@@ -1,2 +0,3 @@ | ||
import { Units, LineString, Feature } from "@turf/helpers"; | ||
import { LineString, Feature } from "geojson"; | ||
import { Units } from "@turf/helpers"; | ||
@@ -3,0 +4,0 @@ /** |
{ | ||
"name": "@turf/line-slice-along", | ||
"version": "6.5.0", | ||
"version": "7.0.0-alpha.0", | ||
"description": "turf line-slice-along module", | ||
@@ -47,3 +47,3 @@ "author": "Turf Authors", | ||
"devDependencies": { | ||
"@turf/along": "^6.5.0", | ||
"@turf/along": "^7.0.0-alpha.0", | ||
"benchmark": "*", | ||
@@ -56,8 +56,8 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/bearing": "^6.5.0", | ||
"@turf/destination": "^6.5.0", | ||
"@turf/distance": "^6.5.0", | ||
"@turf/helpers": "^6.5.0" | ||
"@turf/bearing": "^7.0.0-alpha.0", | ||
"@turf/destination": "^7.0.0-alpha.0", | ||
"@turf/distance": "^7.0.0-alpha.0", | ||
"@turf/helpers": "^7.0.0-alpha.0" | ||
}, | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189" | ||
} |
@@ -13,12 +13,13 @@ # @turf/line-slice-along | ||
**Parameters** | ||
### Parameters | ||
- `line` **([Feature][3]<[LineString][4]> | [LineString][4])** input line | ||
- `startDist` **[number][5]** distance along the line to starting point | ||
- `stopDist` **[number][5]** distance along the line to ending point | ||
- `options` **[Object][6]** Optional parameters (optional, default `{}`) | ||
- `options.units` **[string][7]** can be degrees, radians, miles, or kilometers (optional, default `'kilometers'`) | ||
* `line` **([Feature][3]<[LineString][4]> | [LineString][4])** input line | ||
* `startDist` **[number][5]** distance along the line to starting point | ||
* `stopDist` **[number][5]** distance along the line to ending point | ||
* `options` **[Object][6]** Optional parameters (optional, default `{}`) | ||
**Examples** | ||
* `options.units` **[string][7]** can be degrees, radians, miles, or kilometers (optional, default `'kilometers'`) | ||
### Examples | ||
```javascript | ||
@@ -34,3 +35,3 @@ var line = turf.lineString([[7, 45], [9, 45], [14, 40], [14, 41]]); | ||
Returns **[Feature][3]<[LineString][4]>** sliced line | ||
Returns **[Feature][3]<[LineString][4]>** sliced line | ||
@@ -37,0 +38,0 @@ [1]: https://tools.ietf.org/html/rfc7946#section-3.1.4 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11873
173
74
1
+ Added@turf/bearing@7.1.0(transitive)
+ Added@turf/destination@7.1.0(transitive)
+ Added@turf/distance@7.1.0(transitive)
+ Added@turf/helpers@7.1.0(transitive)
+ Added@turf/invariant@7.1.0(transitive)
+ Added@types/geojson@7946.0.14(transitive)
+ Addedtslib@2.7.0(transitive)
- Removed@turf/bearing@6.5.0(transitive)
- Removed@turf/destination@6.5.0(transitive)
- Removed@turf/distance@6.5.0(transitive)
- Removed@turf/helpers@6.5.0(transitive)
- Removed@turf/invariant@6.5.0(transitive)
Updated@turf/bearing@^7.0.0-alpha.0
Updated@turf/helpers@^7.0.0-alpha.0