StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/requestanimationframe/app/requestAnimationFrame.js

74 lines
1.8 KiB

/**
* requestAnimationFrame version: "0.0.23" Copyright (c) 2011-2012, Cyril Agosta ( cyril.agosta.dev@gmail.com) All Rights Reserved.
* Available via the MIT license.
* see: http://github.com/cagosta/requestAnimationFrame for details
*
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
* requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
* MIT license
*
*/
( function( global ) {
( function() {
if ( global.requestAnimationFrame ) {
return;
}
if ( global.webkitRequestAnimationFrame ) { // Chrome <= 23, Safari <= 6.1, Blackberry 10
global.requestAnimationFrame = global[ 'webkitRequestAnimationFrame' ];
global.cancelAnimationFrame = global[ 'webkitCancelAnimationFrame' ] || global[ 'webkitCancelRequestAnimationFrame' ];
return;
}
// IE <= 9, Android <= 4.3, very old/rare browsers
var lastTime = 0;
global.requestAnimationFrame = function( callback ) {
var currTime = new Date().getTime();
var timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );
var id = global.setTimeout( function() {
callback( currTime + timeToCall );
}, timeToCall );
lastTime = currTime + timeToCall;
return id; // return the id for cancellation capabilities
};
global.cancelAnimationFrame = function( id ) {
clearTimeout( id );
};
} )();
if ( typeof define === 'function' ) {
define( function() {
return global.requestAnimationFrame;
} );
}
} )( window );