Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
src
.gitignore
Cakefile
README.md
index.html
mod.sublime-project
package.json
toaster.coffee

README.md

Mod

Development

Run the following to watch src/*.coffee for changes and automatically build to lib/

toaster -w

Planning

Right now I'm working on putting together the basic architecture of Mod. Also, I'm going to make a final decision about whether "mod" is a valid name. it seems like it should be fine. "mod" doesn't appear to be reserved in coffeescript or javascript. Whatever.

So I'm thinking something like the following:

Mod

Has two important array properties, plugins and toolbars. These hold on to corresponding instances of each. Classes in the Mod namespace include:

PluginLoader

Handles loading up all the plugins and putting them into the plugins array.

Toolbar

Represents the HTML portion of the UI, a list of buttons which defaults to simple activators for each of the plugins, grouped by type. A toolbar can be configured to exclude activators for plugins, or only have a specific set.

EmbeddedUI

This is an abstract class which holds functionality for UI elements which are drawn into the actual canvas element. It holds onto the instance of said canvas element and does some other stuff which is not yet clear. These classes inherit from EmbeddedUI:

Graph
Selection
  Object
  Polygon
  Point
Something went wrong with that request. Please try again.