Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.51 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.51 KB

standalone-closure-graphics

A collection of some of the graphics functionality from the Google Closure library that does not require the full inclusion of Closure.

The Google Closure library has some excellent graphics routines! Unfortunately, you need to include the entire closure library to get access to these routines. This may pose problems because:

  • Your project may not be minified with closure. You probably don't want to do a giant refactor for this
  • You want to do some simple graphics prototypes and do not need the kitchen sink
  • You're already using jQuery, and don't need duplicate routines for selectors, event handling, etc.

Included files:

The classes are now global. For instance, if using closure you'd call goog.graphics.AffineTransform, but with this library, you'd just use AffineTransform.

The only dependency is that if you include Vec2.js, you must also include Coordinate.js as Vec2 extends from Coordinate.

If you'd like to convert additional classes, I'll gladly review any pull requests!