dojox/gfx/fx.js

  • Provides:

    • dojox.gfx.fx
  • Requires:

    • dojox.gfx.matrix in common
  • start

    • summary
  • units

    • summary
  • temp

    • summary
  • values

    • summary
  • length

    • summary
  • def

    • summary
  • stack

    • summary
  • original

    • summary
  • g.fx.animateStroke

    • summary
  • g.fx.animateFill

    • summary
  • g.fx.animateFont

    • summary
  • g.fx.animateTransform

    • summary
  • InterpolNumber.getValue

    • type
      Function
    • parameters:
      • r: (typeof )
    • source: [view]
        return (this.end - this.start) * r + this.start;
    • summary
  • InterpolUnit.getValue

    • type
      Function
    • parameters:
      • r: (typeof )
    • source: [view]
        return (this.end - this.start) * r + this.start + this.units;
    • summary
  • InterpolColor.getValue

    • type
      Function
    • parameters:
      • r: (typeof )
    • source: [view]
        return d.blendColors(this.start, this.end, r, this.temp);
    • summary
  • InterpolValues.getValue

    • type
      Function
    • parameters:
      • r: (typeof )
    • source: [view]
        return this.values[Math.min(Math.floor(r * this.length), this.length - 1)];
    • summary
  • InterpolObject.getValue

    • type
      Function
    • parameters:
      • r: (typeof )
    • source: [view]
        var ret = dojo.clone(this.def);
        for(var i in this.values){
         ret[i] = this.values[i].getValue(r);
        }
        return ret;
    • summary
  • InterpolTransform.getValue

    • type
      Function
    • parameters:
      • r: (typeof )
    • source: [view]
        var ret = [];
        dojo.forEach(this.stack, function(t){
         if(t instanceof m.Matrix2D){
          ret.push(t);
          return;
         }
         if(t.name == "original" && this.original){
          ret.push(this.original);
          return;
         }
         if(!(t.name in m)){ return; }
         var f = m[t.name];
         if(typeof f != "function"){
          // constant
          ret.push(f);
          return;
         }
         var val = dojo.map(t.start, function(v, i){
             return (t.end[i] - v) * r + v;
            }),
          matrix = f.apply(m, val);
         if(matrix instanceof m.Matrix2D){
          ret.push(matrix);
         }
        }, this);
        return ret;
    • summary
  • dojox.gfx.fx

    • type
      Object
    • summary
  • dojox.gfx

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary