MCPcopy Index your code
hub / github.com/uxebu/bonsai

github.com/uxebu/bonsai @v0.4.5 sqlite

repository ↗ · DeepWiki ↗ · release v0.4.5 ↗
529 symbols 1,160 edges 317 files 90 documented · 17% 1 cross-repo links
README

Bonsai

(previously known as bikeshedjs)

The art of bonsai tells a story through living illusion. A bonsai artist searches for ways to express his personal creativity by mixing form and thought in a miniature world. [source]

Introduction

Bonsai is a JavaScript graphics library. For the finer details, see the documentation (currently in construction).

Bonsai's main features include:

  • Architecturally separated runner and renderer
  • iFrame, Worker and Node running contexts
  • Shapes
  • Paths
  • Assets (Videos, Images, Fonts, SubMovies)
  • Keyframe and regular animation (easing functions too)
  • Shape/path morphing
  • and much more...

An example

Draw a 100x200 rectangle to the stage at {0,0}:

var r = new Rect(0, 0, 100, 200).addTo(stage);

Fill it:

r.fill('red');

Change your mind... make it darker:

r.fill( color('red').darker() );

Animate it:

r.animate('400ms', {
  x: 50,
  y: 50,
  width: 200
});

See more here: Bonsai Documentation/Overviews or join the IRC channel #bonsaijs on freenode and ask for help.

Core symbols most depended-on inside this repo

expect
called by 1340
lib/jasmine-core/jasmine.js
createArbitraryDisplayObject
called by 115
test/display_list-spec.js
toRGBA
called by 106
test/color-spec.js
color
called by 84
src/color.js
createDisplayList
called by 47
test/display_list-spec.js
b
called by 42
example/knockout-3.0.0.js
c
called by 42
example/knockout-3.0.0.js
expectEqualSegments
called by 42
test/curved_path-spec.js

Shape

Function 529

Languages

TypeScript100%

Modules by API surface

lib/requirejs/require.js28 symbols
src/runner/display_object.js27 symbols
lib/qc/qc.js27 symbols
src/runner/path/path.js19 symbols
lib/jasmine-core/jasmine.js18 symbols
example/browser-profiling/platform.js18 symbols
example/knockout-3.0.0.js17 symbols
src/runner/text.js15 symbols
example/library/movies/blobs-by-manfred.js13 symbols
src/runner/text_span.js12 symbols
example/library/movies/set.js11 symbols
test/event_emitter-spec.js10 symbols

Dependencies from manifests, versioned

optimist0.3.1 · 1×
requirejs2.0 · 1×
riak-js0.4.1 · 1×
webdriverjs0.5.8 · 1×

For agents

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

⬇ download graph artifact