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/gradient.js

  • Provides:

    • dojox.gfx.gradient
  • Requires:

    • dojox.gfx.matrix in common
  • dojo

    • alias - dojo
  • dojox.gfx.matrix

    • alias - dojox.gfx.matrix
  • dojo.Color

    • alias - dojo.Color
  • dojox.gfx.gradient.rescale

    • parameters:
      • stops: (typeof Array:)
        input gradient as a list of colors with offsets
        (see dojox.gfx.defaultLinearGradient and dojox.gfx.defaultRadialGradient)
      • from: (typeof Number:)
        the beginning of the window, should be less than "to"
      • to: (typeof Number:)
        the end of the window, should be more than "from"
    • summary
      recalculates a gradient from 0-1 window to
      "from"-"to" window blending and replicating colors,
      if necessary
    • type
      Function
  • dojox.gfx.gradient.project

    • parameters:
      • matrix: (typeof dojox.gfx.Matrix2D|Null:)
        matrix to apply to a shape and its gradient
      • grad: (typeof Object:)
        a linear gradient object to be transformed
      • tl: (typeof dojox.gfx.Point:)
        top-left corner of shape's bounding box
      • rb: (typeof dojox.gfx.Point:)
        right-bottom corner of shape's bounding box
      • ttl: (typeof dojox.gfx.Point:)
        top-left corner of shape's transformed bounding box
      • trb: (typeof dojox.gfx.Point:)
        right-bottom corner of shape's transformed bounding box
    • summary
      return a new gradient using the "VML algorithm" and suitable for VML
    • type
      Function
  • dojox.gfx.gradient

    • type
      Object
  • dojox.gfx

    • type
      Object
  • dojox

    • type
      Object