Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
Go to file
2012-04-01 17:18:01 -07:00
dist pixel detection performance was horrible for large amounts of shapes. Added some optimizations which require knowledge of a shape's perceivable position and size based on transforms. This will be added in later. For the time being, only Kinetic.Images will have access to the detectionType property. Image cannot be transformed or offset with the center offset. Support for these will come soon as well. 2012-04-01 17:18:01 -07:00
src pixel detection performance was horrible for large amounts of shapes. Added some optimizations which require knowledge of a shape's perceivable position and size based on transforms. This will be added in later. For the time being, only Kinetic.Images will have access to the detectionType property. Image cannot be transformed or offset with the center offset. Support for these will come soon as well. 2012-04-01 17:18:01 -07:00
tests pixel detection performance was horrible for large amounts of shapes. Added some optimizations which require knowledge of a shape's perceivable position and size based on transforms. This will be added in later. For the time being, only Kinetic.Images will have access to the detectionType property. Image cannot be transformed or offset with the center offset. Support for these will come soon as well. 2012-04-01 17:18:01 -07:00
.gitignore updated .gitignore 2012-03-11 16:11:59 -07:00
Gemfile Change the Rakefile for a Thorfile. 2012-03-07 08:43:02 -05:00
Gemfile.lock Change the Rakefile for a Thorfile. 2012-03-07 08:43:02 -05:00
license.js bug fixes and enhancements. also updated the README 2012-03-10 16:52:16 -08:00
README.md added scrollbar support for container DOM, structured the unittests a bit better, and did some minor refactoring 2012-03-17 10:28:25 -07:00
Thorfile fixed syntax errors found by agentultra 2012-03-30 22:09:23 -07:00

#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 unit tests, open the unitTests.html file in the tests/html directory. To run functional tests, open the functionalTests.html file. The tests output the results to the console via console.log() so be sure to have it open.

#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 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.