Sha256: eff7ad87d2369ead379815ae771c0d54de7c9f79d8a67968f2432a43c0cbee57

Contents?: true

Size: 1.67 KB

Versions: 49

Compression:

Stored size: 1.67 KB

Contents

/** 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

Version data entries

49 entries across 49 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/rxjs/_esm5/util/AnimationFrame.js
ilog-0.4.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
ilog-0.3.3 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-18.0.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.21.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.20.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.19.1 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.19.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.18.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.17.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.16.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.15.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.14.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.13.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.12.2 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.12.1 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.12.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.11.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.10.0 node_modules/rxjs/_esm5/util/AnimationFrame.js
govuk_publishing_components-17.9.0 node_modules/rxjs/_esm5/util/AnimationFrame.js