Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/line-slice

Package Overview
Dependencies
Maintainers
7
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-slice - npm Package Compare versions

Comparing version 6.5.0 to 7.0.0-alpha.0

3

index.d.ts

@@ -1,2 +0,3 @@

import { Feature, LineString, Coord } from "@turf/helpers";
import { Feature, LineString } from "geojson";
import { Coord } from "@turf/helpers";

@@ -3,0 +4,0 @@ /**

{
"name": "@turf/line-slice",
"version": "6.5.0",
"version": "7.0.0-alpha.0",
"description": "turf line-slice module",

@@ -51,3 +51,3 @@ "author": "Turf Authors",

"devDependencies": {
"@turf/truncate": "^6.5.0",
"@turf/truncate": "^7.0.0-alpha.0",
"benchmark": "*",

@@ -61,7 +61,7 @@ "load-json-file": "*",

"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0",
"@turf/nearest-point-on-line": "^6.5.0"
"@turf/helpers": "^7.0.0-alpha.0",
"@turf/invariant": "^7.0.0-alpha.0",
"@turf/nearest-point-on-line": "^7.0.0-alpha.0"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
}

@@ -13,9 +13,9 @@ # @turf/line-slice

**Parameters**
### Parameters
- `startPt` **[Coord][3]** starting point
- `stopPt` **[Coord][3]** stopping point
- `line` **([Feature][4]<[LineString][5]> | [LineString][5])** line to slice
* `startPt` **[Coord][3]** starting point
* `stopPt` **[Coord][3]** stopping point
* `line` **([Feature][4]<[LineString][5]> | [LineString][5])** line to slice
**Examples**
### Examples

@@ -40,3 +40,3 @@ ```javascript

Returns **[Feature][4]&lt;[LineString][5]>** sliced line
Returns **[Feature][4]<[LineString][5]>** sliced line

@@ -43,0 +43,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