New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/line-offset

Package Overview
Dependencies
Maintainers
7
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-offset - 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, Feature, LineString, MultiLineString } from "@turf/helpers";
import { Feature, LineString, MultiLineString } from "geojson";
import { Units } from "@turf/helpers";

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

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

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

"test:tape": "node -r esm test.js",
"test:types": "tsc --esModuleInterop --noEmit types.ts"
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
},
"devDependencies": {
"@turf/truncate": "^6.5.0",
"@turf/truncate": "^7.0.0-alpha.0",
"benchmark": "*",

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

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

@@ -9,11 +9,12 @@ # @turf/line-offset

**Parameters**
### Parameters
- `geojson` **([Geometry][2] \| [Feature][3]<([LineString][4] \| [MultiLineString][5])>)** input GeoJSON
- `distance` **[number][6]** distance to offset the line (can be of negative value)
- `options` **[Object][7]** Optional parameters (optional, default `{}`)
- `options.units` **[string][8]** can be degrees, radians, miles, kilometers, inches, yards, meters (optional, default `'kilometers'`)
* `geojson` **([Geometry][2] | [Feature][3]<([LineString][4] | [MultiLineString][5])>)** input GeoJSON
* `distance` **[number][6]** distance to offset the line (can be of negative value)
* `options` **[Object][7]** Optional parameters (optional, default `{}`)
**Examples**
* `options.units` **[string][8]** can be degrees, radians, miles, kilometers, inches, yards, meters (optional, default `'kilometers'`)
### Examples
```javascript

@@ -29,3 +30,3 @@ var line = turf.lineString([[-83, 30], [-84, 36], [-78, 41]], { "stroke": "#F00" });

Returns **[Feature][3]&lt;([LineString][4] \| [MultiLineString][5])>** Line offset from the input line
Returns **[Feature][3]<([LineString][4] | [MultiLineString][5])>** Line offset from the input line

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