Socket
Socket
Sign inDemoInstall

turf

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf - npm Package Compare versions

Comparing version 0.0.68 to 0.0.69

lib/bezier.js

1

index.js
module.exports = {
bezier: require('./lib/bezier'),
tag: require('./lib/tag'),

@@ -3,0 +4,0 @@ size: require('./lib/size'),

2

package.json
{
"name": "turf",
"version": "0.0.68",
"version": "0.0.69",
"description": "a node.js library for performing geospatial operations with geojson",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -64,2 +64,3 @@ turf

- tag
- bezier

@@ -585,2 +586,35 @@ **Planned Features**

**bezier**
Takes a linestring and outputs a curved version of the line.
```javascript
var t = require('turf')
var resolution = 5000
var intensity = .85
var lineIn = t.linestring([
[
-80.08724212646484,
32.77428536643231
],
[
-80.03746032714844,
32.84007757059952
],
[
-80.01548767089844,
32.74512501406368
],
[
-79.95368957519531,
32.850461360442424
]
])
t.bezier(lineIn, 5000, .85, function(err, lineOut){
if(err) throw err
console.log(lineOut)
})
```
- - -

@@ -587,0 +621,0 @@

@@ -8,6 +8,3 @@ var t = require('../index')

t.remove(points, 'team', 'Yankees', function(err, newCol) {
//throw new Error('not implemented')
if(err) throw err
//console.log(newCol.features[0].properties);
console.log(newCol.features.length)
newCol.features.length.should.equal(3)

@@ -14,0 +11,0 @@ done()

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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