Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/gfx/utils.js

  • Provides:

    • dojox.gfx.utils
  • Requires:

    • dojox.gfx in common
  • dojox.gfx.utils.forEach

    • parameters:
      • object: (typeof dojox.gfx.Surface)
        || dojox.gfx.Shape
      • f: (typeof Function|String|Array)
      • o: (typeof Object)
    • type
      Function
  • dojox.gfx.utils.serialize

    • parameters:
      • object: (typeof dojox.gfx.Surface)
        || dojox.gfx.Shape
    • returns
      Array|Object
    • type
      Function
  • dojox.gfx.utils.toJson

    • parameters:
      • object: (typeof dojox.gfx.Surface)
        || dojox.gfx.Shape
      • prettyPrint: (typeof Boolean)
    • returns
      String
    • type
      Function
  • dojox.gfx.utils.deserialize

    • parameters:
      • parent: (typeof dojox.gfx.Surface)
        || dojox.gfx.Shape
      • object: (typeof dojox.gfx.Shape)
        || Array
    • returns
      Array|dojox.gfx.Shape
    • type
      Function
  • dojox.gfx.utils.fromJson

    • parameters:
      • parent: (typeof dojox.gfx.Surface)
        || dojox.gfx.Shape
      • json: (typeof String)
    • returns
      Array||dojox.gfx.Shape
    • type
      Function
  • dojox.gfx.utils.toSvg

    • parameters:
      • surface: (typeof GFX)
        The GFX surface to serialize.
    • returns
      dojo.Deferred that will be called when serialization finishes.
    • summary
      Function to serialize a GFX surface to SVG text.
    • description
      Function to serialize a GFX surface to SVG text.  The value of this output
      is that there are numerous serverside parser libraries that can render
      SVG into images in various formats.  This provides a way that GFX objects
      can be captured in a known format and sent serverside for serialization
      into an image.
    • return_summary
      Deferred object that will be called when SVG serialization is complete.
    • type
      Function
  • dojox.gfx.utils._gfxSvgProxy

    • type
      Object
  • dojox.gfx.utils._initSvgSerializerDeferred

    • type
      Object
  • dojox.gfx.utils._svgSerializerInitialized

    • summary
      Internal function to call when the serializer init completed.
    • tags:
    • type
      Function
  • dojox.gfx.utils._initSvgSerializer

    • summary
      Internal function to initialize the hidden iframe where SVG rendering
      will occur.
    • tags:
    • type
      Function
  • dojox.gfx.utils._innerXML

    • parameters:
      • node: (typeof Node)
        The node from which to generate the XML text representation.
    • returns
      String
    • summary
      Implementation of MS's innerXML function, borrowed from dojox.xml.parser.
    • tags:
    • type
      Function
  • dojox.gfx.utils._cleanSvg

    • parameters:
      • svg
    • returns
      Cleaned SVG text.
    • summary
      Internal function that cleans up artifacts in extracted SVG content.
    • tags:
    • type
      Function
  • dojo

    • alias - dojo
  • dojox.gfx

    • alias - dojox.gfx
  • dojox.gfx.utils

    • alias - dojox.gfx.utils
  • dojox

    • type
      Object