a:36:{s:9:"#provides";s:14:"dojo.fx.easing";s:9:"#resource";s:12:"fx/easing.js";s:14:"dojo.fx.easing";a:4:{s:4:"type";s:6:"Object";s:7:"summary";s:76:"Collection of easing functions to use beyond the default dojo._defaultEasing";s:11:"description";s:621:"Easing functions are used to manipulate the iteration through an _Animation's _Line. _Line being the properties of an Animation, and the easing function progresses through that Line determing how quickly (or slowly) it should go. Or more accurately: modify the value of the _Line based on the percentage of animation completed. All functions follow a simple naming convention of "ease type" + "when". If the name of the function ends in Out, the easing described appears towards the end of the animation. "In" means during the beginning, and InOut means both ranges of the Animation will applied, both beginning and end.";s:8:"examples";a:1:{i:0;s:139:" dojo.require("dojo.fx.easing"); var anim = dojo.fadeOut({ node: 'node', duration: 2000, easing: dojo.fx.easing.quadIn }).play();";}}s:21:"dojo.fx.easing.linear";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:11:" return n;";s:7:"summary";s:24:"A linear easing function";}s:21:"dojo.fx.easing.quadIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:24:" return Math.pow(n, 2);";s:7:"summary";s:0:"";}s:22:"dojo.fx.easing.quadOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:26:" return n * (n - 2) * -1;";s:7:"summary";s:0:"";}s:24:"dojo.fx.easing.quadInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:95:" n = n * 2; if(n < 1){ return Math.pow(n, 2) / 2; } return -1 * ((--n) * (n - 2) - 1) / 2;";s:7:"summary";s:0:"";}s:22:"dojo.fx.easing.cubicIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:24:" return Math.pow(n, 3);";s:7:"summary";s:0:"";}s:23:"dojo.fx.easing.cubicOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:32:" return Math.pow(n - 1, 3) + 1;";s:7:"summary";s:0:"";}s:25:"dojo.fx.easing.cubicInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:99:" n = n * 2; if(n < 1){ return Math.pow(n, 3) / 2; } n -= 2; return (Math.pow(n, 3) + 2) / 2;";s:7:"summary";s:0:"";}s:22:"dojo.fx.easing.quartIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:24:" return Math.pow(n, 4);";s:7:"summary";s:0:"";}s:23:"dojo.fx.easing.quartOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:39:" return -1 * (Math.pow(n - 1, 4) - 1);";s:7:"summary";s:0:"";}s:25:"dojo.fx.easing.quartInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:104:" n = n * 2; if(n < 1){ return Math.pow(n, 4) / 2; } n -= 2; return -1 / 2 * (Math.pow(n, 4) - 2);";s:7:"summary";s:0:"";}s:22:"dojo.fx.easing.quintIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:24:" return Math.pow(n, 5);";s:7:"summary";s:0:"";}s:23:"dojo.fx.easing.quintOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:32:" return Math.pow(n - 1, 5) + 1;";s:7:"summary";s:0:"";}s:25:"dojo.fx.easing.quintInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:100:" n = n * 2; if(n < 1){ return Math.pow(n, 5) / 2; }; n -= 2; return (Math.pow(n, 5) + 2) / 2;";s:7:"summary";s:0:"";}s:21:"dojo.fx.easing.sineIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:46:" return -1 * Math.cos(n * (Math.PI / 2)) + 1;";s:7:"summary";s:0:"";}s:22:"dojo.fx.easing.sineOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:37:" return Math.sin(n * (Math.PI / 2));";s:7:"summary";s:0:"";}s:24:"dojo.fx.easing.sineInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:46:" return -1 * (Math.cos(Math.PI * n) - 1) / 2;";s:7:"summary";s:0:"";}s:21:"dojo.fx.easing.expoIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:50:" return (n == 0) ? 0 : Math.pow(2, 10 * (n - 1));";s:7:"summary";s:0:"";}s:22:"dojo.fx.easing.expoOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:56:" return (n == 1) ? 1 : (-1 * Math.pow(2, -10 * n) + 1);";s:7:"summary";s:0:"";}s:24:"dojo.fx.easing.expoInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:170:" if(n == 0){ return 0; } if(n == 1){ return 1; } n = n * 2; if(n < 1){ return Math.pow(2, 10 * (n - 1)) / 2; } --n; return (-1 * Math.pow(2, -10 * n) + 2) / 2;";s:7:"summary";s:0:"";}s:21:"dojo.fx.easing.circIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:50:" return -1 * (Math.sqrt(1 - Math.pow(n, 2)) - 1);";s:7:"summary";s:0:"";}s:22:"dojo.fx.easing.circOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:52:" n = n - 1; return Math.sqrt(1 - Math.pow(n, 2));";s:7:"summary";s:0:"";}s:24:"dojo.fx.easing.circInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:144:" n = n * 2; if(n < 1){ return -1 / 2 * (Math.sqrt(1 - Math.pow(n, 2)) - 1); } n -= 2; return 1 / 2 * (Math.sqrt(1 - Math.pow(n, 2)) + 1);";s:7:"summary";s:0:"";}s:21:"dojo.fx.easing.backIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:63:" var s = 1.70158; return Math.pow(n, 2) * ((s + 1) * n - s);";s:7:"summary";s:98:"An easing function that starts away from the target, and quickly accelerates towards the end value";}s:22:"dojo.fx.easing.backOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:80:" n = n - 1; var s = 1.70158; return Math.pow(n, 2) * ((s + 1) * n + s) + 1;";s:7:"summary";s:75:"An easing function that pops past the range briefly, and slowly comes back.";}s:24:"dojo.fx.easing.backInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:166:" var s = 1.70158 * 1.525; n = n * 2; if(n < 1){ return (Math.pow(n, 2) * ((s + 1) * n - s)) / 2; } n-=2; return (Math.pow(n, 2) * ((s + 1) * n + s) + 2) / 2;";s:7:"summary";s:62:"An easing function combining the effects of backIn and backOut";}s:24:"dojo.fx.easing.elasticIn";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:154:" if(n == 0 || n == 1){ return n; } var p = .3; var s = p / 4; n = n - 1; return -1 * Math.pow(2, 10 * n) * Math.sin((n - s) * (2 * Math.PI) / p);";s:7:"summary";s:61:"An easing function the elastically snaps from the start value";}s:25:"dojo.fx.easing.elasticOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:139:" if(n==0 || n == 1){ return n; } var p = .3; var s = p / 4; return Math.pow(2, -10 * n) * Math.sin((n - s) * (2 * Math.PI) / p) + 1;";s:7:"summary";s:94:"An easing function that elasticly snaps around the target value, near the end of the Animation";}s:27:"dojo.fx.easing.elasticInOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:294:" if(n == 0) return 0; n = n * 2; if(n == 2) return 1; var p = .3 * 1.5; var s = p / 4; if(n < 1){ n -= 1; return -.5 * (Math.pow(2, 10 * n) * Math.sin((n - s) * (2 * Math.PI) / p)); } n -= 1; return .5 * (Math.pow(2, -10 * n) * Math.sin((n - s) * (2 * Math.PI) / p)) + 1;";s:7:"summary";s:101:"An easing function that elasticly snaps around the value, near the beginning and end of the Animation";}s:23:"dojo.fx.easing.bounceIn";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:58:" return (1 - dojo.fx.easing.bounceOut(1 - n)); // Decimal";s:7:"summary";s:78:"An easing function that "bounces" near the beginning of an Animation";s:7:"returns";s:7:"Decimal";}s:24:"dojo.fx.easing.bounceOut";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:331:" var s = 7.5625; var p = 2.75; var l; if(n < (1 / p)){ l = s * Math.pow(n, 2); }else if(n < (2 / p)){ n -= (1.5 / p); l = s * Math.pow(n, 2) + .75; }else if(n < (2.5 / p)){ n -= (2.25 / p); l = s * Math.pow(n, 2) + .9375; }else{ n -= (2.625 / p); l = s * Math.pow(n, 2) + .984375; } return l;";s:7:"summary";s:72:"An easing function that "bounces" near the end of an Animation";}s:26:"dojo.fx.easing.bounceInOut";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"n";a:2:{s:8:"optional";b:1;s:4:"type";s:7:"Decimal";}}s:6:"source";s:128:" if(n < 0.5){ return dojo.fx.easing.bounceIn(n * 2) / 2; } return (dojo.fx.easing.bounceOut(n * 2 - 1) / 2) + 0.5; // Decimal";s:7:"summary";s:85:"An easing function that "bounces" at the beginning and end of the Animation";s:7:"returns";s:7:"Decimal";}s:7:"dojo.fx";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:4:"dojo";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}