Socket
Socket
Sign inDemoInstall

turf-bezier

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-bezier

generate a bezier curve from a linestring


Version published
Weekly downloads
12K
decreased by-4.82%
Maintainers
1
Weekly downloads
 
Created
Source

build status

turf-bezier

Takes a linestring and outputs a curved version of the line.

var bezier = require('turf-bezier')
var linestring = require('turf-linestring')
var resolution = 5000
var intensity = .85
var lineIn = linestring([
      [
        -80.08724212646484,
        32.77428536643231
      ],
      [
        -80.03746032714844,
        32.84007757059952
      ],
      [
        -80.01548767089844,
        32.74512501406368
      ],
      [
        -79.95368957519531,
        32.850461360442424
      ]
    ])

var lineOut = bezier(lineIn, 5000, .85)

Keywords

FAQs

Package last updated on 29 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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