diff --git a/build/stats.min.js b/build/stats.min.js index b430a1d..be2cbbf 100644 --- a/build/stats.min.js +++ b/build/stats.min.js @@ -1,5 +1,5 @@ -// stats.js - http://github.com/mrdoob/stats.js -var Stats=function(){function g(a,b,c){a=document.createElement(a);a.id=b;a.style.cssText=c;return a}function r(a,b,c){var h=g("div",a,"padding:0 0 3px 3px;text-align:left;background:"+c);h.style.display="none";var e=g("div",a+"Text","font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px;color:"+b);e.innerHTML=a.toUpperCase();h.appendChild(e);a=g("div",a+"Graph","width:74px;height:30px;background:"+b);h.appendChild(a);for(b=0;74>b;b++)a.appendChild(g("span","","width:1px;height:30px;float:left;opacity:0.9;background:"+ -c));return h}function d(a,b,c,h,g){var d=Infinity,f=0;a=r(a,b,c);var l=a.children[0],k=a.children[1];e.appendChild(a);return{div:a,update:function(a){d=Math.min(d,a);f=Math.max(f,a);l.textContent=(a|0)+" "+h+" ("+(d|0)+"-"+(f|0)+")";a/=g;k.appendChild(k.firstChild).style.height=Math.min(30,30-30*a)+"px"}}}function l(a){for(var b=e.children,c=0;cn+1E3&&(fps=Math.round(1E3* -p/(a-n)),t.update(fps),n=a,p=0,void 0!==q&&(mem=Math.round(9.54E-7*performance.memory.usedJSHeapSize),q.update(mem)));return a},update:function(){f=this.end()}}};"object"===typeof module&&(module.exports=Stats); +// stats.js - http://github.com/mrdoob/stats.js +var Stats=function(){function c(a){b.appendChild(a.dom);return a}function d(a){for(var c=0;ce+1E3&&(h.update(1E3*f/(b-e),100),e=b,f=0,void 0!==l)){var c=performance.memory;l.update(c.usedJSHeapSize/1048576,c.jsHeapSizeLimit/1048576)}return b},update:function(){a=this.end()}}}; +Stats.Panel=function(c,d,g){var b=document.createElement("canvas");b.width=80;b.height=48;var a=b.getContext("2d");a.fillStyle=g;a.fillRect(0,0,80,48);a.font="bold 9px Helvetica,Arial,sans-serif";a.fillStyle=d;a.fillText(c,3,10);a.fillRect(3,15,74,30);a.fillStyle=g;a.globalAlpha=.9;a.fillRect(3,15,74,30);var e=Infinity,f=0;return{dom:b,update:function(h,k){e=Math.min(e,h);f=Math.max(f,h);a.globalAlpha=1;a.fillStyle=g;a.fillRect(0,0,80,15);a.fillStyle=d;a.fillText((h|0)+" "+c+" ("+(e|0)+"-"+(f|0)+ +")",3,10);a.drawImage(b,4,15,74,30,3,15,74,30);a.fillRect(76,15,1,30);a.fillStyle=g;a.globalAlpha=.9;a.fillRect(76,15,1,30-h/k*30|0)}}};"object"===typeof module&&(module.exports=Stats);