Link to new example from README.md file, also update change log

This commit is contained in:
sole 2013-02-04 13:39:25 +00:00
parent e62953932f
commit f2f29f34c6
3 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@ Super simple, fast and easy to use tweening engine which incorporates optimised
### Examples ###
[![Repeat](http://sole.github.com/tween.js/assets/examples/08_repeat.png)](http://sole.github.com/tween.js/examples/08_repeat.html)
[![Dynamic to](http://sole.github.com/tween.js/assets/examples/07_dynamic_to.png)](http://sole.github.com/tween.js/examples/07_dynamic_to.html)
[![Array interpolation](http://sole.github.com/tween.js/assets/examples/03_graphs.png)](http://sole.github.com/tween.js/examples/06_array_interpolation.html)
[![Video and time](http://sole.github.com/tween.js/assets/examples/06_video_and_time.png)](http://sole.github.com/tween.js/examples/05_video_and_time.html)
@ -96,7 +97,7 @@ No, we like to keep it simple and free of dependencies. Feel free to make one yo
### Change log ###
2013 02 04 - **r9**
2013 02 04 - **r9** (5,224 KB, gzip: 1,959 KB)
* Use window.performance.now() if available for even smoother animations ([tdreyno](https://github.com/tdreyno), [mrdoob](https://github.com/mrdoob) and [sole](https://github.com/sole))
* Added tween.repeat() ([sole](https://github.com/sole))

2
build/tween.min.js vendored
View File

@ -1,5 +1,5 @@
// tween.js - http://github.com/sole/tween.js
'use strict';var TWEEN=TWEEN||function(){var a=[];return{REVISION:"9dev",getAll:function(){return a},removeAll:function(){a=[]},add:function(c){a.push(c)},remove:function(c){c=a.indexOf(c);-1!==c&&a.splice(c,1)},update:function(c){if(0===a.length)return!1;for(var b=0,e=a.length,c=void 0!==c?c:void 0!==window.performance&&void 0!==window.performance.now?window.performance.now():Date.now();b<e;)a[b].update(c)?b++:(a.splice(b,1),e--);return!0}}}();
'use strict';var TWEEN=TWEEN||function(){var a=[];return{REVISION:"9",getAll:function(){return a},removeAll:function(){a=[]},add:function(c){a.push(c)},remove:function(c){c=a.indexOf(c);-1!==c&&a.splice(c,1)},update:function(c){if(0===a.length)return!1;for(var b=0,e=a.length,c=void 0!==c?c:void 0!==window.performance&&void 0!==window.performance.now?window.performance.now():Date.now();b<e;)a[b].update(c)?b++:(a.splice(b,1),e--);return!0}}}();
TWEEN.Tween=function(a){var c={},b={},e={},d=1E3,g=0,h=0,j=null,t=TWEEN.Easing.Linear.None,u=TWEEN.Interpolation.Linear,m=[],n=null,p=!1,q=null,r=null;this.to=function(a,c){void 0!==c&&(d=c);b=a;return this};this.start=function(d){TWEEN.add(this);p=!1;j=void 0!==d?d:void 0!==window.performance&&void 0!==window.performance.now?window.performance.now():Date.now();j+=h;for(var f in b)if(!(!1===f in a||null===a[f])){if(b[f]instanceof Array){if(0===b[f].length)continue;b[f]=[a[f]].concat(b[f])}c[f]=a[f];
!1==c[f]instanceof Array&&(c[f]*=1);e[f]=c[f]}return this};this.stop=function(){TWEEN.remove(this);return this};this.delay=function(a){h=a;return this};this.repeat=function(a){g=a;return this};this.easing=function(a){t=a;return this};this.interpolation=function(a){u=a;return this};this.chain=function(){m=arguments;return this};this.onStart=function(a){n=a;return this};this.onUpdate=function(a){q=a;return this};this.onComplete=function(a){r=a;return this};this.update=function(l){if(l<j)return!0;!1===
p&&(null!==n&&n.call(a),p=!0);var f=(l-j)/d,f=1<f?1:f,k=t(f),i;for(i in c){var v=c[i],s=b[i];a[i]=s instanceof Array?u(s,k):v+(s-v)*k}null!==q&&q.call(a,k);if(1==f)if(0<g){isFinite(g)&&g--;for(i in e)c[i]=e[i];j=l+h}else{null!==r&&r.call(a);f=0;for(k=m.length;f<k;f++)m[f].start(l);return!1}return!0}};

View File

@ -16,7 +16,7 @@ var TWEEN = TWEEN || ( function () {
return {
REVISION: '9dev',
REVISION: '9',
getAll: function () {