Lines Matching refs:anim

4485                     time = (e.initstatus * e.anim.top - e.prev) / (e.percent - e.prev) * ms;
4490 e.status = (e.prev + (e.percent - e.prev) * (time / ms)) / e.anim.top;
4558 (function (id, that, anim) {
4560 eve("raphael.anim.frame." + id, that, anim);
4562 })(that.id, that, e.anim);
4570 })(e.callback, that, e.anim);
4578 … runAnimation(e.anim, e.el, e.anim.percents[0], null, e.totalOrigin, e.repeat - 1);
4581 runAnimation(e.anim, e.el, e.next, null, e.totalOrigin, e.repeat);
4612 elproto.animateWith = function (el, anim, params, ms, easing, callback) { argument
4622 if (animationElements[i].anim == anim && animationElements[i].el == el) {
4690 function Animation(anim, ms) { argument
4695 if (anim) {
4696 for (var attr in anim) if (anim[has](attr)) {
4697 newAnim[toFloat(attr)] = anim[attr];
4702 this.anim = newAnim;
4722 var a = new Animation(this.anim, this.ms);
4740 var a = new Animation(this.anim, this.ms);
4745 function runAnimation(anim, element, percent, status, totalOrigin, times) { argument
4754 ms = anim.ms,
4761 if (e.el.id == element.id && e.anim == anim) {
4775 for (var i = 0, ii = anim.percents.length; i < ii; i++) {
4776 if (anim.percents[i] == percent || anim.percents[i] > status * anim.top) {
4777 percent = anim.percents[i];
4778 prev = anim.percents[i - 1] || 0;
4779 ms = ms / anim.top * (percent - prev);
4780 next = anim.percents[i + 1];
4781 params = anim.anim[percent];
4784 element.attr(anim.anim[anim.percents[i]]);
4911 timestamp = params.start || anim.start || +new Date;
4913 anim: anim, property in runAnimation.e
4916 start: timestamp + (anim.del || 0),
4929 repeat: times || anim.times,
4949 eve("raphael.anim.start." + element.id, element, anim);
5015 var anim = params instanceof Animation ? params : R.animation(params, ms, easing, callback);
5016 runAnimation(anim, element, anim.percents[0], null, element.attr());
5035 elproto.setTime = function (anim, value) { argument
5036 if (anim && value != null) {
5037 this.status(anim, mmin(value, anim.ms) / anim.ms);
5062 elproto.status = function (anim, value) { argument
5068 runAnimation(anim, this, -1, mmin(value, 1));
5074 if (e.el.id == this.id && (!anim || e.anim == anim)) {
5075 if (anim) {
5079 anim: e.anim,
5084 if (anim) {
5102 elproto.pause = function (anim) { argument
5103 …th; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)…
5104 if (eve("raphael.anim.pause." + this.id, this, animationElements[i].anim) !== false) {
5122 elproto.resume = function (anim) { argument
5123 …th; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)…
5125 if (eve("raphael.anim.resume." + this.id, this, e.anim) !== false) {
5127 this.status(e.anim, e.status);
5144 elproto.stop = function (anim) { argument
5145 …th; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)…
5146 if (eve("raphael.anim.stop." + this.id, this, animationElements[i].anim) !== false) {
5334 var anim = R.animation(params, ms, easing, collector);
5335 item = this.items[--i].animate(anim);
5337 this.items[i] && !this.items[i].removed && this.items[i].animateWith(item, anim, anim);