dojox/gfx.fx (version 1.10)

Method Summary

  • animateFill(args) Returns an animation which will change fill color over time.
  • animateFont(args) Returns an animation which will change font properties over time.
  • animateStroke(args) Returns an animation which will change stroke properties over time.
  • animateTransform(args) Returns an animation which will change transformation over time.

Methods

animateFill(args)
Defined by dojox/gfx/fx

Returns an animation which will change fill color over time. Only solid fill color is supported at the moment

Parameter Type Description
args Object

an object defining the animation setting.

Returns:instance

Examples

Example 1

gfx.animateFill{{
    shape: shape,
    duration: 500,
    color: {start: "red", end: "green"}
}).play();
animateFont(args)
Defined by dojox/gfx/fx

Returns an animation which will change font properties over time.

Parameter Type Description
args Object

an object defining the animation setting.

Examples

Example 1

gfx.animateFont{{
    shape: shape,
    duration: 500,
    variant: {values: ["normal", "small-caps"]},
    size:  {end: 10, units: "pt"}
}).play();
animateStroke(args)
Defined by dojox/gfx/fx

Returns an animation which will change stroke properties over time.

Parameter Type Description
args Object

an object defining the animation setting.

Examples

Example 1

fxg.animateStroke{{
    shape: shape,
    duration: 500,
    color: {start: "red", end: "green"},
    width: {end: 15},
    join:  {values: ["miter", "bevel", "round"]}
}).play();
animateTransform(args)
Defined by dojox/gfx/fx

Returns an animation which will change transformation over time.

Parameter Type Description
args Object

an object defining the animation setting.

Returns:instance

Examples

Example 1

gfx.animateTransform{{
    shape: shape,
    duration: 500,
    transform: [
        {name: "translate", start: [0, 0], end: [200, 200]},
        {name: "original"}
    ]
}).play();
Error in the documentation? Can’t find what you are looking for? Let us know!