Skip to content

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

Notifications You must be signed in to change notification settings

TheRoccoB/standalone-closure-graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published