Update of /cvsroot/dynapi/dynapi3x/src/fx
In directory sc8-pr-cvs1:/tmp/cvs-serv30194/src/fx

Modified Files:
        bezier.js circleanim.js hoveranim.js slideanim.js 
Added Files:
        fader.js 
Log Message:
uploaded by raymond (with changes made by Benoit)

--- NEW FILE ---
/*
        DynAPI Distribution
        Fader Class

        The DynAPI Distribution is distributed under the terms of the GNU LGPL license.

        requires: DynLayer
*/

DynLayer.prototype._fadeMode = '';
DynLayer.prototype.fadeIn = function(){
        this._opacity=0;
        this.setVisible(false);
        this._fadeMode='in';
        this.fadeTo(100,4);
};
DynLayer.prototype.fadeOut = function(){
        this._opacity=100;
        this._fadeMode='out';
        this.fadeTo(0,4);
};
// Fades an object to "opacity" by "inc" increments in every "ms" millisenconds
DynLayer.prototype.fadeTo = function(opacity,inc,ms){
        if(this._opacity==null) this._opacity=100;
        inc=(inc)? Math.abs(inc):5;
        this._fadeMs=(ms)? ms:50;
        if (this._opacity>opacity) inc*=-1;
        this._fadeInc=inc;
        this._fadeToOpacity = opacity;
        this._fadeTimeout=window.setTimeout(this+'._fade()',this._fadeMs);
};
DynLayer.prototype._fade = function(){
        var ua=dynapi.ua;
        var fm=this._fadeMode;
        var inc = this._fadeInc;
        var opac = this._opacity;
        var fopac = this._fadeToOpacity;
        opac+=inc;
        if ((inc<0 && opac<=fopac)|| (inc>0 && opac>=fopac)) opac=fopac;
        this._opacity=opac;
        if(!ua.def) this.setVisible((opac>0)? true:false);
        else if(ua.dom && this.css){
                if(ua.ie) this.css.filter='alpha(opacity=' + opac + ')';
                else this.css.MozOpacity = parseInt(opac) +'%';
        }
        if(!ua.ns4 && opac>1 && this.visible==false) this.setVisible(true);
        if(opac!=fopac) 
this._fadeTimeout=window.setTimeout(this+'._fade()',this._fadeMs);
        else {
                this._fadeMode='';
                window.clearTimeout(this._fadeTimeout);
                this.invokeEvent('fade'+fm);
        
        }
};
Index: bezier.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/bezier.js,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** bezier.js   10 Feb 2003 22:35:57 -0000      1.1.1.1
--- bezier.js   5 Mar 2003 04:36:15 -0000       1.2
***************
*** 1,3 ****
! // Bezier Algorithm Reference: http://astronomy.swin.edu.au/~pbourke/curves/bezier/
  
  function Bezier(cp, n) {
--- 1,13 ----
! /*
!       DynAPI Distribution
!       Bezier Class
!       
!       Bezier Algorithm Reference: 
http://astronomy.swin.edu.au/~pbourke/curves/bezier/
! 
!       The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
! 
!       requires: dynapi.fx.Thread
! */
! 
  
  function Bezier(cp, n) {

Index: circleanim.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/circleanim.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** circleanim.js       19 Feb 2003 03:44:31 -0000      1.2
--- circleanim.js       5 Mar 2003 04:36:16 -0000       1.3
***************
*** 5,9 ****
        The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
  
!       requires: PathAnimation
  */
  
--- 5,9 ----
        The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
  
!       requires: dynapi.functions.Math,dynapi.fx.Thread
  */
  
***************
*** 21,25 ****
        this.angle = 0;
        this.setAngleIncrement(10);
! }
  var p = dynapi.setPrototype('CircleAnimation','Thread');
  p.setRadius = function (r) {
--- 21,25 ----
        this.angle = 0;
        this.setAngleIncrement(10);
! };
  var p = dynapi.setPrototype('CircleAnimation','Thread');
  p.setRadius = function (r) {

Index: hoveranim.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/hoveranim.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** hoveranim.js        19 Feb 2003 03:44:31 -0000      1.2
--- hoveranim.js        5 Mar 2003 04:36:16 -0000       1.3
***************
*** 5,9 ****
        The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
  
!       requires: PathAnimation
  */
  
--- 5,9 ----
        The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
  
!       requires: dynapi.functions.Math, dynapi.fx.Thread
  */
  
***************
*** 21,25 ****
        this.angle = 0;
        this.setAngleIncrement(10);
! }
  var p = dynapi.setPrototype('HoverAnimation','Thread');
  p.setAmplitude = function (amp) {
--- 21,25 ----
        this.angle = 0;
        this.setAngleIncrement(10);
! };
  var p = dynapi.setPrototype('HoverAnimation','Thread');
  p.setAmplitude = function (amp) {

Index: slideanim.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/slideanim.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** slideanim.js        21 Feb 2003 12:22:38 -0000      1.1
--- slideanim.js        5 Mar 2003 04:36:16 -0000       1.2
***************
*** 5,9 ****
        The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
  
!       requires: dynapi.functions.Thread
  */
  
--- 5,9 ----
        The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
  
!       requires: dynapi.fx.Thread
  */
  



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-cvs

Reply via email to