Update of /cvsroot/dynapi/dynapi3x/src/fx
In directory sc8-pr-cvs1:/tmp/cvs-serv6593/src/fx
Modified Files:
circleanim.js fader.js hoveranim.js motionx.js pathanim.js
timerx.js
Added Files:
swiper.js
Log Message:
updated/added by raymond
--- NEW FILE ---
/*
DynAPI Distribution
Swiper Animation Extension - originally designed by Erik Arvidsson
(http://web.eae.net)
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
requires: DynLayer
*/
DynLayer.prototype.swipeTo = function(dir, steps, ms) {
this._swipeSteps = (steps!=null)? steps: 4;
this._swipeMS = (ms!=null)? ms:25;
this._swipeDir=dir;
if (this.swipeTimer != null) window.clearTimeout(this.swipeTimer);
if (!this._swipeCnt) { // No animation yet!
this._swipeOrgX = this.getX();
this._swipeOrgY = this.getY();
this._swipeOrgWidth = this.getWidth();
this._swipeOrgHeight = this.getHeight();
}
this._swipeCnt = this._swipeSteps;
this.setClip([0,0,0,0]);
window.setTimeout(this+"._swipe()", this._swipeMS);
};
DynLayer.prototype._swipe = function() {
var steps = this._swipeSteps;
var x = this._swipeOrgX;
var y = this._swipeOrgY;
var w = this._swipeOrgWidth;
var h = this._swipeOrgHeight;
if (this._swipeCnt == 0) {
this.setClip([0, w, h,0]);
this.invokeEvent('swipefinish');
return;
}
else {
this._swipeCnt--;
this.setVisible(true);
switch (this._swipeDir) {
case "bottom": //down (see the numpad)
this.setClip([h * this._swipeCnt / steps, w, h, 0]);
this.setY(y - h * this._swipeCnt / steps);
break;
case "top":
this.setClip([0, w, h * (steps - this._swipeCnt) /
steps, 0]);
this.setY(y + h * this._swipeCnt / steps);
break;
case "right":
this.setClip([0, w, h,w * this._swipeCnt / steps]);
this.setX(x - w * this._swipeCnt / steps);
break;
case "left":
this.setClip([0, w * (steps - this._swipeCnt) / steps,
h, 0]);
this.setX(x + w * this._swipeCnt / steps);
break;
case "bottom-right":
this.setClip([h * this._swipeCnt / steps, w, h, w *
this._swipeCnt / steps]);
this.setX(x - w * this._swipeCnt / steps);
this.setY(y - h * this._swipeCnt / steps);
break;
case "bottom-left":
this.setClip([h * this._swipeCnt / steps, w * (steps -
this._swipeCnt) / steps, h, 0]);
this.setX(x + w * this._swipeCnt / steps);
this.setY(y - h * this._swipeCnt / steps);
break;
case "top-left":
this.setClip([0, w * (steps - this._swipeCnt) / steps,
h * (steps - this._swipeCnt) / steps, 0]);
this.setX(x + w * this._swipeCnt / steps);
this.setY(y + h * this._swipeCnt / steps);
break;
case "top-right":
this.setClip([0, w, h * (steps - this._swipeCnt) /
steps, w * this._swipeCnt / steps]);
this.setX(x - w * this._swipeCnt / steps);
this.setY(y + h * this._swipeCnt / steps);
}
this.swipeTimer = window.setTimeout(this+"._swipe()", this._swipeMS);
}
};
Index: circleanim.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/circleanim.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** circleanim.js 5 Mar 2003 04:36:16 -0000 1.3
--- circleanim.js 26 Mar 2003 02:22:31 -0000 1.4
***************
*** 8,14 ****
*/
- // You must add this to the DynAPI library if you want to include it via
dynapi.library.include('CircleAnimation');
- //
dynapi.library.add('dynapi.fx.CircleAnimation','circleanim.js',['Thread','dynapi.functions.Math']);
-
function CircleAnimation(dlyr) {
this.Thread = Thread;
--- 8,11 ----
Index: fader.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/fader.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** fader.js 9 Mar 2003 22:21:47 -0000 1.2
--- fader.js 26 Mar 2003 02:22:31 -0000 1.3
***************
*** 1,5 ****
/*
DynAPI Distribution
! Fader Class
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
--- 1,5 ----
/*
DynAPI Distribution
! Fader Animation Extension
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
Index: hoveranim.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/hoveranim.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** hoveranim.js 5 Mar 2003 04:36:16 -0000 1.3
--- hoveranim.js 26 Mar 2003 02:22:31 -0000 1.4
***************
*** 8,14 ****
*/
- // You must add this to the DynAPI library if you want to include it via
dynapi.library.include('HoverAnimation');
- // dynapi.library.add('HoverAnimation','hoveranim.js','Thread','dynapi.fx');
-
function HoverAnimation(dlyr) {
this.Thread = Thread;
--- 8,11 ----
Index: motionx.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/motionx.js,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** motionx.js 10 Feb 2003 22:35:57 -0000 1.1.1.1
--- motionx.js 26 Mar 2003 02:22:31 -0000 1.2
***************
*** 1,5 ****
/*
DynAPI Distribution
! MotionX Class by Raymond Irving ([EMAIL PROTECTED])
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
--- 1,5 ----
/*
DynAPI Distribution
! MotionX Class by Raymond Irving (http://dyntools.shorturl.com)
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
Index: pathanim.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/pathanim.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** pathanim.js 21 Feb 2003 12:23:43 -0000 1.2
--- pathanim.js 26 Mar 2003 02:22:31 -0000 1.3
***************
*** 35,39 ****
this.paths[n].frame = frame;
};
! p.play = function (noevt) {
if (!this.playing) {
this.pathPlaying = null;
--- 35,39 ----
this.paths[n].frame = frame;
};
! p.playAnimation = function (noevt) {
if (!this.playing) {
this.pathPlaying = null;
***************
*** 54,63 ****
};
p._Thread_stop = Thread.prototype.stop;
! p.stop = function (noevt) {
if (this.pathPlaying && this.pathPlaying.resets && this.dlyr!=null)
this.dlyr.setLocation(this.pathPlaying[0],this.pathPlaying[1]);
this._Thread_stop();
this.pathPlaying = null;
this.playing = false;
! if (this.dlyr!=null && noevt!=false) this.dlyr.invokeEvent("pathcancel");
};
p.run = function () {
--- 54,63 ----
};
p._Thread_stop = Thread.prototype.stop;
! p.stopAnimation = function (noevt) {
if (this.pathPlaying && this.pathPlaying.resets && this.dlyr!=null)
this.dlyr.setLocation(this.pathPlaying[0],this.pathPlaying[1]);
this._Thread_stop();
this.pathPlaying = null;
this.playing = false;
! if (this.dlyr!=null && noevt!=false) this.dlyr.invokeEvent("pathstop");
};
p.run = function () {
Index: timerx.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi3x/src/fx/timerx.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** timerx.js 9 Mar 2003 22:21:47 -0000 1.2
--- timerx.js 26 Mar 2003 02:22:31 -0000 1.3
***************
*** 1,5 ****
/*
DynAPI Distribution
! TimerX Class by Raymond Irving ([EMAIL PROTECTED])
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
--- 1,5 ----
/*
DynAPI Distribution
! TimerX Class by Raymond Irving (http://dyntools.shorturl.com)
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
-------------------------------------------------------
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