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
2014-03-09 13:15:01 -07:00
doc-includes docs: fix wrong shadow color configuration 2014-02-24 22:28:05 +08:00
jsdoc-master grunt server tasks added 2014-02-27 18:45:28 +08:00
src added perf tests for new FastLayer 2014-03-09 13:15:01 -07:00
test added perf tests for new FastLayer 2014-03-09 13:15:01 -07:00
.gitignore Faster removeChildren and destroyChildren methods 2014-03-02 08:21:11 +08:00
.jshintrc only lint errors fixes 2014-02-27 08:49:18 +08:00
.npmignore .npmignore added 2014-02-27 20:00:41 +08:00
.travis.yml syncing master travis yml branch whitelist with filter branch 2013-09-11 21:12:44 -07:00
bower-template.json Modify bower.json to meet bower standard as specified at https://docs.google.com/document/d/1APq7oA9tNao1UYWyOm8dKqlRP2blVkROYLZ2fLIjtWc/edit#heading=h.jmmgkr9iuyac 2014-01-22 15:01:30 -07:00
bower.json Modify bower.json to meet bower standard as specified at https://docs.google.com/document/d/1APq7oA9tNao1UYWyOm8dKqlRP2blVkROYLZ2fLIjtWc/edit#heading=h.jmmgkr9iuyac 2014-01-22 15:01:30 -07:00
Gruntfile.js setup FastLayer. Layer won't extend FastLayer until FastLayer is complete 2014-03-08 18:05:14 -08:00
kinetic.js Alpha nodejs support 2014-02-27 19:55:39 +08:00
kinetic.min.js Alpha nodejs support 2014-02-27 19:55:39 +08:00
nodejs-demo.js update NodeJS example 2014-03-04 19:43:06 +08:00
package.json promoting version to 5.02 in package.json file. This is the version we are working on 2014-02-27 19:16:25 -08:00
presentation-schedule.md Update presentation-schedule.md 2013-08-22 08:18:38 -04:00
README.md update NodeJS example 2014-03-04 19:43:06 +08:00
server.js grunt server tasks added 2014-02-27 18:45:28 +08:00

Before doing all dev stuff make sure you have node installed. After that, run npm install --dev in the main directory to install the node module dependencies.

Run grunt --help to see all build options.

#Building the KineticJS Framework

To build a development version of the framework, run grunt dev. To run a full build, which also produces the minified version and the individually minified modules for the custom build, run grunt full. You can also run grunt beta to generate a beta version.

If you add a file in the src directory, be sure to add the filename to the sourceFiles array variable in Gruntfile.js.

#Testing

Build Status

KineticJS uses Mocha for testing.

  • If you need run test only one time run grunt test.
  • While developing it is easy to use grunt server with watch task. Just run it and go to http://localhost:8080/test/runner.html. After src file change kinetic-dev.js will be automatically created, so you just need refresh test the page.

KineticJS is covered with hundreds of tests and well over a thousand assertions. KineticJS uses TDD (test driven development) which means that every new feature or bug fix is accompanied with at least one new test.

#Generation documentation

Run grunt docs and see created 'documentation' folder.

#NodeJS

Support of NodeJS is experimental! And package is not published in npm yet.

We are using (node-canvas)[https://github.com/LearnBoost/node-canvas] to create canvas element.

###Example

See file nodejs-demo.js.

#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 tests pass (grunt test).