mirror of
				https://github.com/fooflington/selfdefined.git
				synced 2025-11-04 07:39:03 +00:00 
			
		
		
		
	update
This commit is contained in:
		
							
								
								
									
										33
									
								
								node_modules/rxjs/_esm5/util/AnimationFrame.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								node_modules/rxjs/_esm5/util/AnimationFrame.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
/** PURE_IMPORTS_START ._root PURE_IMPORTS_END */
 | 
			
		||||
import { root } from './root';
 | 
			
		||||
export var RequestAnimationFrameDefinition = /*@__PURE__*/ (/*@__PURE__*/ function () {
 | 
			
		||||
    function RequestAnimationFrameDefinition(root) {
 | 
			
		||||
        if (root.requestAnimationFrame) {
 | 
			
		||||
            this.cancelAnimationFrame = root.cancelAnimationFrame.bind(root);
 | 
			
		||||
            this.requestAnimationFrame = root.requestAnimationFrame.bind(root);
 | 
			
		||||
        }
 | 
			
		||||
        else if (root.mozRequestAnimationFrame) {
 | 
			
		||||
            this.cancelAnimationFrame = root.mozCancelAnimationFrame.bind(root);
 | 
			
		||||
            this.requestAnimationFrame = root.mozRequestAnimationFrame.bind(root);
 | 
			
		||||
        }
 | 
			
		||||
        else if (root.webkitRequestAnimationFrame) {
 | 
			
		||||
            this.cancelAnimationFrame = root.webkitCancelAnimationFrame.bind(root);
 | 
			
		||||
            this.requestAnimationFrame = root.webkitRequestAnimationFrame.bind(root);
 | 
			
		||||
        }
 | 
			
		||||
        else if (root.msRequestAnimationFrame) {
 | 
			
		||||
            this.cancelAnimationFrame = root.msCancelAnimationFrame.bind(root);
 | 
			
		||||
            this.requestAnimationFrame = root.msRequestAnimationFrame.bind(root);
 | 
			
		||||
        }
 | 
			
		||||
        else if (root.oRequestAnimationFrame) {
 | 
			
		||||
            this.cancelAnimationFrame = root.oCancelAnimationFrame.bind(root);
 | 
			
		||||
            this.requestAnimationFrame = root.oRequestAnimationFrame.bind(root);
 | 
			
		||||
        }
 | 
			
		||||
        else {
 | 
			
		||||
            this.cancelAnimationFrame = root.clearTimeout.bind(root);
 | 
			
		||||
            this.requestAnimationFrame = function (cb) { return root.setTimeout(cb, 1000 / 60); };
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return RequestAnimationFrameDefinition;
 | 
			
		||||
}());
 | 
			
		||||
export var AnimationFrame = /*@__PURE__*/ new RequestAnimationFrameDefinition(root);
 | 
			
		||||
//# sourceMappingURL=AnimationFrame.js.map
 | 
			
		||||
		Reference in New Issue
	
	Block a user