Socket
Socket
Sign inDemoInstall

@mapbox/unitbezier

Package Overview
Dependencies
0
Maintainers
14
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/unitbezier

unit bezier curve interpolation


Version published
Maintainers
14
Weekly downloads
1,183,106
decreased by-8.44%

Weekly downloads

Readme

Source

Build Status

unitbezier

Unit bezier interpolation function: a port to JavaScript from Webkit:

http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/UnitBezier.h

api

new UnitBezier(p1x, p1y, p2x, p2y)

Initialize a new bezier curve given the points

bezier.solve(x, epsilon)

Evaluate bezier for value x (ranging from 0 to 1) with epsilon precision (1e-6 by default).

Keywords

FAQs

Last updated on 22 Oct 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc