MCPcopy
hub / github.com/ericdrowell/KineticJS

github.com/ericdrowell/KineticJS @v5.1.0 sqlite

repository ↗ · DeepWiki ↗ · release v5.1.0 ↗
114 symbols 274 edges 114 files 0 documented · 0%
README

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 which will build the documentation files and place them in the docs folder.

NodeJS

Support of NodeJS is experimental.An nmp package is not yet published.

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

  • You have to install node-canvas dependencies (https://github.com/LearnBoost/node-canvas/wiki/_pages)[https://github.com/LearnBoost/node-canvas/wiki/_pages]
  • Run npm install KineticJS

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

Core symbols most depended-on inside this repo

addStage
called by 311
test/runner.js
showHit
called by 23
test/runner.js
func
called by 6
kinetic.js
rgbDistance
called by 5
kinetic.js
rgbDistance
called by 5
src/filters/Mask.js
pixelAt
called by 4
kinetic.js
requestAnimFrame
called by 4
kinetic.js
func
called by 4
src/Context.js

Shape

Function 114

Languages

TypeScript100%

Modules by API surface

kinetic.js38 symbols
kinetic.min.js16 symbols
src/plugins/Path.js10 symbols
src/filters/Mask.js8 symbols
test/runner.js7 symbols
src/Shape.js5 symbols
test/performance/common/random-squares.js4 symbols
src/plugins/TextPath.js4 symbols
test/lib/stats.js2 symbols
src/shapes/Text.js2 symbols
src/filters/Kaleidoscope.js2 symbols
src/filters/Blur.js2 symbols

Dependencies from manifests, versioned

chai1.9.0 · 1×
connect2.13.0 · 1×
grunt0.4.2 · 1×
grunt-cli0.1.13 · 1×
grunt-contrib-clean0.5.0 · 1×
grunt-contrib-concat0.3.0 · 1×
grunt-contrib-copy0.5.0 · 1×
grunt-contrib-jshint0.8.0 · 1×
grunt-contrib-nodeunit0.3.2 · 1×
grunt-contrib-uglify0.3.2 · 1×
grunt-mocha-phantomjs0.4.2 · 1×

For agents

$ claude mcp add KineticJS \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact