@turf/bezier-spline
Advanced tools
Comparing version 5.0.0 to 5.0.4
@@ -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)<[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 @@ |
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
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
20045
Updated@turf/helpers@^5.0.4
Updated@turf/invariant@^5.0.4