MCPcopy
hub / github.com/ericdrowell/KineticJS / addStats

Function addStats

test/runner.js:62–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60Kinetic.enableTrace = true;
61
62function addStats() {
63 stats = new Stats();
64 stats.setMode(0);
65 stats.domElement.style.position = 'fixed';
66 stats.domElement.style.left = '0px';
67 stats.domElement.style.top = '0px';
68 document.getElementsByTagName('body')[0].appendChild( stats.domElement );
69
70
71 function animate(lastTime){
72 stats.begin();
73
74 requestAnimFrame(function(){
75 stats.end();
76 animate(lastTime);
77 });
78 }
79
80 animate();
81}
82
83
84

Callers

nothing calls this directly

Calls 1

animateFunction · 0.70

Tested by

no test coverage detected