dojox.gfx.utils.serialize

Authors:?–
Project owner:?–
since:V?

Serialize the passed surface object to JavaScript Object form.

Introduction

TODO: introduce the component/class/method

Usage

TODO: how to use the component/class/method

// your code

serialize() returns following objects:

  • for a surface it returns an array of shapes.
  • for a group it returns an object with a property “children”, which contains an array of shapes.
  • for a shape it returns an object with a property “shape”, which contains a shape definition object.

Examples

Programmatic example

TODO: example

See also

  • dojox/gfx/utils/deserialize

    Rebuild the dojox.gfx.Surface object from the provided JS representation.

  • dojox.gfx.utils.toJson

    Serialize the passed surface object to JSON form

  • dojox.gfx.utils.toSvg

    Serialize the passed surface object to SVG text.

Error in the documentation? Can’t find what you are looking for? Let us know!