Giter Site home page Giter Site logo

tamilvasan / bezierizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeremyckahn/bezierizer

0.0 1.0 0.0 315 KB

A graphical widget for defining a Bezier curve

Home Page: http://jeremyckahn.github.io/bezierizer/

License: MIT License

JavaScript 63.62% CSS 1.02% HTML 35.36%

bezierizer's Introduction

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.

bezierizer's People

Contributors

evanjbowling avatar jeremyckahn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.