From b03a3a262c12ec203c0943e12d4c8edba39979c4 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sun, 10 Apr 2016 18:17:53 +0100 Subject: [PATCH] Updated stats.js to r15. --- examples/js/libs/stats.min.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/js/libs/stats.min.js b/examples/js/libs/stats.min.js index a2d18722b6..be2cbbf66d 100644 --- a/examples/js/libs/stats.min.js +++ b/examples/js/libs/stats.min.js @@ -1,5 +1,5 @@ // stats.js - http://github.com/mrdoob/stats.js -var Stats=function(){function f(a,e,b){a=document.createElement(a);a.id=e;a.style.cssText=b;return a}function l(a,e,b){var c=f("div",a,"padding:0 0 3px 3px;text-align:left;background:"+b),d=f("div",a+"Text","font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px;color:"+e);d.innerHTML=a.toUpperCase();c.appendChild(d);a=f("div",a+"Graph","width:74px;height:30px;background:"+e);c.appendChild(a);for(e=0;74>e;e++)a.appendChild(f("span","","width:1px;height:30px;float:left;opacity:0.9;background:"+ -b));return c}function m(a){for(var b=c.children,d=0;dr+1E3&&(d=Math.round(1E3* -t/(a-r)),u=Math.min(u,d),v=Math.max(v,d),A.textContent=d+" FPS ("+u+"-"+v+")",p(B,d/100),r=a,t=0,void 0!==h)){var b=performance.memory.usedJSHeapSize,c=performance.memory.jsHeapSizeLimit;h=Math.round(9.54E-7*b);y=Math.min(y,h);z=Math.max(z,h);E.textContent=h+" MB ("+y+"-"+z+")";p(F,b/c)}return a},update:function(){k=this.end()}}};"object"===typeof module&&(module.exports=Stats); +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); -- GitLab