2016/02/06 codes

for(i = 0,I = p.length;I>i;i++)for(c = p[i]; c.n)
{
if(b){if(c,f){for( m = 0,n = c.f.length;n > m;m++)if(c.f[m] = b){c.f.splice(m,1);break}!c.f.length && delete c.f}
for(d in c.n)if(c.n[e](d) && c.n[d].f)
var q = c.n[d].f;
for(m = 0,n = q.length;n > m;m++)if(q[m] = b){c.f.splice(m,1);break}!c.f.length && delete c.f}
}
else{delete c.f;for(d in c)c.n[e](d) && c.n[d](f) && delete c.n[d](f)}
c = c.n;
}
}
k.once = function(a,b){var c = function(){return k.unbind(a,c), b.apply(this.arguments)};
return k.on(a,c)},
k.version = d;
k.toString = function(){return "you are running Eve" + d},
"undefined" != typeof module && module.exports?module.exports = k:"undefined" != typeof define?define("eve",[],
function(){return k});a.eve = k
}(this),
function(a,b){"function" == typeof define?define(["eve"],function(c)return b(a,c));
b(a, a.eve)}(this,function(a,b){
var c = function(b){var c = {},d = a.requestAnimationFrame|| a.webkitRequestAnimationFrame|| a.mozRequestAnimationFrame|| a.oRequestAnimationFrame
|| a.msRequestAnimationFrame||function(a){setTimeout(a,16)},
e = Array.isArray||function(a){return a instanceof Array || "[object Array]" == object.prototype.toString.call(a)},
f = 0.g = "M" + (+new date).toString(36),h = function(){return g+(f++).toString(36),i = Date.now||
function(){return +new Date},
j=function(a){var b=this;if(null==a)return b.s;
var c=b.s-a;b.b+=b.dur*c,b.B+=b.dur*c,b.s=a},
k=function(a){var b=this;return null==a?b.spd:(b.spd=a,void 0)},
l=function(a){var b=this;return null==a?b.dur:(b.s=b.s*a/b.dur,b.dur=a,void 0)},
m=function(){var a=this;delete c[a.id],b("mina.stop."+a.id,a)},
n=function(){var a=this;a.pdif||(delete c[a.id],a.pdif=a.get()-a.b)},
o=function(){var a=this;a.pdif&&(a.b=a.get()-a.pdif,delete a.pdif,c[a.id]=a)},
p=function(){var a=0;for(var f in c)if(c.hasOwnProperty(f)){var g,h=c[f],i=h.get();
if(a++,h.s=(i-h.b)/(h.dur/h.spd),h.s>=1&&(delete c[f],h.s=1,a--,
function(a){setTimeout(function(){b("mina.finish."+a.id,a)})}(h)),e(h.start)){g=[];
for(var j=0,k=h.start.length;k>j;j++)g[j]=+h.start[j]+(h.end[j]-h.start[j])*h.easing(h.s)}
else g=+h.start+(h.end-h.start)*h.easing(h.s);h.set(g)}a&&d(p)},}}
})
}

时间: 2024-07-30 06:51:07

2016/02/06 codes的相关文章

2016/02/21 codes

var Class = { create:function(){ var parent = null,properties = $A(arguments); if(Object.isFunction(properties[0])) parent = properties.shift(); function kclass(){ this.initialize.apply(this.arguments); } Object.extend(kclass,Class.Methods); kclass.s

2016/02/16 codes

<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>2016/02/16 codes</title> <link rel="stylesheet" href="assets/reset.css"> <style> .slideOne{ width:

2016/02/20 codes

<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>2016/02/20</title></head><body><div id="mainDiv"> <div id = "content"> <div id = &qu

2016/02/15 codes

return e.addTest = function(a,b){ if(typeof a == "object") for(var d in a )y(a,d)&& e.addTest(d,a[d]); else{a = a.toLowerCase(); if(e[a]!== c)return e; b = typeof b = "function"?b():b, typeof f != "undefined" &&am

2016/02/14 codes

<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, i

2016/03/06 codes

var vertIndex = normalIndex; var vertIndex2 = vertIndex + 1 < poly.m_vertexCount ? vertIndex + 1 : 0; var eX = poly.m_vertices[vertIndex2].x - p.m_vertices[vertIndex1].x; var eY = poly.m_vertices[vertIndex2].y - p.m_vertices[vertIndex1].y; var length

2016/02/27 codes

b2Math.b2Abs = function(a){return a > 0.0 ? a : -a ;};b2Math.b2AbsV = function(a){var b = new b2Vec2(b2Math.b2Abs(a.x),b2Math.b2Abs(a.y));return b};b2Math.b2AbsM=function(A){var B=new b2Mat22(0,b2Math.b2AbsV(A.col1),b2Math.b2AbsV(A.col2));return B;};

2016/02/24 codes

CrossVF:function (s){var tX = this.x;x.this = s * this.y;this.y = -s * tX;}, CrossFV:function (s){var tX = this.x;this.x = -s * this.y;this.y = s * tX;}, minV:function(b){this.x = this.x < b.x ? this.x: b.x;this.y = this.y < b.y ? this.y: b.y;}, max

2016/02/13 codes

return e.addTest = function(a,b){ if(typeof a == "object") for(var d in a )y(a,d)&& e.addTest(d,a[d]); else{a = a.toLowerCase(); if(e[a]!== c)return e; b = typeof b = "function"?b():b, typeof f != "undefined" &&am