Code Monkey home page Code Monkey logo

bonsai-docs's People

Contributors

basecode avatar nonken avatar padolsey avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bonsai-docs's Issues

(minor) site - documentation - mobile browser

Reproduce:

  • go to documents on website
  • zoom in on text (double tap on iphone)

result:

  • content partially shown
  • nav bar covers content when scrolling

possible fix:

  • don't use 'position:fixed' on small screens (media queries?)

Minor issue, had to wait till I got to work to read documentation without being annoyed too much ;)

Add note that bonsai.js has to be used as is

One developer bundled bonsai.js together with jquery and other components into one file. We should document, that the bonsai.js should be kept as is, so that the worker/iframe can be spawned.

Improvements of the Basic Shapes documentation

Once you click into a specific element’s documentation the coordinates of the x and y are clear, but it is a bit misleading from here: http://docs.bonsaijs.org/overview/SimpleShapes.html

I propose changing what is currently there to the follwing:

  • new Rect(x, y, width, height, [cornerRadius]) (docs)
  • new Arc(centerX, centerY, radius, startAngle, endAngle, isAntiClockwise) (docs)
  • new Circle(centerX, centerY, radius) (docs)
  • new Ellipse(centerX, centerY, radiusX, radiusY) (docs)
  • new Polygon(centerX, centerY, radius, sides) (docs)
  • new Star(centerX, centerY, radius, rays, factor) (docs)

Or even using the terse cx | cy would at least provide the additional context that it is different than the top left corner.

Analytics?

I see you have analytics on the bonsai marketing page, but not the docs site. Not sure if you guys care to see where the most time is spent on the docs or looking into that anymore.

How to refresh a stage with new code from main window

There needs to be at least some code example that refreshes a stage by supplying new code. Something you could do from the console, for instance. Or actually something orbit is already doing.

Right now I'm simply destroying the movie and creating a whole new instance, but that can hardly be the "right" way (tm)?

Either way, please put up an example on how to refresh and manipulate the stage from "the outside".

Morphing

The docs don't mention morphing but I'm sure I've seen morphing demos. I think there ought to be section in or next to animation about morphing, as well as details on morphing in the api docs.

How to add a custom font

I want to use a custom font and have no clue how to include it in the app. The overview doesn't seem to mention it and the Text class does neither.

Add events section to docs

Very much missing are the event docs. Add all the events that might be registered in bonsai (keep in mind a future canvas renderer, so don't go easy and say "any DOM event", that won't suffice).

And obviously list the various ways to register or deregister events.

filter.DropShadow doesn't take an array

As far as I know filter.DropShadow doesn't take an array. Also we should maybe add values that make the effect visible.

Instead of
var f = new filter.DropShadow([0, 0, 0, 0x000000FF]);
we could do
var f = new filter.DropShadow(1, 1, 2, 0x000000FF);

“Introduction to Matrices in Bonsai“

Knowing that bonsai has a similar architecture to flash, I have come across this article: http://www.readability.com/articles/dsqhsvwg

At first I was just reading it academically to get a better understanding of matrices as a whole, but a lot of the commentary in it reminds me of what I’ve seen in the source (such as the matrix getter actually being a clone of the matrix).

Does this make sense enough to tie into the bonsai docs in any form?

Set text color

In the text department, maybe mentioning clearly how to set the color of the text is nice. It certainly confused me to heck.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.