|
|
dojo.gfx in detail - Dojo, Now With Drawing Tools
|
05/14/2009, by Matthew Russell
|
Internalizing Dojo’s “write once, deploy anywhere” philosophy, Dojo’s gfx (pronounced “g-f-x” or sometimes “graphics”) library packs a powerful 2-D drawing API that’s capable of plugging in to an arbitrary renderer. Out of the box, it works with Canvas, Silverlight, SVG and VML, so regardless of which browser your application is ultimately viewed within, gfx has you covered.
My article Dojo: the JavaScript Toolkit with Industrial-Strength Mojo in the July 2008 issue of Linux Journal illustrated how Dojo significantly lowers the amount of effort it takes to develop a cross-browser Web application by normalizing so many of the yucky aspects of Web programming, such as DOM manipulation, non-uniform aspects of the JavaScript across browsers, and repetitive tasks, such as styling nodes, performing AJAX requests and so forth. With that working knowledge, let’s turn to Dojo’s gfx library—a much more specialized aspect of the toolkit that’s expressly designed to give you 2-D drawing tools that can be used to do anything from producing a cool-looking reflection of an image to creating an animated game to rendering a drag-and-drop graph.
This article aslo appeared in Linux Journal and has now been re-printed online by author.
Read More...
|
Rate this Ajax Articles
Rating: 0.0 out of votes cast
| |
|
|
|
|
|
|
|
|
|
|
|
|