aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
commitd55b767039605256c736166a942a9138e3eacfd7 (patch)
tree947063b634c50d438a794325f13275e134aa5993 /node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js
parent864ce67d89c77d8ef9c3361f80d619853abcf91c (diff)
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js')
-rw-r--r--node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js b/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js
deleted file mode 100644
index aeb24d1..0000000
--- a/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js
+++ /dev/null
@@ -1,38 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.animationFrames = void 0;
-var Observable_1 = require("../../Observable");
-var performanceTimestampProvider_1 = require("../../scheduler/performanceTimestampProvider");
-var animationFrameProvider_1 = require("../../scheduler/animationFrameProvider");
-function animationFrames(timestampProvider) {
- return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES;
-}
-exports.animationFrames = animationFrames;
-function animationFramesFactory(timestampProvider) {
- return new Observable_1.Observable(function (subscriber) {
- var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider;
- var start = provider.now();
- var id = 0;
- var run = function () {
- if (!subscriber.closed) {
- id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function (timestamp) {
- id = 0;
- var now = provider.now();
- subscriber.next({
- timestamp: timestampProvider ? now : timestamp,
- elapsed: now - start,
- });
- run();
- });
- }
- };
- run();
- return function () {
- if (id) {
- animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
- }
- };
- });
-}
-var DEFAULT_ANIMATION_FRAMES = animationFramesFactory();
-//# sourceMappingURL=animationFrames.js.map \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage