MCPcopy Index your code
hub / github.com/codename-co/stack / Three.js

File Three.js

hub/astray/Three.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Three.js - http://github.com/mrdoob/three.js
2'use strict';var THREE=THREE||{REVISION:"49"};self.Int32Array||(self.Int32Array=Array,self.Float32Array=Array);
3(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c){window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame)window.requestAnimationFrame=function(b){var c=Date.now(),f=Math.max(0,16-(c-a)),g=window.setTimeout(function(){b(c+f)},f);a=c+f;return g};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=
4function(a){clearTimeout(a)}})();THREE.Clock=function(a){this.autoStart=a!==void 0?a:true;this.elapsedTime=this.oldTime=this.startTime=0;this.running=false};THREE.Clock.prototype.start=function(){this.oldTime=this.startTime=Date.now();this.running=true};THREE.Clock.prototype.stop=function(){this.getElapsedTime();this.running=false};THREE.Clock.prototype.getElapsedTime=function(){return this.elapsedTime=this.elapsedTime+this.getDelta()};

Callers

nothing calls this directly

Calls 15

NbFunction · 0.85
logMethod · 0.80
bFunction · 0.70
cFunction · 0.70
dFunction · 0.70
aFunction · 0.70
gFunction · 0.70
fFunction · 0.70
eFunction · 0.70
hFunction · 0.70
mFunction · 0.70
rFunction · 0.70

Tested by

no test coverage detected