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

@turf/bezier-spline

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/bezier-spline - npm Package Compare versions

Comparing version 5.0.0 to 5.0.4

4

index.js

@@ -12,3 +12,3 @@ import { lineString, isObject, isNumber } from '@turf/helpers';

*
* @name bezier
* @name bezierSpline
* @param {Geometry|Feature<LineString>} line input LineString

@@ -29,3 +29,3 @@ * @param {Object} [options={}] Optional parameters

*
* var curved = turf.bezier(line);
* var curved = turf.bezierSpline(line);
*

@@ -32,0 +32,0 @@ * //addToMap

@@ -146,3 +146,3 @@ 'use strict';

*
* @name bezier
* @name bezierSpline
* @param {Geometry|Feature<LineString>} line input LineString

@@ -163,3 +163,3 @@ * @param {Object} [options={}] Optional parameters

*
* var curved = turf.bezier(line);
* var curved = turf.bezierSpline(line);
*

@@ -166,0 +166,0 @@ * //addToMap

{
"name": "@turf/bezier-spline",
"version": "5.0.0",
"version": "5.0.4",
"description": "turf bezier-spline module",

@@ -38,12 +38,12 @@ "main": "main",

"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
"tape": "*",
"write-json-file": "*",
"rollup": "*",
"@std/esm": "*"
"write-json-file": "*"
},
"dependencies": {
"@turf/helpers": "5.x",
"@turf/invariant": "5.x"
"@turf/helpers": "^5.0.4",
"@turf/invariant": "^5.0.4"
},

@@ -50,0 +50,0 @@ "@std/esm": {

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

# @turf/bezier
# @turf/bezier-spline

@@ -16,3 +16,3 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. -->

- `line` **([Geometry](http://geojson.org/geojson-spec.html#geometry) \| [Feature](http://geojson.org/geojson-spec.html#feature-objects)&lt;[LineString](http://geojson.org/geojson-spec.html#linestring)>)** input LineString
- `options` **[object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)?** Optional parameters
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional parameters (optional, default `{}`)
- `options.resolution` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** time in milliseconds between points (optional, default `10000`)

@@ -33,3 +33,3 @@ - `options.sharpness` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** a measure of how curvy the path should be between splines (optional, default `0.85`)

var curved = turf.bezier(line);
var curved = turf.bezierSpline(line);

@@ -59,3 +59,3 @@ //addToMap

```sh
$ npm install @turf/bezier
$ npm install @turf/bezier-spline
```

@@ -62,0 +62,0 @@

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