]>
git.proxmox.com Git - sencha-touch.git/blob - src/src/fx/easing/Linear.js
4 Ext
.define('Ext.fx.easing.Linear', {
6 extend
: 'Ext.fx.easing.Abstract',
8 alias
: 'easing.linear',
15 updateStartValue: function(startValue
) {
16 this.distance
= this.getEndValue() - startValue
;
19 updateEndValue: function(endValue
) {
20 this.distance
= endValue
- this.getStartValue();
23 getValue: function() {
24 var deltaTime
= Ext
.Date
.now() - this.getStartTime(),
25 duration
= this.getDuration();
27 if (deltaTime
> duration
) {
29 return this.getEndValue();
32 return this.getStartValue() + ((deltaTime
/ duration
) * this.distance
);