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-10-07 21:12:45 -07:00
dist updated jsdocs. TextPath setText() now calls Text setText(). Polygon setPoints() method now has data conversion logic similar to Line 2012-10-07 21:12:45 -07:00
src updated jsdocs. TextPath setText() now calls Text setText(). Polygon setPoints() method now has data conversion logic similar to Line 2012-10-07 21:12:45 -07:00
tests fixed multiple bugs related to toDataURL() when using hidden layers 2012-10-07 19:38:12 -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 first pass at rewriting the setAttrs logic in Node. In order to have a cleaner OO design, the data type logic needs to exist within each respective module, such that the setter methods are the source of truth. 2012-09-24 20:34:23 -07:00
Thorfile created Collection class to handle iterating over arrays returned from get() 2012-09-23 10:53:23 -07:00

#Building the KineticJS library To build the library, you need to have Ruby and Rubygems installed. After that, run gem install thor, gem install json_pure, and gem install uglifier to install the dependencies.

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, manualTests.html, or performanceTests.html in the tests/html directory. Unit, functional, and performance 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.