diff --git a/build/stats.min.js b/build/stats.min.js index 6837aa0..61757f3 100644 --- a/build/stats.min.js +++ b/build/stats.min.js @@ -1,2 +1,5 @@ // stats.js - http://github.com/mrdoob/stats.js -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Stats=t()}(this,function(){"use strict";var e=function(){function t(e){return i.appendChild(e.dom),e}function n(e){for(var t=0;to+1e3&&(r.update(1e3*f/(e-o),100),o=e,f=0,c)){var t=performance.memory;c.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){a=this.end()},domElement:i,setMode:n}};return e.Panel=function(e,t,n){var l=1/0,i=0,a=Math.round,o=a(window.devicePixelRatio||1),f=80*o,r=48*o,d=3*o,c=2*o,p=3*o,u=15*o,s=74*o,m=30*o,h=document.createElement("canvas");h.width=f,h.height=r,h.style.cssText="width:80px;height:48px";var y=h.getContext("2d");return y.font="bold "+9*o+"px Helvetica,Arial,sans-serif",y.textBaseline="top",y.fillStyle=n,y.fillRect(0,0,f,r),y.fillStyle=t,y.fillText(e,d,c),y.fillRect(p,u,s,m),y.fillStyle=n,y.globalAlpha=.9,y.fillRect(p,u,s,m),{dom:h,update:function(r,v){l=Math.min(l,r),i=Math.max(i,r),y.fillStyle=n,y.globalAlpha=1,y.fillRect(0,0,f,u),y.fillStyle=t,y.fillText(a(r)+" "+e+" ("+a(l)+"-"+a(i)+")",d,c),y.drawImage(h,p+o,u,s-o,m,p,u,s-o,m),y.fillRect(p+s-o,u,o,m),y.fillStyle=n,y.globalAlpha=.9,y.fillRect(p+s-o,u,o,a((1-r/v)*m))}}},e}); \ No newline at end of file +(function(f,e){"object"===typeof exports&&"undefined"!==typeof module?module.exports=e():"function"===typeof define&&define.amd?define(e):f.Stats=e()})(this,function(){var f=function(){function e(a){c.appendChild(a.dom);return a}function u(a){for(var d=0;dg+1E3&&(r.update(1E3*a/(c-g),100),g=c,a=0,t)){var d=performance.memory;t.update(d.usedJSHeapSize/ +1048576,d.jsHeapSizeLimit/1048576)}return c},update:function(){k=this.end()},domElement:c,setMode:u}};f.Panel=function(e,f,l){var c=Infinity,k=0,g=Math.round,a=g(window.devicePixelRatio||1),r=80*a,h=48*a,t=3*a,v=2*a,d=3*a,m=15*a,n=74*a,p=30*a,q=document.createElement("canvas");q.width=r;q.height=h;q.style.cssText="width:80px;height:48px";var b=q.getContext("2d");b.font="bold "+9*a+"px Helvetica,Arial,sans-serif";b.textBaseline="top";b.fillStyle=l;b.fillRect(0,0,r,h);b.fillStyle=f;b.fillText(e,t,v); +b.fillRect(d,m,n,p);b.fillStyle=l;b.globalAlpha=.9;b.fillRect(d,m,n,p);return{dom:q,update:function(h,w){c=Math.min(c,h);k=Math.max(k,h);b.fillStyle=l;b.globalAlpha=1;b.fillRect(0,0,r,m);b.fillStyle=f;b.fillText(g(h)+" "+e+" ("+g(c)+"-"+g(k)+")",t,v);b.drawImage(q,d+a,m,n-a,p,d,m,n-a,p);b.fillRect(d+n-a,m,a,p);b.fillStyle=l;b.globalAlpha=.9;b.fillRect(d+n-a,m,a,g((1-h/w)*p))}}};return f});