Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | 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
 
11
dojo.provide("dojo.animation.AnimationEvent");
12
dojo.require("dojo.lang.common");
13
dojo.deprecated("dojo.animation.AnimationEvent is slated for removal in 0.5; use dojo.lfx.* instead.", "0.5");
14
dojo.animation.AnimationEvent = function (animation, type, coords, startTime, currentTime, endTime, duration, percent, fps) {
15
	this.type = type;
16
	this.animation = animation;
17
	this.coords = coords;
18
	this.x = coords[0];
19
	this.y = coords[1];
20
	this.z = coords[2];
21
	this.startTime = startTime;
22
	this.currentTime = currentTime;
23
	this.endTime = endTime;
24
	this.duration = duration;
25
	this.percent = percent;
26
	this.fps = fps;
27
};
28
dojo.extend(dojo.animation.AnimationEvent, {coordsAsInts:function () {
29
	var cints = new Array(this.coords.length);
30
	for (var i = 0; i < this.coords.length; i++) {
31
		cints[i] = Math.round(this.coords[i]);
32
	}
33
	return cints;
34
}});
35