Subversion Repositories Applications.papyrus

Rev

Rev 1318 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1318 alexandre_ 1
/*
2
	Copyright (c) 2004-2006, The Dojo Foundation
3
	All Rights Reserved.
4
 
5
	Licensed under the Academic Free License version 2.1 or above OR the
6
	modified BSD license. For more information on Dojo licensing, see:
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
9
*/
10
 
1422 alexandre_ 11
 
12
 
1318 alexandre_ 13
dojo.provide("dojo.animation.AnimationEvent");
14
dojo.require("dojo.lang.common");
15
dojo.deprecated("dojo.animation.AnimationEvent is slated for removal in 0.5; use dojo.lfx.* instead.", "0.5");
16
dojo.animation.AnimationEvent = function (animation, type, coords, startTime, currentTime, endTime, duration, percent, fps) {
17
	this.type = type;
18
	this.animation = animation;
19
	this.coords = coords;
20
	this.x = coords[0];
21
	this.y = coords[1];
22
	this.z = coords[2];
23
	this.startTime = startTime;
24
	this.currentTime = currentTime;
25
	this.endTime = endTime;
26
	this.duration = duration;
27
	this.percent = percent;
28
	this.fps = fps;
29
};
30
dojo.extend(dojo.animation.AnimationEvent, {coordsAsInts:function () {
31
	var cints = new Array(this.coords.length);
32
	for (var i = 0; i < this.coords.length; i++) {
33
		cints[i] = Math.round(this.coords[i]);
34
	}
35
	return cints;
36
}});
37