You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bezierizer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bezierizer

A graphical widget for defining a Bezier curve

0.1.0
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Bezierizer

API documentation

Sorry about the terrible name. I pronounce it as "bez-ee-aye-i-zer."

This is a graphical widget intended to be used by Stylie. It's built pretty specifically for Stylie, but if the community requests it (via the issue tracker), I am happy to make changes to Bezierizer to be more flexible.

Bezierizer is inspired greatly by Lea Verou's cubic-bezier and Matthew Lein's Ceaser.

To use Bezierizer, just call the constructor and give it a container element to inject itself into:

var bezierizerEl = document.getElementById('bezierizer');
var bezierizer = new Bezierizer(bezierizerEl);

bezierizer.$el.on('change', function () {
  console.log(bezierizer.getHandlePositions());
});

Dragging either handle of the widget triggers the change event on the Bezierizer instance's $el (which is the widget that is injected into the container element).

Bezierizer must be loaded as an AMD module.

FAQs

Package last updated on 24 Dec 2016

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