Skip to content

KineticJS is an HTML5 Canvas JavaScript library that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.

License

Notifications You must be signed in to change notification settings

sashton/KineticJS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Building the KineticJS library To build the library, you need to have Ruby and Rubygems installed. After that, install the dependencies by running bundle install.

To build a development version of the library, run thor build:dev VERSION, where VERSION is a string that can be anything you like. For example, using thor build:dev core will produce kinetic-core.js. To build a minified version of the library, run thor build:prod VERSION. If you want to add a release date other than the current day, use -d="DATE" (e.g. -d="Mar 07 2012").

If you add a file in the src directory, be sure to add the filename to the filename array in the Thorfile.

#Tests To run tests, open unitTests.html, functionalTests.html, or manualTests.html in the tests/html directory. Unit tests and functional tests output the results to the console via console.log() so be sure to have it open. Use test() for hard tests which will throw an error if something fails, and use warn() for soft tests that will allow the tests to continue. The warn() method is great for tests that will have different results in different browsers, such as canvas data url comparisons, text metric dimensions, etc. All tests should pass in Google Chrome with no warnings, and all tests should pass with some warnings in other browsers.

#Pull Requests I'd be happy to review any pull requests that may better the KineticJS project, in particular if you have a bug fix, enhancement, or a new shape (see src/shapes for examples). Before doing so, please first make sure that all of the unit tests and functional tests pass.

About

KineticJS is an HTML5 Canvas JavaScript library that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.6%
  • Ruby 0.4%