dojox.gfx.utils¶
Available: | since V1.0 |
---|
Contents
The dojox.gfx.utils module is a set of utility functions for working with dojox.gfx.Surface objects. They mainly consist of serialization functions to allow you to serialize a dojox.gfx.Surface into a variety of forms, from GFX Objects, to JSON, to even SVG text across all browsers.
Provided functions¶
-
Serialize the passed surface object to JSON form
-
Rebuild the dojox.gfx.Surface object from the provided JSON
-
Serialize the passed surface object to JavaScript Object form
dojox.gfx.utils.deserialize
Rebuild the dojox.gfx.Surface object from the provided JS representation.
-
Serialize the passed surface object to SVG text.
Note: This function call is async on some browsers and returns a deferred object.