2.4.5-beta.0 • Published 4 years ago

@freesewing/bezier-js v2.4.5-beta.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

NOTE: This is a temporary fork

This version of bezier-js is a fork of the original to incorporate a fix for an issue with offsets for which a PR was submitted but no new release has been published that incorporates that fix.

This version does. As soon as an upstream version that includes the same fix is published, this fork will be discontinued.

Bezier.js

A node.js and client-side library for (quadratic and cubic) Bezier curve work.

For a Demo and the API, hit up either pomax.github.io/bezierjs or read the souce (./lib for the library code, start at index.js).

Installation

npm install bezier-js will add bezier.js to your dependencies, remember to add --save or --save-dev if you need that to be persistent of course.

Use

var Bezier = require('bezier-js') and off you go.

Use in the browser

Load the toplevel bezier.js the same way you would any other browser script, using a <script src="..."></script> declaration.

Working on the code

To test new code, use npm test.

To build the library, use npm run build.

License

This code is MIT licensed.

Engagement

For comments and questions, tweet at me or file an issue.