add gsap 1.9.4

This commit is contained in:
Lachlan Collins
2013-04-26 11:41:53 +10:00
parent 95fed58912
commit bc2698dfdf
25 changed files with 277 additions and 22 deletions
+13
View File
File diff suppressed because one or more lines are too long
+13
View File
File diff suppressed because one or more lines are too long
+13
View File
File diff suppressed because one or more lines are too long
+17
View File
File diff suppressed because one or more lines are too long
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 1.9.3
* DATE: 2013-04-02
* JavaScript (ActionScript 3 and 2 also available)
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine("easing.Back",["easing.Ease"],function(a){var o,p,q,b=window.GreenSockGlobals||window,c=b.com.greensock,d=2*Math.PI,e=Math.PI/2,f=c._class,g=function(b,c){var d=f("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},h=a.register||function(){},i=function(a,b,c,d){var g=f("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return h(g,a),g},j=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},k=function(b,c){var d=f("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},l=i("Back",k("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),k("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),k("BackInOut",function(a){return 1>(a*=2)?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),m=f("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),n=m.prototype=new a;return n.constructor=m,n.getRatio=function(a){var b=a+(.5-a)*this._p;return this._p1>a?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},m.ease=new m(.7,.7),n.config=m.config=function(a,b,c){return new m(a,b,c)},o=f("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),n=o.prototype=new a,n.constructor=o,n.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},n.config=o.config=function(a){return new o(a)},p=f("easing.RoughEase",function(b){b=b||{};for(var m,n,o,p,q,r,c=b.taper||"none",d=[],e=0,f=0|(b.points||20),g=f,h=b.randomize!==!1,i=b.clamp===!0,k=b.template instanceof a?b.template:null,l="number"==typeof b.strength?.4*b.strength:.4;--g>-1;)m=h?Math.random():1/f*g,n=k?k.getRatio(m):m,"none"===c?o=l:"out"===c?(p=1-m,o=p*p*l):"in"===c?o=m*m*l:.5>m?(p=2*m,o=.5*p*p*l):(p=2*(1-m),o=.5*p*p*l),h?n+=Math.random()*o-.5*o:g%2?n+=.5*o:n-=.5*o,i&&(n>1?n=1:0>n&&(n=0)),d[e++]={x:m,y:n};for(d.sort(function(a,b){return a.x-b.x}),r=new j(1,1,null),g=f;--g>-1;)q=d[g],r=new j(q.x,q.y,r);this._prev=new j(0,0,0!==r.t?r:r.next)},!0),n=p.prototype=new a,n.constructor=p,n.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&b.t>=a;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},n.config=function(a){return new p(a)},p.ease=new p,i("Bounce",g("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),g("BounceIn",function(a){return 1/2.75>(a=1-a)?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),g("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),i("Circ",g("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),g("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),g("CircInOut",function(a){return 1>(a*=2)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),q=function(b,c,e){var g=f("easing."+b,function(a,b){this._p1=a||1,this._p2=b||e,this._p3=this._p2/d*(Math.asin(1/this._p1)||0)},!0),h=g.prototype=new a;return h.constructor=g,h.getRatio=c,h.config=function(a,b){return new g(a,b)},g},i("Elastic",q("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*d/this._p2)+1},.3),q("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*d/this._p2))},.3),q("ElasticInOut",function(a){return 1>(a*=2)?-.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*d/this._p2):.5*this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*d/this._p2)+1},.45)),i("Expo",g("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),g("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),g("ExpoInOut",function(a){return 1>(a*=2)?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),i("Sine",g("SineOut",function(a){return Math.sin(a*e)}),g("SineIn",function(a){return-Math.cos(a*e)+1}),g("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),f("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),h(b.SlowMo,"SlowMo","ease,"),h(p,"RoughEase","ease,"),h(o,"SteppedEase","ease,"),l},!0)}),window._gsDefine&&window._gsQueue.pop()();
+17
View File
@@ -0,0 +1,17 @@
/*!
* VERSION: 0.1.6
* DATE: 2013-02-13
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com/jquery-gsap-plugin/
*
* Requires TweenLite version 1.8.0 or higher and CSSPlugin. For staggerTo(), staggerFrom(), and staggerFromTo(), it also
* requires TimelineLite. If TweenMax or TimelineMax is loaded, they will be preferred over TweenLite and TimelineLite internally
* so that you get the most features possible (like repeat, yoyo, repeatDelay, etc.)
*
* @license Copyright (c) 2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
*/
(function(a){"use strict";var e,f,g,b=a.fn.animate,c=a.fn.stop,d=!0,h=function(a,b){"function"==typeof a&&this.each(a),b()},i=function(a,b,c,d,e){e="function"==typeof e?e:null,b="function"==typeof b?b:null,(b||e)&&(d[a]=e?h:c.each,d[a+"Scope"]=c,d[a+"Params"]=e?[b,e]:[b])},j={overwrite:1,delay:1,useFrames:1,runBackwards:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,autoCSS:1},k=function(a,b){for(var c in j)j[c]&&void 0!==a[c]&&(b[c]=a[c])},l=function(a){return function(b){return a.getRatio(b)}},m={},n=function(){var c,d,h,b=window.GreenSockGlobals||window;if(e=b.TweenMax||b.TweenLite,e&&(c=(e.version+".0.0").split("."),d=!(Number(c[0])>0&&Number(c[1])>7),b=b.com.greensock,f=b.plugins.CSSPlugin,m=b.easing.Ease.map||{}),!e||!f||d)return e=null,!g&&window.console&&(window.console.log("The jquery.gsap.js plugin requires the TweenMax (or at least TweenLite and CSSPlugin) JavaScript file(s)."+(d?" Version "+c.join(".")+" is too old.":"")),g=!0),void 0;if(a.easing){for(h in m)a.easing[h]=l(m[h]);n=!1}};a.fn.animate=function(c,g,h,j){if(c=c||{},n&&(n(),!e||!f))return b.call(this,c,g,h,j);if(!d||c.skipGSAP===!0||"object"==typeof g&&"function"==typeof g.step||null!=c.scrollTop||null!=c.scrollLeft)return b.call(this,c,g,h,j);var r,s,t,u,l=a.speed(g,h,j),o={ease:m[l.easing]||(l.easing===!1?m.linear:m.swing)},p=this,q="object"==typeof g?g.specialEasing:null;for(s in c){if(r=c[s],r instanceof Array&&m[r[1]]&&(q=q||{},q[s]=r[1],r=r[0]),"toggle"===r||"hide"===r||"show"===r)return b.call(this,c,g,h,j);o[-1===s.indexOf("-")?s:a.camelCase(s)]=r}if(q){u=[];for(s in q)r=u[u.length]={},k(o,r),r.ease=m[q[s]]||o.ease,-1!==s.indexOf("-")&&(s=a.camelCase(s)),r[s]=o[s];0===u.length&&(u=null)}return t=function(b){if(u)for(var c=u.length;--c>-1;)e.to(p,a.fx.off?0:l.duration/1e3,u[c]);i("onComplete",l.old,p,o,b),e.to(p,a.fx.off?0:l.duration/1e3,o)},l.queue!==!1?p.queue(l.queue,t):t(),p},a.fn.stop=function(a,b){if(c.call(this,a,b),e){if(b)for(var g,d=e.getTweensOf(this),f=d.length;--f>-1;)g=d[f].totalTime()/d[f].totalDuration(),g>0&&1>g&&d[f].seek(d[f].totalDuration());e.killTweensOf(this)}return this},a.gsap={enabled:function(a){d=a},version:"0.1.6"}})(jQuery);
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 0.1.0
* DATE: 2013-02-27
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine.plugin({propName:"attr",API:2,init:function(a,b){var d;if("function"!=typeof a.setAttribute)return!1;this._target=a,this._proxy={};for(d in b)this._addTween(this._proxy,d,parseFloat(a.getAttribute(d)),b[d],d),this._overwriteProps.push(d);return!0},set:function(a){this._super.setRatio.call(this,a);for(var d,b=this._overwriteProps,c=b.length;--c>-1;)d=b[c],this._target.setAttribute(d,this._proxy[d]+"")}})}),window._gsDefine&&window._gsQueue.pop()();
File diff suppressed because one or more lines are too long
+13
View File
File diff suppressed because one or more lines are too long
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 0.5
* DATE: 2012-12-20
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
*/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine("plugins.CSSRulePlugin",["plugins.TweenPlugin","TweenLite","plugins.CSSPlugin"],function(a,b,c){var d=function(){a.call(this,"cssRule"),this._overwriteProps.length=0},e=window.document,f=c.prototype.setRatio,g=d.prototype=new c;return g._propName="cssRule",g.constructor=d,d.API=2,d.getRule=function(a){var g,h,i,j,b=e.all?"rules":"cssRules",c=e.styleSheets,d=c.length,f=":"===a.charAt(0);for(a=(f?"":",")+a.toLowerCase()+",",f&&(j=[]);--d>-1;)for(h=c[d][b],g=h.length;--g>-1;)if(i=h[g],i.selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(a)){if(!f)return i.style;j.push(i.style)}return j},g._onInitTween=function(a,b,d){if(void 0===a.cssText)return!1;var f=e.createElement("div");return this._ss=a,this._proxy=f.style,f.style.cssText=a.cssText,c.prototype._onInitTween.call(this,f,b,d),!0},g.setRatio=function(a){f.call(this,a),this._ss.cssText=this._proxy.cssText},a.activate([d]),d},!0)}),window._gsDefine&&window._gsQueue.pop()();
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 1.2.0
* DATE: 2013-03-01
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var a=/(\d|\.)+/g,b={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},c=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,0|255*(1>6*a?b+6*(c-b)*a:.5>a?c:2>3*a?b+6*(c-b)*(2/3-a):b)+.5},d=function(d){if(""===d||null==d||"none"===d)return b.transparent;if(b[d])return b[d];if("number"==typeof d)return[d>>16,255&d>>8,255&d];if("#"===d.charAt(0))return 4===d.length&&(d="#"+d.charAt(1)+d.charAt(1)+d.charAt(2)+d.charAt(2)+d.charAt(3)+d.charAt(3)),d=parseInt(d.substr(1),16),[d>>16,255&d>>8,255&d];if("hsl"===d.substr(0,3)){d=d.match(a);var e=Number(d[0])%360/360,f=Number(d[1])/100,g=Number(d[2])/100,h=.5>=g?g*(f+1):g+f-g*f,i=2*g-h;return d.length>3&&(d[3]=Number(d[3])),d[0]=c(e+1/3,i,h),d[1]=c(e,i,h),d[2]=c(e-1/3,i,h),d}return d.match(a)||b.transparent};window._gsDefine.plugin({propName:"colorProps",priority:-1,API:2,init:function(a,b){this._target=a;var e,f,g,h;for(e in b)g=d(b[e]),this._firstPT=h={_next:this._firstPT,p:e,f:"function"==typeof a[e],n:e,r:!1},f=d(h.f?a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]():a[e]),h.s=Number(f[0]),h.c=Number(g[0])-h.s,h.gs=Number(f[1]),h.gc=Number(g[1])-h.gs,h.bs=Number(f[2]),h.bc=Number(g[2])-h.bs,(h.rgba=f.length>3||g.length>3)&&(h.as=4>f.length?1:Number(f[3]),h.ac=(4>g.length?1:Number(g[3]))-h.as),h._next&&(h._next._prev=h);return!0},set:function(a){for(var c,b=this._firstPT;b;)c=(b.rgba?"rgba(":"rgb(")+(b.s+a*b.c>>0)+", "+(b.gs+a*b.gc>>0)+", "+(b.bs+a*b.bc>>0)+(b.rgba?", "+(b.as+a*b.ac):"")+")",b.f?this._target[b.p](c):this._target[b.p]=c,b=b._next}})}),window._gsDefine&&window._gsQueue.pop()();
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 0.1.1
* DATE: 2013-03-25
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine.plugin({propName:"directionalRotation",API:2,init:function(a,b){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k,d=b.useRadians===!0?2*Math.PI:360;for(e in b)"useRadians"!==e&&(j=(b[e]+"").split("_"),f=j[0],k=j[1],g=parseFloat("function"!=typeof a[e]?a[e]:a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charAt(1)?g+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=h-g,"short"===k?(i%=d,i!==i%(d/2)&&(i=0>i?i+d:i-d)):"cw"===k&&0>i?i=(i+9999999999*d)%d-(0|i/d)*d:"ccw"===k&&i>0&&(i=(i-9999999999*d)%d-(0|i/d)*d),this._addTween(a,e,g,g+i,e),this._overwriteProps.push(e));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0}),window._gsDefine&&window._gsQueue.pop()();
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 0.1.4
* DATE: 2013-02-28
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var b,c,a=/(\d|\.)+/g,d=["redMultiplier","greenMultiplier","blueMultiplier","alphaMultiplier","redOffset","greenOffset","blueOffset","alphaOffset"],e={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},f=function(b){return""===b||null==b||"none"===b?e.transparent:e[b]?e[b]:"number"==typeof b?[b>>16,255&b>>8,255&b]:"#"===b.charAt(0)?(4===b.length&&(b="#"+b.charAt(1)+b.charAt(1)+b.charAt(2)+b.charAt(2)+b.charAt(3)+b.charAt(3)),b=parseInt(b.substr(1),16),[b>>16,255&b>>8,255&b]):b.match(a)||e.transparent},g=function(a,c,e){if(!b&&(b=window.ColorFilter||window.createjs.ColorFilter,!b))throw"EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.";for(var i,j,k,l,m,g=a.filters||[],h=g.length;--h>-1;)if(g[h]instanceof b){j=g[h];break}if(j||(j=new b,g.push(j),a.filters=g),k=j.clone(),null!=c.tint)i=f(c.tint),l=null!=c.tintAmount?Number(c.tintAmount):1,k.redOffset=Number(i[0])*l,k.greenOffset=Number(i[1])*l,k.blueOffset=Number(i[2])*l,k.redMultiplier=k.greenMultiplier=k.blueMultiplier=1-l;else for(m in c)"exposure"!==m&&"brightness"!==m&&(k[m]=Number(c[m]));for(null!=c.exposure?(k.redOffset=k.greenOffset=k.blueOffset=255*(Number(c.exposure)-1),k.redMultiplier=k.greenMultiplier=k.blueMultiplier=1):null!=c.brightness&&(l=Number(c.brightness)-1,k.redOffset=k.greenOffset=k.blueOffset=l>0?255*l:0,k.redMultiplier=k.greenMultiplier=k.blueMultiplier=1-Math.abs(l)),h=8;--h>-1;)m=d[h],j[m]!==k[m]&&e._addTween(j,m,j[m],k[m],"easel_colorFilter");if(e._overwriteProps.push("easel_colorFilter"),!a.cacheID)throw"EaselPlugin warning: for filters to display in EaselJS, you must call the object's cache() method first. "+a},h=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],i=.212671,j=.71516,k=.072169,l=function(a,b){if(!(a instanceof Array&&b instanceof Array))return b;var f,g,c=[],d=0,e=0;for(f=0;4>f;f++){for(g=0;5>g;g++)e=4===g?a[d+4]:0,c[d+g]=a[d]*b[g]+a[d+1]*b[g+5]+a[d+2]*b[g+10]+a[d+3]*b[g+15]+e;d+=5}return c},m=function(a,b){if(isNaN(b))return a;var c=1-b,d=c*i,e=c*j,f=c*k;return l([d+b,e,f,0,0,d,e+b,f,0,0,d,e,f+b,0,0,0,0,0,1,0],a)},n=function(a,b,c){isNaN(c)&&(c=1);var d=f(b),e=d[0]/255,g=d[1]/255,h=d[2]/255,m=1-c;return l([m+c*e*i,c*e*j,c*e*k,0,0,c*g*i,m+c*g*j,c*g*k,0,0,c*h*i,c*h*j,m+c*h*k,0,0,0,0,0,1,0],a)},o=function(a,b){if(isNaN(b))return a;b*=Math.PI/180;var c=Math.cos(b),d=Math.sin(b);return l([i+c*(1-i)+d*-i,j+c*-j+d*-j,k+c*-k+d*(1-k),0,0,i+c*-i+.143*d,j+c*(1-j)+.14*d,k+c*-k+d*-.283,0,0,i+c*-i+d*-(1-i),j+c*-j+d*j,k+c*(1-k)+d*k,0,0,0,0,0,1,0,0,0,0,0,1],a)},p=function(a,b){return isNaN(b)?a:(b+=.01,l([b,0,0,0,128*(1-b),0,b,0,0,128*(1-b),0,0,b,0,128*(1-b),0,0,0,1,0],a))},q=function(a,b,d){if(!c&&(c=window.ColorMatrixFilter||window.createjs.ColorMatrixFilter,!c))throw"EaselPlugin error: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.";for(var g,i,j,e=a.filters||[],f=e.length;--f>-1;)if(e[f]instanceof c){j=e[f];break}for(j||(j=new c(h.slice()),e.push(j),a.filters=e),i=j.matrix,g=h.slice(),null!=b.colorize&&(g=n(g,b.colorize,Number(b.colorizeAmount))),null!=b.contrast&&(g=p(g,Number(b.contrast))),null!=b.hue&&(g=o(g,Number(b.hue))),null!=b.saturation&&(g=m(g,Number(b.saturation))),f=g.length;--f>-1;)g[f]!==i[f]&&d._addTween(i,f,i[f],g[f],"easel_colorMatrixFilter");if(d._overwriteProps.push("easel_colorMatrixFilter"),!a.cacheID)throw"EaselPlugin warning: for filters to display in EaselJS, you must call the object's cache() method first. "+a;d._matrix=i};window._gsDefine.plugin({propName:"easel",priority:-1,API:2,init:function(a,b){this._target=a;var d,e,f,h;for(d in b)"colorFilter"===d||"tint"===d||"tintAmount"===d||"exposure"===d||"brightness"===d?f||(g(a,b.colorFilter||b,this),f=!0):"saturation"===d||"contrast"===d||"hue"===d||"colorize"===d||"colorizeAmount"===d?h||(q(a,b.colorMatrixFilter||b,this),h=!0):null!=a[d]&&(this._firstPT=e={_next:this._firstPT,t:a,p:d,f:"function"==typeof a[d],n:d,pr:0,type:0},e.s=e.f?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),e.c="number"==typeof b[d]?b[d]-e.s:"string"==typeof b[d]?parseFloat(b[d].split("=").join("")):0,e._next&&(e._next._prev=e));return!0},set:function(a){for(var d,b=this._firstPT,c=1e-6;b;)d=b.c*a+b.s,b.r?d=d+(d>0?.5:-.5)>>0:c>d&&d>-c&&(d=0),b.f?b.t[b.p](d):b.t[b.p]=d,b=b._next;this._target.cacheID&&this._target.updateCache()}})}),window._gsDefine&&window._gsQueue.pop()();
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 0.2.1
* DATE: 2013-04-18
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var i,j,l,a={setScale:1,setShadowOffset:1,setFillPatternOffset:1,setOffset:1,setFill:2,setStroke:2,setShadowColor:2},b={},c=/(\d|\.)+/g,d={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},e=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,0|255*(1>6*a?b+6*(c-b)*a:.5>a?c:2>3*a?b+6*(c-b)*(2/3-a):b)+.5},f=function(a){if(""===a||null==a||"none"===a)return d.transparent;if(d[a])return d[a];if("number"==typeof a)return[a>>16,255&a>>8,255&a];if("#"===a.charAt(0))return 4===a.length&&(a="#"+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)+a.charAt(3)+a.charAt(3)),a=parseInt(a.substr(1),16),[a>>16,255&a>>8,255&a];if("hsl"===a.substr(0,3)){a=a.match(c);var b=Number(a[0])%360/360,f=Number(a[1])/100,g=Number(a[2])/100,h=.5>=g?g*(f+1):g+f-g*f,i=2*g-h;return a.length>3&&(a[3]=Number(a[3])),a[0]=e(b+1/3,i,h),a[1]=e(b,i,h),a[2]=e(b-1/3,i,h),a}for(var j=a.match(c)||d.transparent,k=j.length;--k>-1;)j[k]=Number(j[k]);return j},g=function(b,c,d){this.target=b,this.getter=c,this.setter="set"+c.substr(3),this.type=a[this.setter];var e=b[this.getter]();1===this.type?(this.proxy={x:e.x,y:e.y},this.x=this.y=!1):(e=f(e),this.proxy={r:e[0],g:e[1],b:e[2],a:e.length>3?e[3]:1}),d&&(this._next=d,d._prev=this)},h=[],k=function(){var a=h.length;if(0!==a){for(;--a>-1;)h[a].draw(),h[a]._gsDraw=!1;h.length=0}else i.removeEventListener("tick",k),j=!1};for(l in a)b[l]="get"+l.substr(3),1===a[l]&&(b[l+"X"]=b[l+"Y"]=b[l]);window._gsDefine.plugin({propName:"kinetic",API:2,init:function(c,d,e){var h,j,k,l;this._target=c,this._layer=d.autoDraw!==!1?c.getLayer():null,!i&&this._layer&&(i=e.constructor.ticker);for(h in d)j=d[h],"set"!==h.substr(0,3)&&void 0===c[h]&&(h="set"+h.charAt(0).toUpperCase()+h.substr(1)),k=b[h],k?(this._special=this._special||{},l=this._special[k],l||(l=this._special[k]=this._firstSP=new g(c,k,this._firstSP)),1===l.type?(k=h.substr(h.length-1).toLowerCase(),(a[h]||"x"===k)&&(this._addTween(l.proxy,"x",l.proxy.x,j,h),l.x=!0),(a[h]||"y"===k)&&(this._addTween(l.proxy,"y",l.proxy.y,j,h),l.y=!0)):(j=f(j),l.proxy.r!==j[0]&&this._addTween(l.proxy,"r",l.proxy.r,j[0],h),l.proxy.g!==j[1]&&this._addTween(l.proxy,"g",l.proxy.g,j[1],h),l.proxy.b!==j[2]&&this._addTween(l.proxy,"b",l.proxy.b,j[2],h),(j.length>3||1!==l.proxy.a)&&l.proxy.a!==j[3]&&this._addTween(l.proxy,"a",l.proxy.a,j.length>3?j[3]:1,h))):"autoDraw"!==h&&this._addTween(c,h,("function"==typeof c[h]?c["get"+h.substr(3)]()||c[h]():c[h])||0,j,h),this._overwriteProps.push(h);return!0},set:function(a){this._super.setRatio.call(this,a);var d,e,b=this._firstSP,c=this._layer;if(b)for(d=this._target;b;)e=b.proxy,1===b.type?(b.x||(e.x=d[b.getter]().x),b.y||(e.y=d[b.getter]().y),d[b.setter](e)):d[b.setter]((1!==e.a?"rgba(":"rgb(")+(0|e.r)+", "+(0|e.g)+", "+(0|e.b)+(1!==e.a?", "+e.a:"")+")"),b=b._next;c&&!c._gsDraw&&(h.push(c),c._gsDraw=!0,j||(i.addEventListener("tick",k),j=!0))}})}),window._gsDefine&&window._gsQueue.pop()();
File diff suppressed because one or more lines are too long
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 1.4.0
* DATE: 2013-02-27
* JavaScript (ActionScript 3 and 2 also available)
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var a=window._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=a.prototype;b._onInitAllProps=function(){for(var f,g,h,a=this._tween,b=a.vars.roundProps instanceof Array?a.vars.roundProps:a.vars.roundProps.split(","),c=b.length,d={},e=a._propLookup.roundProps;--c>-1;)d[b[c]]=1;for(c=b.length;--c>-1;)for(f=b[c],g=a._firstPT;g;)h=g._next,g.pg?g.t._roundProps(d,!0):g.n===f&&(this._add(g.t,f,g.s,g.c),h&&(h._prev=g._prev),g._prev?g._prev._next=h:a._firstPT===g&&(a._firstPT=h),g._next=g._prev=null,a._propLookup[f]=e),g=h;return!1},b._add=function(a,b,c,d){this._addTween(a,b,c,c+d,b,!0),this._overwriteProps.push(b)}}),window._gsDefine&&window._gsQueue.pop()();
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 1.7.0
* DATE: 2013-02-27
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var a=document.documentElement,b=window,c=function(c,d){var e="x"===d?"Width":"Height",f="scroll"+e,g="client"+e,h=document.body;return c===b||c===a||c===h?Math.max(a[f],h[f])-Math.max(a[g],h[g]):c[f]-c["offset"+e]},d=window._gsDefine.plugin({propName:"scrollTo",API:2,init:function(a,d,e){return this._wdw=a===b,this._target=a,this._tween=e,"object"!=typeof d&&(d={y:d}),this._autoKill=d.autoKill!==!1,this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=d.x?this._addTween(this,"x",this.x,"max"===d.x?c(a,"x"):d.x,"scrollTo_x",!0):this.skipX=!0,null!=d.y?this._addTween(this,"y",this.y,"max"===d.y?c(a,"y"):d.y,"scrollTo_y",!0):this.skipY=!0,!0},set:function(a){this._super.setRatio.call(this,a);var c=this._wdw||!this.skipX?this.getX():this.xPrev,d=this._wdw||!this.skipY?this.getY():this.yPrev,e=d-this.yPrev,f=c-this.xPrev;this._autoKill&&(!this.skipX&&(f>7||-7>f)&&(this.skipX=!0),!this.skipY&&(e>7||-7>e)&&(this.skipY=!0),this.skipX&&this.skipY&&this._tween.kill()),this._wdw?b.scrollTo(this.skipX?c:this.x,this.skipY?d:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),e=d.prototype;d.max=c,e.getX=function(){return this._wdw?null!=b.pageXOffset?b.pageXOffset:null!=a.scrollLeft?a.scrollLeft:document.body.scrollLeft:this._target.scrollLeft},e.getY=function(){return this._wdw?null!=b.pageYOffset?b.pageYOffset:null!=a.scrollTop?a.scrollTop:document.body.scrollTop:this._target.scrollTop},e._kill=function(a){return a.scrollTo_x&&(this.skipX=!0),a.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,a)}}),window._gsDefine&&window._gsQueue.pop()();
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 0.3.0
* DATE: 2013-02-27
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var a=function(b){var c=b.nodeType,d="";if(1===c||9===c||11===c){if("string"==typeof b.textContent)return b.textContent;for(b=b.firstChild;b;b=b.nextSibling)d+=a(b)}else if(3===c||4===c)return b.nodeValue;return d},b=window._gsDefine.plugin({propName:"text",API:2,init:function(b,c){if(!("innerHTML"in b))return!1;this._target=b,"object"!=typeof c&&(c={value:c}),this._delimiter=c.delimiter||"",this._original=a(b).replace(/\s+/g," ").split(this._delimiter),this._text=c.value.replace(/\s+/g," ").split(this._delimiter),"string"==typeof c.newClass&&(this._newClass=c.newClass,this._hasClass=!0),"string"==typeof c.oldClass&&(this._oldClass=c.oldClass,this._hasClass=!0);var e=this._original.length-this._text.length,f=0>e?this._original:this._text;for(this._fillChar=c.fillChar||e>0&&""===this._delimiter?"&nbsp;":"",0>e&&(e=-e);--e>-1;)f.push(this._fillChar);return!0},set:function(a){a>1?a=1:0>a&&(a=0);var d,e,f,b=this._text.length,c=a*b+.5>>0;this._hasClass?(d=this._newClass&&0!==c,e=this._oldClass&&c!==b,f=(d?"<span class='"+this._newClass+"'>":"")+this._text.slice(0,c).join(this._delimiter)+(d?"</span>":"")+(e?"<span class='"+this._oldClass+"'>":"")+this._delimiter+this._original.slice(c).join(this._delimiter)+(e?"</span>":"")):f=this._text.slice(0,c).join(this._delimiter)+this._delimiter+this._original.slice(c).join(this._delimiter),this._target.innerHTML="&nbsp;"===this._fillChar&&-1!==f.indexOf(" ")?f.split(" ").join("&nbsp;&nbsp;"):f}}),c=b.prototype;c._newClass=c._oldClass=""}),window._gsDefine&&window._gsQueue.pop()();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+13
View File
@@ -0,0 +1,13 @@
/*!
* VERSION: beta 0.2.1
* DATE: 2013-04-18
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var i,j,l,a={setScale:1,setShadowOffset:1,setFillPatternOffset:1,setOffset:1,setFill:2,setStroke:2,setShadowColor:2},b={},c=/(\d|\.)+/g,d={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},e=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,0|255*(1>6*a?b+6*(c-b)*a:.5>a?c:2>3*a?b+6*(c-b)*(2/3-a):b)+.5},f=function(a){if(""===a||null==a||"none"===a)return d.transparent;if(d[a])return d[a];if("number"==typeof a)return[a>>16,255&a>>8,255&a];if("#"===a.charAt(0))return 4===a.length&&(a="#"+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)+a.charAt(3)+a.charAt(3)),a=parseInt(a.substr(1),16),[a>>16,255&a>>8,255&a];if("hsl"===a.substr(0,3)){a=a.match(c);var b=Number(a[0])%360/360,f=Number(a[1])/100,g=Number(a[2])/100,h=.5>=g?g*(f+1):g+f-g*f,i=2*g-h;return a.length>3&&(a[3]=Number(a[3])),a[0]=e(b+1/3,i,h),a[1]=e(b,i,h),a[2]=e(b-1/3,i,h),a}for(var j=a.match(c)||d.transparent,k=j.length;--k>-1;)j[k]=Number(j[k]);return j},g=function(b,c,d){this.target=b,this.getter=c,this.setter="set"+c.substr(3),this.type=a[this.setter];var e=b[this.getter]();1===this.type?(this.proxy={x:e.x,y:e.y},this.x=this.y=!1):(e=f(e),this.proxy={r:e[0],g:e[1],b:e[2],a:e.length>3?e[3]:1}),d&&(this._next=d,d._prev=this)},h=[],k=function(){var a=h.length;if(0!==a){for(;--a>-1;)h[a].draw(),h[a]._gsDraw=!1;h.length=0}else i.removeEventListener("tick",k),j=!1};for(l in a)b[l]="get"+l.substr(3),1===a[l]&&(b[l+"X"]=b[l+"Y"]=b[l]);window._gsDefine.plugin({propName:"kinetic",API:2,init:function(c,d,e){var h,j,k,l;this._target=c,this._layer=d.autoDraw!==!1?c.getLayer():null,!i&&this._layer&&(i=e.constructor.ticker);for(h in d)j=d[h],"set"!==h.substr(0,3)&&void 0===c[h]&&(h="set"+h.charAt(0).toUpperCase()+h.substr(1)),k=b[h],k?(this._special=this._special||{},l=this._special[k],l||(l=this._special[k]=this._firstSP=new g(c,k,this._firstSP)),1===l.type?(k=h.substr(h.length-1).toLowerCase(),(a[h]||"x"===k)&&(this._addTween(l.proxy,"x",l.proxy.x,j,h),l.x=!0),(a[h]||"y"===k)&&(this._addTween(l.proxy,"y",l.proxy.y,j,h),l.y=!0)):(j=f(j),l.proxy.r!==j[0]&&this._addTween(l.proxy,"r",l.proxy.r,j[0],h),l.proxy.g!==j[1]&&this._addTween(l.proxy,"g",l.proxy.g,j[1],h),l.proxy.b!==j[2]&&this._addTween(l.proxy,"b",l.proxy.b,j[2],h),(j.length>3||1!==l.proxy.a)&&l.proxy.a!==j[3]&&this._addTween(l.proxy,"a",l.proxy.a,j.length>3?j[3]:1,h))):"autoDraw"!==h&&this._addTween(c,h,("function"==typeof c[h]?c["get"+h.substr(3)]()||c[h]():c[h])||0,j,h),this._overwriteProps.push(h);return!0},set:function(a){this._super.setRatio.call(this,a);var d,e,b=this._firstSP,c=this._layer;if(b)for(d=this._target;b;)e=b.proxy,1===b.type?(b.x||(e.x=d[b.getter]().x),b.y||(e.y=d[b.getter]().y),d[b.setter](e)):d[b.setter]((1!==e.a?"rgba(":"rgb(")+(0|e.r)+", "+(0|e.g)+", "+(0|e.b)+(1!==e.a?", "+e.a:"")+")"),b=b._next;c&&!c._gsDraw&&(h.push(c),c._gsDraw=!0,j||(i.addEventListener("tick",k),j=!0))}})}),window._gsDefine&&window._gsQueue.pop()();
+6 -6
View File
@@ -1,7 +1,7 @@
{
"name": "gsap",
"filename": "TweenMax.min.js",
"version": "1.9.3",
"version": "1.9.4",
"description": "GreenSock Animation Platform (GSAP) is a suite of tools for scripted animation, including TweenLite, TweenMax, TimelineLite, TimelineMax, various easing equations (EasePack), plugins for things like animating along Bezier paths, tweening RaphaelJS objects, etc. and it also includes a jQuery plugin that hijacks the native jQuery.animate() method so that animations perform much better and additional properties can be tweened, like colors, transforms (2D and 3D), boxShadow, borderRadius, clip, and lots more. GSAP has no dependencies on jQuery and it can animate ANY numeric property of ANY object.",
"homepage": "http://www.greensock.com/gsap-js/",
"keywords": [
@@ -26,14 +26,14 @@
{
"name": "Jack Doyle",
"email": "jack@greensock.com",
"web": "http://www.greensock.com"
}
"web": "http://www.greensock.com"
}
],
"repositories": [
{
"type": "git",
"url": "https://github.com/greensock/GreenSock-JS"
}
"url": "https://github.com/greensock/GreenSock-JS"
}
]
}
}