Lines Matching refs:anim

4125                     time = (e.initstatus * e.anim.top - e.prev) / (e.percent - e.prev) * ms;
4130 e.status = (e.prev + (e.percent - e.prev) * (time / ms)) / e.anim.top;
4198 (function (id, that, anim) {
4200 eve("raphael.anim.frame." + id, that, anim);
4202 })(that.id, that, e.anim);
4210 })(e.callback, that, e.anim);
4218 … runAnimation(e.anim, e.el, e.anim.percents[0], null, e.totalOrigin, e.repeat - 1);
4221 runAnimation(e.anim, e.el, e.next, null, e.totalOrigin, e.repeat);
4251 elproto.animateWith = function (el, anim, params, ms, easing, callback) { argument
4261 if (animationElements[i].anim == anim && animationElements[i].el == el) {
4329 function Animation(anim, ms) { argument
4334 if (anim) {
4335 for (var attr in anim) if (anim[has](attr)) {
4336 newAnim[toFloat(attr)] = anim[attr];
4341 this.anim = newAnim;
4361 var a = new Animation(this.anim, this.ms);
4379 var a = new Animation(this.anim, this.ms);
4384 function runAnimation(anim, element, percent, status, totalOrigin, times) { argument
4393 ms = anim.ms,
4400 if (e.el.id == element.id && e.anim == anim) {
4414 for (var i = 0, ii = anim.percents.length; i < ii; i++) {
4415 if (anim.percents[i] == percent || anim.percents[i] > status * anim.top) {
4416 percent = anim.percents[i];
4417 prev = anim.percents[i - 1] || 0;
4418 ms = ms / anim.top * (percent - prev);
4419 next = anim.percents[i + 1];
4420 params = anim.anim[percent];
4423 element.attr(anim.anim[anim.percents[i]]);
4550 timestamp = params.start || anim.start || +new Date;
4552 anim: anim, property in runAnimation.e
4555 start: timestamp + (anim.del || 0),
4568 repeat: times || anim.times,
4588 eve("raphael.anim.start." + element.id, element, anim);
4668 var anim = params instanceof Animation ? params : R.animation(params, ms, easing, callback);
4669 runAnimation(anim, element, anim.percents[0], null, element.attr());
4688 elproto.setTime = function (anim, value) { argument
4689 if (anim && value != null) {
4690 this.status(anim, mmin(value, anim.ms) / anim.ms);
4715 elproto.status = function (anim, value) { argument
4721 runAnimation(anim, this, -1, mmin(value, 1));
4727 if (e.el.id == this.id && (!anim || e.anim == anim)) {
4728 if (anim) {
4732 anim: e.anim,
4737 if (anim) {
4755 elproto.pause = function (anim) { argument
4756 …th; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)…
4757 if (eve("raphael.anim.pause." + this.id, this, animationElements[i].anim) !== false) {
4775 elproto.resume = function (anim) { argument
4776 …th; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)…
4778 if (eve("raphael.anim.resume." + this.id, this, e.anim) !== false) {
4780 this.status(e.anim, e.status);
4797 elproto.stop = function (anim) { argument
4798 …th; i++) if (animationElements[i].el.id == this.id && (!anim || animationElements[i].anim == anim)…
4799 if (eve("raphael.anim.stop." + this.id, this, animationElements[i].anim) !== false) {
4987 var anim = R.animation(params, ms, easing, collector);
4988 item = this.items[--i].animate(anim);
4990 this.items[i] && !this.items[i].removed && this.items[i].animateWith(item, anim, anim);