14 lines
1.3 KiB
JavaScript
Executable File
14 lines
1.3 KiB
JavaScript
Executable File
/**
|
|
* VERSION: beta 1.31
|
|
* DATE: 2012-11-19
|
|
* JavaScript (ActionScript 3 and 2 also available)
|
|
* UPDATES AND DOCS AT: http://www.greensock.com
|
|
*
|
|
* 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(){_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(i){var c=function(){i.call(this,"roundProps",-1);this._overwriteProps.length=0},f=c.prototype=new i("roundProps",-1);f.constructor=c;c.API=2;f._onInitTween=function(b,e,d){this._tween=d;return!0};f._onInitAllProps=function(){for(var b=this._tween,e=b.vars.roundProps instanceof Array?b.vars.roundProps:b.vars.roundProps.split(","),d=e.length,c={},f=b._propLookup.roundProps,h,
|
|
a,g;-1<--d;)c[e[d]]=1;for(d=e.length;-1<--d;){h=e[d];for(a=b._firstPT;a;)g=a._next,a.pg?a.t._roundProps(c,!0):a.n===h&&(this._add(a.t,h,a.s,a.c),g&&(g._prev=a._prev),a._prev?a._prev._next=g:b._firstPT===a&&(b._firstPT=g),a._next=a._prev=null,b._propLookup[h]=f),a=g}return!1};f._add=function(b,e,d,c){this._addTween(b,e,d,d+c,e,!0);this._overwriteProps.push(e)};i.activate([c]);return c},!0)});window._gsDefine&&_gsQueue.pop()(); |