Socket
Socket
Sign inDemoInstall

@turf/line-slice-along

Package Overview
Dependencies
Maintainers
7
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-slice-along - npm Package Compare versions

Comparing version 6.5.0 to 7.0.0-alpha.0

3

index.d.ts

@@ -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]&lt;[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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc