polyfills.js — react Source File
Architecture documentation for polyfills.js, a javascript file in the react codebase. 4 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR b13e4ec8_edeb_b96a_c7f8_f960677a6e23["polyfills.js"] 0fca0079_5c64_bbd2_08e6_ba6863de1359["symbol"] b13e4ec8_edeb_b96a_c7f8_f960677a6e23 --> 0fca0079_5c64_bbd2_08e6_ba6863de1359 b58b7475_83be_1536_51c8_db172cac3969["promise"] b13e4ec8_edeb_b96a_c7f8_f960677a6e23 --> b58b7475_83be_1536_51c8_db172cac3969 ea10b0cd_d3db_e077_a508_18a7c75711c2["set"] b13e4ec8_edeb_b96a_c7f8_f960677a6e23 --> ea10b0cd_d3db_e077_a508_18a7c75711c2 9df240d8_0f66_97a4_9f26_52136b982cf8["map"] b13e4ec8_edeb_b96a_c7f8_f960677a6e23 --> 9df240d8_0f66_97a4_9f26_52136b982cf8 9f1d73bc_10b4_6f20_3101_55819618d137["index.js"] 9f1d73bc_10b4_6f20_3101_55819618d137 --> b13e4ec8_edeb_b96a_c7f8_f960677a6e23 style b13e4ec8_edeb_b96a_c7f8_f960677a6e23 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import 'core-js/es6/symbol';
import 'core-js/es6/promise';
import 'core-js/es6/set';
import 'core-js/es6/map';
// 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 () {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];
window.cancelAnimationFrame =
window[vendors[x] + 'CancelAnimationFrame'] ||
window[vendors[x] + 'CancelRequestAnimationFrame'];
}
if (!window.requestAnimationFrame)
window.requestAnimationFrame = function (callback, element) {
var currTime = new Date().getTime();
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
var id = window.setTimeout(function () {
callback(currTime + timeToCall);
}, timeToCall);
lastTime = currTime + timeToCall;
return id;
};
if (!window.cancelAnimationFrame)
window.cancelAnimationFrame = function (id) {
clearTimeout(id);
};
})();
Domain
Dependencies
- map
- promise
- set
- symbol
Imported By
Source
Frequently Asked Questions
What does polyfills.js do?
polyfills.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does polyfills.js depend on?
polyfills.js imports 4 module(s): map, promise, set, symbol.
What files import polyfills.js?
polyfills.js is imported by 1 file(s): index.js.
Where is polyfills.js in the architecture?
polyfills.js is located at fixtures/dom/src/polyfills.js (domain: BabelCompiler, directory: fixtures/dom/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free