mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-08-07 04:58:33 +00:00
update
This commit is contained in:
30
node_modules/rxjs/scheduler/Action.d.ts
generated
vendored
Normal file
30
node_modules/rxjs/scheduler/Action.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Scheduler } from '../Scheduler';
|
||||
import { Subscription } from '../Subscription';
|
||||
/**
|
||||
* A unit of work to be executed in a {@link Scheduler}. An action is typically
|
||||
* created from within a Scheduler and an RxJS user does not need to concern
|
||||
* themselves about creating and manipulating an Action.
|
||||
*
|
||||
* ```ts
|
||||
* class Action<T> extends Subscription {
|
||||
* new (scheduler: Scheduler, work: (state?: T) => void);
|
||||
* schedule(state?: T, delay: number = 0): Subscription;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @class Action<T>
|
||||
*/
|
||||
export declare class Action<T> extends Subscription {
|
||||
constructor(scheduler: Scheduler, work: (this: Action<T>, state?: T) => void);
|
||||
/**
|
||||
* Schedules this action on its parent Scheduler for execution. May be passed
|
||||
* some context object, `state`. May happen at some point in the future,
|
||||
* according to the `delay` parameter, if specified.
|
||||
* @param {T} [state] Some contextual data that the `work` function uses when
|
||||
* called by the Scheduler.
|
||||
* @param {number} [delay] Time to wait before executing the work, where the
|
||||
* time unit is implicit and defined by the Scheduler.
|
||||
* @return {void}
|
||||
*/
|
||||
schedule(state?: T, delay?: number): Subscription;
|
||||
}
|
44
node_modules/rxjs/scheduler/Action.js
generated
vendored
Normal file
44
node_modules/rxjs/scheduler/Action.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Subscription_1 = require('../Subscription');
|
||||
/**
|
||||
* A unit of work to be executed in a {@link Scheduler}. An action is typically
|
||||
* created from within a Scheduler and an RxJS user does not need to concern
|
||||
* themselves about creating and manipulating an Action.
|
||||
*
|
||||
* ```ts
|
||||
* class Action<T> extends Subscription {
|
||||
* new (scheduler: Scheduler, work: (state?: T) => void);
|
||||
* schedule(state?: T, delay: number = 0): Subscription;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @class Action<T>
|
||||
*/
|
||||
var Action = (function (_super) {
|
||||
__extends(Action, _super);
|
||||
function Action(scheduler, work) {
|
||||
_super.call(this);
|
||||
}
|
||||
/**
|
||||
* Schedules this action on its parent Scheduler for execution. May be passed
|
||||
* some context object, `state`. May happen at some point in the future,
|
||||
* according to the `delay` parameter, if specified.
|
||||
* @param {T} [state] Some contextual data that the `work` function uses when
|
||||
* called by the Scheduler.
|
||||
* @param {number} [delay] Time to wait before executing the work, where the
|
||||
* time unit is implicit and defined by the Scheduler.
|
||||
* @return {void}
|
||||
*/
|
||||
Action.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
return this;
|
||||
};
|
||||
return Action;
|
||||
}(Subscription_1.Subscription));
|
||||
exports.Action = Action;
|
||||
//# sourceMappingURL=Action.js.map
|
1
node_modules/rxjs/scheduler/Action.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/Action.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../src/scheduler/Action.ts"],"names":[],"mappings":";;;;;;AACA,6BAA6B,iBAAiB,CAAC,CAAA;AAE/C;;;;;;;;;;;;;GAaG;AACH;IAA+B,0BAAY;IACzC,gBAAY,SAAoB,EAAE,IAA0C;QAC1E,iBAAO,CAAC;IACV,CAAC;IACD;;;;;;;;;OASG;IACI,yBAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC1C,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IACH,aAAC;AAAD,CAAC,AAjBD,CAA+B,2BAAY,GAiB1C;AAjBY,cAAM,SAiBlB,CAAA","sourcesContent":["import { Scheduler } from '../Scheduler';\nimport { Subscription } from '../Subscription';\n\n/**\n * A unit of work to be executed in a {@link Scheduler}. An action is typically\n * created from within a Scheduler and an RxJS user does not need to concern\n * themselves about creating and manipulating an Action.\n *\n * ```ts\n * class Action<T> extends Subscription {\n * new (scheduler: Scheduler, work: (state?: T) => void);\n * schedule(state?: T, delay: number = 0): Subscription;\n * }\n * ```\n *\n * @class Action<T>\n */\nexport class Action<T> extends Subscription {\n constructor(scheduler: Scheduler, work: (this: Action<T>, state?: T) => void) {\n super();\n }\n /**\n * Schedules this action on its parent Scheduler for execution. May be passed\n * some context object, `state`. May happen at some point in the future,\n * according to the `delay` parameter, if specified.\n * @param {T} [state] Some contextual data that the `work` function uses when\n * called by the Scheduler.\n * @param {number} [delay] Time to wait before executing the work, where the\n * time unit is implicit and defined by the Scheduler.\n * @return {void}\n */\n public schedule(state?: T, delay: number = 0): Subscription {\n return this;\n }\n}\n"]}
|
14
node_modules/rxjs/scheduler/AnimationFrameAction.d.ts
generated
vendored
Normal file
14
node_modules/rxjs/scheduler/AnimationFrameAction.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AnimationFrameScheduler } from './AnimationFrameScheduler';
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export declare class AnimationFrameAction<T> extends AsyncAction<T> {
|
||||
protected scheduler: AnimationFrameScheduler;
|
||||
protected work: (this: AnimationFrameAction<T>, state?: T) => void;
|
||||
constructor(scheduler: AnimationFrameScheduler, work: (this: AnimationFrameAction<T>, state?: T) => void);
|
||||
protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay?: number): any;
|
||||
protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay?: number): any;
|
||||
}
|
55
node_modules/rxjs/scheduler/AnimationFrameAction.js
generated
vendored
Normal file
55
node_modules/rxjs/scheduler/AnimationFrameAction.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var AsyncAction_1 = require('./AsyncAction');
|
||||
var AnimationFrame_1 = require('../util/AnimationFrame');
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
var AnimationFrameAction = (function (_super) {
|
||||
__extends(AnimationFrameAction, _super);
|
||||
function AnimationFrameAction(scheduler, work) {
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.work = work;
|
||||
}
|
||||
AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
// If delay is greater than 0, request as an async action.
|
||||
if (delay !== null && delay > 0) {
|
||||
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// Push the action to the end of the scheduler queue.
|
||||
scheduler.actions.push(this);
|
||||
// If an animation frame has already been requested, don't request another
|
||||
// one. If an animation frame hasn't been requested yet, request one. Return
|
||||
// the current animation frame request id.
|
||||
return scheduler.scheduled || (scheduler.scheduled = AnimationFrame_1.AnimationFrame.requestAnimationFrame(scheduler.flush.bind(scheduler, null)));
|
||||
};
|
||||
AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
// If delay exists and is greater than 0, or if the delay is null (the
|
||||
// action wasn't rescheduled) but was originally scheduled as an async
|
||||
// action, then recycle as an async action.
|
||||
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
||||
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// If the scheduler queue is empty, cancel the requested animation frame and
|
||||
// set the scheduled flag to undefined so the next AnimationFrameAction will
|
||||
// request its own.
|
||||
if (scheduler.actions.length === 0) {
|
||||
AnimationFrame_1.AnimationFrame.cancelAnimationFrame(id);
|
||||
scheduler.scheduled = undefined;
|
||||
}
|
||||
// Return undefined so the action knows to request a new async id if it's rescheduled.
|
||||
return undefined;
|
||||
};
|
||||
return AnimationFrameAction;
|
||||
}(AsyncAction_1.AsyncAction));
|
||||
exports.AnimationFrameAction = AnimationFrameAction;
|
||||
//# sourceMappingURL=AnimationFrameAction.js.map
|
1
node_modules/rxjs/scheduler/AnimationFrameAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/AnimationFrameAction.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AnimationFrameAction.js","sourceRoot":"","sources":["../../src/scheduler/AnimationFrameAction.ts"],"names":[],"mappings":";;;;;;AAAA,4BAA4B,eAAe,CAAC,CAAA;AAC5C,+BAA+B,wBAAwB,CAAC,CAAA;AAGxD;;;;GAIG;AACH;IAA6C,wCAAc;IAEzD,8BAAsB,SAAkC,EAClC,IAAwD;QAC5E,kBAAM,SAAS,EAAE,IAAI,CAAC,CAAC;QAFH,cAAS,GAAT,SAAS,CAAyB;QAClC,SAAI,GAAJ,IAAI,CAAoD;IAE9E,CAAC;IAES,6CAAc,GAAxB,UAAyB,SAAkC,EAAE,EAAQ,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QACtF,0DAA0D;QAC1D,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YAChC,MAAM,CAAC,gBAAK,CAAC,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QACpD,CAAC;QACD,qDAAqD;QACrD,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,0EAA0E;QAC1E,4EAA4E;QAC5E,0CAA0C;QAC1C,MAAM,CAAC,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,+BAAc,CAAC,qBAAqB,CACvF,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CACtC,CAAC,CAAC;IACL,CAAC;IACS,6CAAc,GAAxB,UAAyB,SAAkC,EAAE,EAAQ,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QACtF,sEAAsE;QACtE,sEAAsE;QACtE,2CAA2C;QAC3C,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACxE,MAAM,CAAC,gBAAK,CAAC,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QACpD,CAAC;QACD,4EAA4E;QAC5E,4EAA4E;QAC5E,mBAAmB;QACnB,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;YACnC,+BAAc,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;YACxC,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC;QAClC,CAAC;QACD,sFAAsF;QACtF,MAAM,CAAC,SAAS,CAAC;IACnB,CAAC;IACH,2BAAC;AAAD,CAAC,AAtCD,CAA6C,yBAAW,GAsCvD;AAtCY,4BAAoB,uBAsChC,CAAA","sourcesContent":["import { AsyncAction } from './AsyncAction';\nimport { AnimationFrame } from '../util/AnimationFrame';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class AnimationFrameAction<T> extends AsyncAction<T> {\n\n constructor(protected scheduler: AnimationFrameScheduler,\n protected work: (this: AnimationFrameAction<T>, state?: T) => void) {\n super(scheduler, work);\n }\n\n protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay: number = 0): any {\n // If delay is greater than 0, request as an async action.\n if (delay !== null && delay > 0) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n // Push the action to the end of the scheduler queue.\n scheduler.actions.push(this);\n // If an animation frame has already been requested, don't request another\n // one. If an animation frame hasn't been requested yet, request one. Return\n // the current animation frame request id.\n return scheduler.scheduled || (scheduler.scheduled = AnimationFrame.requestAnimationFrame(\n scheduler.flush.bind(scheduler, null)\n ));\n }\n protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay: number = 0): any {\n // If delay exists and is greater than 0, or if the delay is null (the\n // action wasn't rescheduled) but was originally scheduled as an async\n // action, then recycle as an async action.\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return super.recycleAsyncId(scheduler, id, delay);\n }\n // If the scheduler queue is empty, cancel the requested animation frame and\n // set the scheduled flag to undefined so the next AnimationFrameAction will\n // request its own.\n if (scheduler.actions.length === 0) {\n AnimationFrame.cancelAnimationFrame(id);\n scheduler.scheduled = undefined;\n }\n // Return undefined so the action knows to request a new async id if it's rescheduled.\n return undefined;\n }\n}\n"]}
|
5
node_modules/rxjs/scheduler/AnimationFrameScheduler.d.ts
generated
vendored
Normal file
5
node_modules/rxjs/scheduler/AnimationFrameScheduler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export declare class AnimationFrameScheduler extends AsyncScheduler {
|
||||
flush(action?: AsyncAction<any>): void;
|
||||
}
|
37
node_modules/rxjs/scheduler/AnimationFrameScheduler.js
generated
vendored
Normal file
37
node_modules/rxjs/scheduler/AnimationFrameScheduler.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var AsyncScheduler_1 = require('./AsyncScheduler');
|
||||
var AnimationFrameScheduler = (function (_super) {
|
||||
__extends(AnimationFrameScheduler, _super);
|
||||
function AnimationFrameScheduler() {
|
||||
_super.apply(this, arguments);
|
||||
}
|
||||
AnimationFrameScheduler.prototype.flush = function (action) {
|
||||
this.active = true;
|
||||
this.scheduled = undefined;
|
||||
var actions = this.actions;
|
||||
var error;
|
||||
var index = -1;
|
||||
var count = actions.length;
|
||||
action = action || actions.shift();
|
||||
do {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
} while (++index < count && (action = actions.shift()));
|
||||
this.active = false;
|
||||
if (error) {
|
||||
while (++index < count && (action = actions.shift())) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
return AnimationFrameScheduler;
|
||||
}(AsyncScheduler_1.AsyncScheduler));
|
||||
exports.AnimationFrameScheduler = AnimationFrameScheduler;
|
||||
//# sourceMappingURL=AnimationFrameScheduler.js.map
|
1
node_modules/rxjs/scheduler/AnimationFrameScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/AnimationFrameScheduler.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AnimationFrameScheduler.js","sourceRoot":"","sources":["../../src/scheduler/AnimationFrameScheduler.ts"],"names":[],"mappings":";;;;;;AACA,+BAA+B,kBAAkB,CAAC,CAAA;AAElD;IAA6C,2CAAc;IAA3D;QAA6C,8BAAc;IA2B3D,CAAC;IA1BQ,uCAAK,GAAZ,UAAa,MAAyB;QAEpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAEpB,0BAAO,CAAS;QACvB,IAAI,KAAU,CAAC;QACf,IAAI,KAAK,GAAW,CAAC,CAAC,CAAC;QACvB,IAAI,KAAK,GAAW,OAAO,CAAC,MAAM,CAAC;QACnC,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAEnC,GAAG,CAAC;YACF,EAAE,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvD,KAAK,CAAC;YACR,CAAC;QACH,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE;QAExD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,OAAO,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC;gBACrD,MAAM,CAAC,WAAW,EAAE,CAAC;YACvB,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACH,8BAAC;AAAD,CAAC,AA3BD,CAA6C,+BAAc,GA2B1D;AA3BY,+BAAuB,0BA2BnC,CAAA","sourcesContent":["import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\nexport class AnimationFrameScheduler extends AsyncScheduler {\n public flush(action?: AsyncAction<any>): void {\n\n this.active = true;\n this.scheduled = undefined;\n\n const {actions} = this;\n let error: any;\n let index: number = -1;\n let count: number = actions.length;\n action = action || actions.shift();\n\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (++index < count && (action = actions.shift()));\n\n this.active = false;\n\n if (error) {\n while (++index < count && (action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n"]}
|
14
node_modules/rxjs/scheduler/AsapAction.d.ts
generated
vendored
Normal file
14
node_modules/rxjs/scheduler/AsapAction.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AsapScheduler } from './AsapScheduler';
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export declare class AsapAction<T> extends AsyncAction<T> {
|
||||
protected scheduler: AsapScheduler;
|
||||
protected work: (this: AsapAction<T>, state?: T) => void;
|
||||
constructor(scheduler: AsapScheduler, work: (this: AsapAction<T>, state?: T) => void);
|
||||
protected requestAsyncId(scheduler: AsapScheduler, id?: any, delay?: number): any;
|
||||
protected recycleAsyncId(scheduler: AsapScheduler, id?: any, delay?: number): any;
|
||||
}
|
55
node_modules/rxjs/scheduler/AsapAction.js
generated
vendored
Normal file
55
node_modules/rxjs/scheduler/AsapAction.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Immediate_1 = require('../util/Immediate');
|
||||
var AsyncAction_1 = require('./AsyncAction');
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
var AsapAction = (function (_super) {
|
||||
__extends(AsapAction, _super);
|
||||
function AsapAction(scheduler, work) {
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.work = work;
|
||||
}
|
||||
AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
// If delay is greater than 0, request as an async action.
|
||||
if (delay !== null && delay > 0) {
|
||||
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// Push the action to the end of the scheduler queue.
|
||||
scheduler.actions.push(this);
|
||||
// If a microtask has already been scheduled, don't schedule another
|
||||
// one. If a microtask hasn't been scheduled yet, schedule one now. Return
|
||||
// the current scheduled microtask id.
|
||||
return scheduler.scheduled || (scheduler.scheduled = Immediate_1.Immediate.setImmediate(scheduler.flush.bind(scheduler, null)));
|
||||
};
|
||||
AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
// If delay exists and is greater than 0, or if the delay is null (the
|
||||
// action wasn't rescheduled) but was originally scheduled as an async
|
||||
// action, then recycle as an async action.
|
||||
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
||||
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// If the scheduler queue is empty, cancel the requested microtask and
|
||||
// set the scheduled flag to undefined so the next AsapAction will schedule
|
||||
// its own.
|
||||
if (scheduler.actions.length === 0) {
|
||||
Immediate_1.Immediate.clearImmediate(id);
|
||||
scheduler.scheduled = undefined;
|
||||
}
|
||||
// Return undefined so the action knows to request a new async id if it's rescheduled.
|
||||
return undefined;
|
||||
};
|
||||
return AsapAction;
|
||||
}(AsyncAction_1.AsyncAction));
|
||||
exports.AsapAction = AsapAction;
|
||||
//# sourceMappingURL=AsapAction.js.map
|
1
node_modules/rxjs/scheduler/AsapAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/AsapAction.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsapAction.js","sourceRoot":"","sources":["../../src/scheduler/AsapAction.ts"],"names":[],"mappings":";;;;;;AAAA,0BAA0B,mBAAmB,CAAC,CAAA;AAC9C,4BAA4B,eAAe,CAAC,CAAA;AAG5C;;;;GAIG;AACH;IAAmC,8BAAc;IAE/C,oBAAsB,SAAwB,EACxB,IAA8C;QAClE,kBAAM,SAAS,EAAE,IAAI,CAAC,CAAC;QAFH,cAAS,GAAT,SAAS,CAAe;QACxB,SAAI,GAAJ,IAAI,CAA0C;IAEpE,CAAC;IAES,mCAAc,GAAxB,UAAyB,SAAwB,EAAE,EAAQ,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC5E,0DAA0D;QAC1D,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YAChC,MAAM,CAAC,gBAAK,CAAC,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QACpD,CAAC;QACD,qDAAqD;QACrD,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,oEAAoE;QACpE,0EAA0E;QAC1E,sCAAsC;QACtC,MAAM,CAAC,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,qBAAS,CAAC,YAAY,CACzE,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CACtC,CAAC,CAAC;IACL,CAAC;IACS,mCAAc,GAAxB,UAAyB,SAAwB,EAAE,EAAQ,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC5E,sEAAsE;QACtE,sEAAsE;QACtE,2CAA2C;QAC3C,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACxE,MAAM,CAAC,gBAAK,CAAC,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QACpD,CAAC;QACD,sEAAsE;QACtE,2EAA2E;QAC3E,WAAW;QACX,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;YACnC,qBAAS,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YAC7B,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC;QAClC,CAAC;QACD,sFAAsF;QACtF,MAAM,CAAC,SAAS,CAAC;IACnB,CAAC;IACH,iBAAC;AAAD,CAAC,AAtCD,CAAmC,yBAAW,GAsC7C;AAtCY,kBAAU,aAsCtB,CAAA","sourcesContent":["import { Immediate } from '../util/Immediate';\nimport { AsyncAction } from './AsyncAction';\nimport { AsapScheduler } from './AsapScheduler';\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class AsapAction<T> extends AsyncAction<T> {\n\n constructor(protected scheduler: AsapScheduler,\n protected work: (this: AsapAction<T>, state?: T) => void) {\n super(scheduler, work);\n }\n\n protected requestAsyncId(scheduler: AsapScheduler, id?: any, delay: number = 0): any {\n // If delay is greater than 0, request as an async action.\n if (delay !== null && delay > 0) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n // Push the action to the end of the scheduler queue.\n scheduler.actions.push(this);\n // If a microtask has already been scheduled, don't schedule another\n // one. If a microtask hasn't been scheduled yet, schedule one now. Return\n // the current scheduled microtask id.\n return scheduler.scheduled || (scheduler.scheduled = Immediate.setImmediate(\n scheduler.flush.bind(scheduler, null)\n ));\n }\n protected recycleAsyncId(scheduler: AsapScheduler, id?: any, delay: number = 0): any {\n // If delay exists and is greater than 0, or if the delay is null (the\n // action wasn't rescheduled) but was originally scheduled as an async\n // action, then recycle as an async action.\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return super.recycleAsyncId(scheduler, id, delay);\n }\n // If the scheduler queue is empty, cancel the requested microtask and\n // set the scheduled flag to undefined so the next AsapAction will schedule\n // its own.\n if (scheduler.actions.length === 0) {\n Immediate.clearImmediate(id);\n scheduler.scheduled = undefined;\n }\n // Return undefined so the action knows to request a new async id if it's rescheduled.\n return undefined;\n }\n}\n"]}
|
5
node_modules/rxjs/scheduler/AsapScheduler.d.ts
generated
vendored
Normal file
5
node_modules/rxjs/scheduler/AsapScheduler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export declare class AsapScheduler extends AsyncScheduler {
|
||||
flush(action?: AsyncAction<any>): void;
|
||||
}
|
37
node_modules/rxjs/scheduler/AsapScheduler.js
generated
vendored
Normal file
37
node_modules/rxjs/scheduler/AsapScheduler.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var AsyncScheduler_1 = require('./AsyncScheduler');
|
||||
var AsapScheduler = (function (_super) {
|
||||
__extends(AsapScheduler, _super);
|
||||
function AsapScheduler() {
|
||||
_super.apply(this, arguments);
|
||||
}
|
||||
AsapScheduler.prototype.flush = function (action) {
|
||||
this.active = true;
|
||||
this.scheduled = undefined;
|
||||
var actions = this.actions;
|
||||
var error;
|
||||
var index = -1;
|
||||
var count = actions.length;
|
||||
action = action || actions.shift();
|
||||
do {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
} while (++index < count && (action = actions.shift()));
|
||||
this.active = false;
|
||||
if (error) {
|
||||
while (++index < count && (action = actions.shift())) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
return AsapScheduler;
|
||||
}(AsyncScheduler_1.AsyncScheduler));
|
||||
exports.AsapScheduler = AsapScheduler;
|
||||
//# sourceMappingURL=AsapScheduler.js.map
|
1
node_modules/rxjs/scheduler/AsapScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/AsapScheduler.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsapScheduler.js","sourceRoot":"","sources":["../../src/scheduler/AsapScheduler.ts"],"names":[],"mappings":";;;;;;AACA,+BAA+B,kBAAkB,CAAC,CAAA;AAElD;IAAmC,iCAAc;IAAjD;QAAmC,8BAAc;IA2BjD,CAAC;IA1BQ,6BAAK,GAAZ,UAAa,MAAyB;QAEpC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAEpB,0BAAO,CAAS;QACvB,IAAI,KAAU,CAAC;QACf,IAAI,KAAK,GAAW,CAAC,CAAC,CAAC;QACvB,IAAI,KAAK,GAAW,OAAO,CAAC,MAAM,CAAC;QACnC,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;QAEnC,GAAG,CAAC;YACF,EAAE,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvD,KAAK,CAAC;YACR,CAAC;QACH,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE;QAExD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,OAAO,EAAE,KAAK,GAAG,KAAK,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC;gBACrD,MAAM,CAAC,WAAW,EAAE,CAAC;YACvB,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AA3BD,CAAmC,+BAAc,GA2BhD;AA3BY,qBAAa,gBA2BzB,CAAA","sourcesContent":["import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\nexport class AsapScheduler extends AsyncScheduler {\n public flush(action?: AsyncAction<any>): void {\n\n this.active = true;\n this.scheduled = undefined;\n\n const {actions} = this;\n let error: any;\n let index: number = -1;\n let count: number = actions.length;\n action = action || actions.shift();\n\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (++index < count && (action = actions.shift()));\n\n this.active = false;\n\n if (error) {\n while (++index < count && (action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n"]}
|
27
node_modules/rxjs/scheduler/AsyncAction.d.ts
generated
vendored
Normal file
27
node_modules/rxjs/scheduler/AsyncAction.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Action } from './Action';
|
||||
import { Subscription } from '../Subscription';
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export declare class AsyncAction<T> extends Action<T> {
|
||||
protected scheduler: AsyncScheduler;
|
||||
id: any;
|
||||
state: T;
|
||||
delay: number;
|
||||
protected pending: boolean;
|
||||
protected work: (this: this, state?: T) => void;
|
||||
constructor(scheduler: AsyncScheduler, work: (this: AsyncAction<T>, state?: T) => void);
|
||||
schedule(state?: T, delay?: number): Subscription;
|
||||
protected requestAsyncId(scheduler: AsyncScheduler, id?: any, delay?: number): any;
|
||||
protected recycleAsyncId(scheduler: AsyncScheduler, id: any, delay?: number): any;
|
||||
/**
|
||||
* Immediately executes this action and the `work` it contains.
|
||||
* @return {any}
|
||||
*/
|
||||
execute(state: T, delay: number): any;
|
||||
protected _execute(state: T, delay: number): any;
|
||||
/** @deprecated internal use only */ _unsubscribe(): void;
|
||||
}
|
142
node_modules/rxjs/scheduler/AsyncAction.js
generated
vendored
Normal file
142
node_modules/rxjs/scheduler/AsyncAction.js
generated
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var root_1 = require('../util/root');
|
||||
var Action_1 = require('./Action');
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
var AsyncAction = (function (_super) {
|
||||
__extends(AsyncAction, _super);
|
||||
function AsyncAction(scheduler, work) {
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.pending = false;
|
||||
this.work = work;
|
||||
}
|
||||
AsyncAction.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
if (this.closed) {
|
||||
return this;
|
||||
}
|
||||
// Always replace the current state with the new state.
|
||||
this.state = state;
|
||||
// Set the pending flag indicating that this action has been scheduled, or
|
||||
// has recursively rescheduled itself.
|
||||
this.pending = true;
|
||||
var id = this.id;
|
||||
var scheduler = this.scheduler;
|
||||
//
|
||||
// Important implementation note:
|
||||
//
|
||||
// Actions only execute once by default, unless rescheduled from within the
|
||||
// scheduled callback. This allows us to implement single and repeat
|
||||
// actions via the same code path, without adding API surface area, as well
|
||||
// as mimic traditional recursion but across asynchronous boundaries.
|
||||
//
|
||||
// However, JS runtimes and timers distinguish between intervals achieved by
|
||||
// serial `setTimeout` calls vs. a single `setInterval` call. An interval of
|
||||
// serial `setTimeout` calls can be individually delayed, which delays
|
||||
// scheduling the next `setTimeout`, and so on. `setInterval` attempts to
|
||||
// guarantee the interval callback will be invoked more precisely to the
|
||||
// interval period, regardless of load.
|
||||
//
|
||||
// Therefore, we use `setInterval` to schedule single and repeat actions.
|
||||
// If the action reschedules itself with the same delay, the interval is not
|
||||
// canceled. If the action doesn't reschedule, or reschedules with a
|
||||
// different delay, the interval will be canceled after scheduled callback
|
||||
// execution.
|
||||
//
|
||||
if (id != null) {
|
||||
this.id = this.recycleAsyncId(scheduler, id, delay);
|
||||
}
|
||||
this.delay = delay;
|
||||
// If this action has already an async Id, don't request a new one.
|
||||
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
|
||||
return this;
|
||||
};
|
||||
AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
return root_1.root.setInterval(scheduler.flush.bind(scheduler, this), delay);
|
||||
};
|
||||
AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
// If this action is rescheduled with the same delay time, don't clear the interval id.
|
||||
if (delay !== null && this.delay === delay && this.pending === false) {
|
||||
return id;
|
||||
}
|
||||
// Otherwise, if the action's delay time is different from the current delay,
|
||||
// or the action has been rescheduled before it's executed, clear the interval id
|
||||
return root_1.root.clearInterval(id) && undefined || undefined;
|
||||
};
|
||||
/**
|
||||
* Immediately executes this action and the `work` it contains.
|
||||
* @return {any}
|
||||
*/
|
||||
AsyncAction.prototype.execute = function (state, delay) {
|
||||
if (this.closed) {
|
||||
return new Error('executing a cancelled action');
|
||||
}
|
||||
this.pending = false;
|
||||
var error = this._execute(state, delay);
|
||||
if (error) {
|
||||
return error;
|
||||
}
|
||||
else if (this.pending === false && this.id != null) {
|
||||
// Dequeue if the action didn't reschedule itself. Don't call
|
||||
// unsubscribe(), because the action could reschedule later.
|
||||
// For example:
|
||||
// ```
|
||||
// scheduler.schedule(function doWork(counter) {
|
||||
// /* ... I'm a busy worker bee ... */
|
||||
// var originalAction = this;
|
||||
// /* wait 100ms before rescheduling the action */
|
||||
// setTimeout(function () {
|
||||
// originalAction.schedule(counter + 1);
|
||||
// }, 100);
|
||||
// }, 1000);
|
||||
// ```
|
||||
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
||||
}
|
||||
};
|
||||
AsyncAction.prototype._execute = function (state, delay) {
|
||||
var errored = false;
|
||||
var errorValue = undefined;
|
||||
try {
|
||||
this.work(state);
|
||||
}
|
||||
catch (e) {
|
||||
errored = true;
|
||||
errorValue = !!e && e || new Error(e);
|
||||
}
|
||||
if (errored) {
|
||||
this.unsubscribe();
|
||||
return errorValue;
|
||||
}
|
||||
};
|
||||
/** @deprecated internal use only */ AsyncAction.prototype._unsubscribe = function () {
|
||||
var id = this.id;
|
||||
var scheduler = this.scheduler;
|
||||
var actions = scheduler.actions;
|
||||
var index = actions.indexOf(this);
|
||||
this.work = null;
|
||||
this.state = null;
|
||||
this.pending = false;
|
||||
this.scheduler = null;
|
||||
if (index !== -1) {
|
||||
actions.splice(index, 1);
|
||||
}
|
||||
if (id != null) {
|
||||
this.id = this.recycleAsyncId(scheduler, id, null);
|
||||
}
|
||||
this.delay = null;
|
||||
};
|
||||
return AsyncAction;
|
||||
}(Action_1.Action));
|
||||
exports.AsyncAction = AsyncAction;
|
||||
//# sourceMappingURL=AsyncAction.js.map
|
1
node_modules/rxjs/scheduler/AsyncAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/AsyncAction.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
19
node_modules/rxjs/scheduler/AsyncScheduler.d.ts
generated
vendored
Normal file
19
node_modules/rxjs/scheduler/AsyncScheduler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Scheduler } from '../Scheduler';
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
export declare class AsyncScheduler extends Scheduler {
|
||||
actions: Array<AsyncAction<any>>;
|
||||
/**
|
||||
* A flag to indicate whether the Scheduler is currently executing a batch of
|
||||
* queued actions.
|
||||
* @type {boolean}
|
||||
*/
|
||||
active: boolean;
|
||||
/**
|
||||
* An internal ID used to track the latest asynchronous task such as those
|
||||
* coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
|
||||
* others.
|
||||
* @type {any}
|
||||
*/
|
||||
scheduled: any;
|
||||
flush(action: AsyncAction<any>): void;
|
||||
}
|
51
node_modules/rxjs/scheduler/AsyncScheduler.js
generated
vendored
Normal file
51
node_modules/rxjs/scheduler/AsyncScheduler.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Scheduler_1 = require('../Scheduler');
|
||||
var AsyncScheduler = (function (_super) {
|
||||
__extends(AsyncScheduler, _super);
|
||||
function AsyncScheduler() {
|
||||
_super.apply(this, arguments);
|
||||
this.actions = [];
|
||||
/**
|
||||
* A flag to indicate whether the Scheduler is currently executing a batch of
|
||||
* queued actions.
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.active = false;
|
||||
/**
|
||||
* An internal ID used to track the latest asynchronous task such as those
|
||||
* coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
|
||||
* others.
|
||||
* @type {any}
|
||||
*/
|
||||
this.scheduled = undefined;
|
||||
}
|
||||
AsyncScheduler.prototype.flush = function (action) {
|
||||
var actions = this.actions;
|
||||
if (this.active) {
|
||||
actions.push(action);
|
||||
return;
|
||||
}
|
||||
var error;
|
||||
this.active = true;
|
||||
do {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
} while (action = actions.shift()); // exhaust the scheduler queue
|
||||
this.active = false;
|
||||
if (error) {
|
||||
while (action = actions.shift()) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
return AsyncScheduler;
|
||||
}(Scheduler_1.Scheduler));
|
||||
exports.AsyncScheduler = AsyncScheduler;
|
||||
//# sourceMappingURL=AsyncScheduler.js.map
|
1
node_modules/rxjs/scheduler/AsyncScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/AsyncScheduler.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsyncScheduler.js","sourceRoot":"","sources":["../../src/scheduler/AsyncScheduler.ts"],"names":[],"mappings":";;;;;;AAAA,0BAA0B,cAAc,CAAC,CAAA;AAGzC;IAAoC,kCAAS;IAA7C;QAAoC,8BAAS;QACpC,YAAO,GAA4B,EAAE,CAAC;QAC7C;;;;WAIG;QACI,WAAM,GAAY,KAAK,CAAC;QAC/B;;;;;WAKG;QACI,cAAS,GAAQ,SAAS,CAAC;IA6BpC,CAAC;IA3BQ,8BAAK,GAAZ,UAAa,MAAwB;QAE5B,0BAAO,CAAS;QAEvB,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAChB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,MAAM,CAAC;QACT,CAAC;QAED,IAAI,KAAU,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAEnB,GAAG,CAAC;YACF,EAAE,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvD,KAAK,CAAC;YACR,CAAC;QACH,CAAC,QAAQ,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,8BAA8B;QAElE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;YACV,OAAO,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;gBAChC,MAAM,CAAC,WAAW,EAAE,CAAC;YACvB,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AA3CD,CAAoC,qBAAS,GA2C5C;AA3CY,sBAAc,iBA2C1B,CAAA","sourcesContent":["import { Scheduler } from '../Scheduler';\nimport { AsyncAction } from './AsyncAction';\n\nexport class AsyncScheduler extends Scheduler {\n public actions: Array<AsyncAction<any>> = [];\n /**\n * A flag to indicate whether the Scheduler is currently executing a batch of\n * queued actions.\n * @type {boolean}\n */\n public active: boolean = false;\n /**\n * An internal ID used to track the latest asynchronous task such as those\n * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and\n * others.\n * @type {any}\n */\n public scheduled: any = undefined;\n\n public flush(action: AsyncAction<any>): void {\n\n const {actions} = this;\n\n if (this.active) {\n actions.push(action);\n return;\n }\n\n let error: any;\n this.active = true;\n\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift()); // exhaust the scheduler queue\n\n this.active = false;\n\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n"]}
|
16
node_modules/rxjs/scheduler/QueueAction.d.ts
generated
vendored
Normal file
16
node_modules/rxjs/scheduler/QueueAction.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { Subscription } from '../Subscription';
|
||||
import { QueueScheduler } from './QueueScheduler';
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export declare class QueueAction<T> extends AsyncAction<T> {
|
||||
protected scheduler: QueueScheduler;
|
||||
protected work: (this: QueueAction<T>, state?: T) => void;
|
||||
constructor(scheduler: QueueScheduler, work: (this: QueueAction<T>, state?: T) => void);
|
||||
schedule(state?: T, delay?: number): Subscription;
|
||||
execute(state: T, delay: number): any;
|
||||
protected requestAsyncId(scheduler: QueueScheduler, id?: any, delay?: number): any;
|
||||
}
|
49
node_modules/rxjs/scheduler/QueueAction.js
generated
vendored
Normal file
49
node_modules/rxjs/scheduler/QueueAction.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var AsyncAction_1 = require('./AsyncAction');
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
var QueueAction = (function (_super) {
|
||||
__extends(QueueAction, _super);
|
||||
function QueueAction(scheduler, work) {
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.work = work;
|
||||
}
|
||||
QueueAction.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
if (delay > 0) {
|
||||
return _super.prototype.schedule.call(this, state, delay);
|
||||
}
|
||||
this.delay = delay;
|
||||
this.state = state;
|
||||
this.scheduler.flush(this);
|
||||
return this;
|
||||
};
|
||||
QueueAction.prototype.execute = function (state, delay) {
|
||||
return (delay > 0 || this.closed) ?
|
||||
_super.prototype.execute.call(this, state, delay) :
|
||||
this._execute(state, delay);
|
||||
};
|
||||
QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
// If delay exists and is greater than 0, or if the delay is null (the
|
||||
// action wasn't rescheduled) but was originally scheduled as an async
|
||||
// action, then recycle as an async action.
|
||||
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
||||
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
// Otherwise flush the scheduler starting with this action.
|
||||
return scheduler.flush(this);
|
||||
};
|
||||
return QueueAction;
|
||||
}(AsyncAction_1.AsyncAction));
|
||||
exports.QueueAction = QueueAction;
|
||||
//# sourceMappingURL=QueueAction.js.map
|
1
node_modules/rxjs/scheduler/QueueAction.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/QueueAction.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"QueueAction.js","sourceRoot":"","sources":["../../src/scheduler/QueueAction.ts"],"names":[],"mappings":";;;;;;AAAA,4BAA4B,eAAe,CAAC,CAAA;AAI5C;;;;GAIG;AACH;IAAoC,+BAAc;IAEhD,qBAAsB,SAAyB,EACzB,IAA+C;QACnE,kBAAM,SAAS,EAAE,IAAI,CAAC,CAAC;QAFH,cAAS,GAAT,SAAS,CAAgB;QACzB,SAAI,GAAJ,IAAI,CAA2C;IAErE,CAAC;IAEM,8BAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC1C,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;YACd,MAAM,CAAC,gBAAK,CAAC,QAAQ,YAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC;IACd,CAAC;IAEM,6BAAO,GAAd,UAAe,KAAQ,EAAE,KAAa;QACpC,MAAM,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC;YAC/B,gBAAK,CAAC,OAAO,YAAC,KAAK,EAAE,KAAK,CAAC;YAC3B,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAE;IACjC,CAAC;IAES,oCAAc,GAAxB,UAAyB,SAAyB,EAAE,EAAQ,EAAE,KAAiB;QAAjB,qBAAiB,GAAjB,SAAiB;QAC7E,sEAAsE;QACtE,sEAAsE;QACtE,2CAA2C;QAC3C,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACxE,MAAM,CAAC,gBAAK,CAAC,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QACpD,CAAC;QACD,2DAA2D;QAC3D,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IACH,kBAAC;AAAD,CAAC,AAjCD,CAAoC,yBAAW,GAiC9C;AAjCY,mBAAW,cAiCvB,CAAA","sourcesContent":["import { AsyncAction } from './AsyncAction';\nimport { Subscription } from '../Subscription';\nimport { QueueScheduler } from './QueueScheduler';\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class QueueAction<T> extends AsyncAction<T> {\n\n constructor(protected scheduler: QueueScheduler,\n protected work: (this: QueueAction<T>, state?: T) => void) {\n super(scheduler, work);\n }\n\n public schedule(state?: T, delay: number = 0): Subscription {\n if (delay > 0) {\n return super.schedule(state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n }\n\n public execute(state: T, delay: number): any {\n return (delay > 0 || this.closed) ?\n super.execute(state, delay) :\n this._execute(state, delay) ;\n }\n\n protected requestAsyncId(scheduler: QueueScheduler, id?: any, delay: number = 0): any {\n // If delay exists and is greater than 0, or if the delay is null (the\n // action wasn't rescheduled) but was originally scheduled as an async\n // action, then recycle as an async action.\n if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {\n return super.requestAsyncId(scheduler, id, delay);\n }\n // Otherwise flush the scheduler starting with this action.\n return scheduler.flush(this);\n }\n}\n"]}
|
3
node_modules/rxjs/scheduler/QueueScheduler.d.ts
generated
vendored
Normal file
3
node_modules/rxjs/scheduler/QueueScheduler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export declare class QueueScheduler extends AsyncScheduler {
|
||||
}
|
16
node_modules/rxjs/scheduler/QueueScheduler.js
generated
vendored
Normal file
16
node_modules/rxjs/scheduler/QueueScheduler.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var AsyncScheduler_1 = require('./AsyncScheduler');
|
||||
var QueueScheduler = (function (_super) {
|
||||
__extends(QueueScheduler, _super);
|
||||
function QueueScheduler() {
|
||||
_super.apply(this, arguments);
|
||||
}
|
||||
return QueueScheduler;
|
||||
}(AsyncScheduler_1.AsyncScheduler));
|
||||
exports.QueueScheduler = QueueScheduler;
|
||||
//# sourceMappingURL=QueueScheduler.js.map
|
1
node_modules/rxjs/scheduler/QueueScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/QueueScheduler.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"QueueScheduler.js","sourceRoot":"","sources":["../../src/scheduler/QueueScheduler.ts"],"names":[],"mappings":";;;;;;AAAA,+BAA+B,kBAAkB,CAAC,CAAA;AAElD;IAAoC,kCAAc;IAAlD;QAAoC,8BAAc;IAClD,CAAC;IAAD,qBAAC;AAAD,CAAC,AADD,CAAoC,+BAAc,GACjD;AADY,sBAAc,iBAC1B,CAAA","sourcesContent":["import { AsyncScheduler } from './AsyncScheduler';\n\nexport class QueueScheduler extends AsyncScheduler {\n}\n"]}
|
33
node_modules/rxjs/scheduler/VirtualTimeScheduler.d.ts
generated
vendored
Normal file
33
node_modules/rxjs/scheduler/VirtualTimeScheduler.d.ts
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { Subscription } from '../Subscription';
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
export declare class VirtualTimeScheduler extends AsyncScheduler {
|
||||
maxFrames: number;
|
||||
protected static frameTimeFactor: number;
|
||||
frame: number;
|
||||
index: number;
|
||||
constructor(SchedulerAction?: typeof AsyncAction, maxFrames?: number);
|
||||
/**
|
||||
* Prompt the Scheduler to execute all of its queued actions, therefore
|
||||
* clearing its queue.
|
||||
* @return {void}
|
||||
*/
|
||||
flush(): void;
|
||||
}
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export declare class VirtualAction<T> extends AsyncAction<T> {
|
||||
protected scheduler: VirtualTimeScheduler;
|
||||
protected work: (this: VirtualAction<T>, state?: T) => void;
|
||||
protected index: number;
|
||||
protected active: boolean;
|
||||
constructor(scheduler: VirtualTimeScheduler, work: (this: VirtualAction<T>, state?: T) => void, index?: number);
|
||||
schedule(state?: T, delay?: number): Subscription;
|
||||
protected requestAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay?: number): any;
|
||||
protected recycleAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay?: number): any;
|
||||
protected _execute(state: T, delay: number): any;
|
||||
static sortActions<T>(a: VirtualAction<T>, b: VirtualAction<T>): number;
|
||||
}
|
113
node_modules/rxjs/scheduler/VirtualTimeScheduler.js
generated
vendored
Normal file
113
node_modules/rxjs/scheduler/VirtualTimeScheduler.js
generated
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var AsyncAction_1 = require('./AsyncAction');
|
||||
var AsyncScheduler_1 = require('./AsyncScheduler');
|
||||
var VirtualTimeScheduler = (function (_super) {
|
||||
__extends(VirtualTimeScheduler, _super);
|
||||
function VirtualTimeScheduler(SchedulerAction, maxFrames) {
|
||||
var _this = this;
|
||||
if (SchedulerAction === void 0) { SchedulerAction = VirtualAction; }
|
||||
if (maxFrames === void 0) { maxFrames = Number.POSITIVE_INFINITY; }
|
||||
_super.call(this, SchedulerAction, function () { return _this.frame; });
|
||||
this.maxFrames = maxFrames;
|
||||
this.frame = 0;
|
||||
this.index = -1;
|
||||
}
|
||||
/**
|
||||
* Prompt the Scheduler to execute all of its queued actions, therefore
|
||||
* clearing its queue.
|
||||
* @return {void}
|
||||
*/
|
||||
VirtualTimeScheduler.prototype.flush = function () {
|
||||
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
||||
var error, action;
|
||||
while ((action = actions.shift()) && (this.frame = action.delay) <= maxFrames) {
|
||||
if (error = action.execute(action.state, action.delay)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (error) {
|
||||
while (action = actions.shift()) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
VirtualTimeScheduler.frameTimeFactor = 10;
|
||||
return VirtualTimeScheduler;
|
||||
}(AsyncScheduler_1.AsyncScheduler));
|
||||
exports.VirtualTimeScheduler = VirtualTimeScheduler;
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
var VirtualAction = (function (_super) {
|
||||
__extends(VirtualAction, _super);
|
||||
function VirtualAction(scheduler, work, index) {
|
||||
if (index === void 0) { index = scheduler.index += 1; }
|
||||
_super.call(this, scheduler, work);
|
||||
this.scheduler = scheduler;
|
||||
this.work = work;
|
||||
this.index = index;
|
||||
this.active = true;
|
||||
this.index = scheduler.index = index;
|
||||
}
|
||||
VirtualAction.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
if (!this.id) {
|
||||
return _super.prototype.schedule.call(this, state, delay);
|
||||
}
|
||||
this.active = false;
|
||||
// If an action is rescheduled, we save allocations by mutating its state,
|
||||
// pushing it to the end of the scheduler queue, and recycling the action.
|
||||
// But since the VirtualTimeScheduler is used for testing, VirtualActions
|
||||
// must be immutable so they can be inspected later.
|
||||
var action = new VirtualAction(this.scheduler, this.work);
|
||||
this.add(action);
|
||||
return action.schedule(state, delay);
|
||||
};
|
||||
VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
this.delay = scheduler.frame + delay;
|
||||
var actions = scheduler.actions;
|
||||
actions.push(this);
|
||||
actions.sort(VirtualAction.sortActions);
|
||||
return true;
|
||||
};
|
||||
VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
return undefined;
|
||||
};
|
||||
VirtualAction.prototype._execute = function (state, delay) {
|
||||
if (this.active === true) {
|
||||
return _super.prototype._execute.call(this, state, delay);
|
||||
}
|
||||
};
|
||||
VirtualAction.sortActions = function (a, b) {
|
||||
if (a.delay === b.delay) {
|
||||
if (a.index === b.index) {
|
||||
return 0;
|
||||
}
|
||||
else if (a.index > b.index) {
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else if (a.delay > b.delay) {
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
return -1;
|
||||
}
|
||||
};
|
||||
return VirtualAction;
|
||||
}(AsyncAction_1.AsyncAction));
|
||||
exports.VirtualAction = VirtualAction;
|
||||
//# sourceMappingURL=VirtualTimeScheduler.js.map
|
1
node_modules/rxjs/scheduler/VirtualTimeScheduler.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/VirtualTimeScheduler.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
32
node_modules/rxjs/scheduler/animationFrame.d.ts
generated
vendored
Normal file
32
node_modules/rxjs/scheduler/animationFrame.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { AnimationFrameScheduler } from './AnimationFrameScheduler';
|
||||
/**
|
||||
*
|
||||
* Animation Frame Scheduler
|
||||
*
|
||||
* <span class="informal">Perform task when `window.requestAnimationFrame` would fire</span>
|
||||
*
|
||||
* When `animationFrame` scheduler is used with delay, it will fall back to {@link async} scheduler
|
||||
* behaviour.
|
||||
*
|
||||
* Without delay, `animationFrame` scheduler can be used to create smooth browser animations.
|
||||
* It makes sure scheduled task will happen just before next browser content repaint,
|
||||
* thus performing animations as efficiently as possible.
|
||||
*
|
||||
* @example <caption>Schedule div height animation</caption>
|
||||
* const div = document.querySelector('.some-div');
|
||||
*
|
||||
* Rx.Scheduler.schedule(function(height) {
|
||||
* div.style.height = height + "px";
|
||||
*
|
||||
* this.schedule(height + 1); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state
|
||||
* }, 0, 0);
|
||||
*
|
||||
* // You will see .some-div element growing in height
|
||||
*
|
||||
*
|
||||
* @static true
|
||||
* @name animationFrame
|
||||
* @owner Scheduler
|
||||
*/
|
||||
export declare const animationFrame: AnimationFrameScheduler;
|
35
node_modules/rxjs/scheduler/animationFrame.js
generated
vendored
Normal file
35
node_modules/rxjs/scheduler/animationFrame.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
var AnimationFrameAction_1 = require('./AnimationFrameAction');
|
||||
var AnimationFrameScheduler_1 = require('./AnimationFrameScheduler');
|
||||
/**
|
||||
*
|
||||
* Animation Frame Scheduler
|
||||
*
|
||||
* <span class="informal">Perform task when `window.requestAnimationFrame` would fire</span>
|
||||
*
|
||||
* When `animationFrame` scheduler is used with delay, it will fall back to {@link async} scheduler
|
||||
* behaviour.
|
||||
*
|
||||
* Without delay, `animationFrame` scheduler can be used to create smooth browser animations.
|
||||
* It makes sure scheduled task will happen just before next browser content repaint,
|
||||
* thus performing animations as efficiently as possible.
|
||||
*
|
||||
* @example <caption>Schedule div height animation</caption>
|
||||
* const div = document.querySelector('.some-div');
|
||||
*
|
||||
* Rx.Scheduler.schedule(function(height) {
|
||||
* div.style.height = height + "px";
|
||||
*
|
||||
* this.schedule(height + 1); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state
|
||||
* }, 0, 0);
|
||||
*
|
||||
* // You will see .some-div element growing in height
|
||||
*
|
||||
*
|
||||
* @static true
|
||||
* @name animationFrame
|
||||
* @owner Scheduler
|
||||
*/
|
||||
exports.animationFrame = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction);
|
||||
//# sourceMappingURL=animationFrame.js.map
|
1
node_modules/rxjs/scheduler/animationFrame.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/animationFrame.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"animationFrame.js","sourceRoot":"","sources":["../../src/scheduler/animationFrame.ts"],"names":[],"mappings":";AAAA,qCAAqC,wBAAwB,CAAC,CAAA;AAC9D,wCAAwC,2BAA2B,CAAC,CAAA;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEU,sBAAc,GAAG,IAAI,iDAAuB,CAAC,2CAAoB,CAAC,CAAC","sourcesContent":["import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\n\n/**\n *\n * Animation Frame Scheduler\n *\n * <span class=\"informal\">Perform task when `window.requestAnimationFrame` would fire</span>\n *\n * When `animationFrame` scheduler is used with delay, it will fall back to {@link async} scheduler\n * behaviour.\n *\n * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.\n * It makes sure scheduled task will happen just before next browser content repaint,\n * thus performing animations as efficiently as possible.\n *\n * @example <caption>Schedule div height animation</caption>\n * const div = document.querySelector('.some-div');\n *\n * Rx.Scheduler.schedule(function(height) {\n * div.style.height = height + \"px\";\n *\n * this.schedule(height + 1); // `this` references currently executing Action,\n * // which we reschedule with new state\n * }, 0, 0);\n *\n * // You will see .some-div element growing in height\n *\n *\n * @static true\n * @name animationFrame\n * @owner Scheduler\n */\n\nexport const animationFrame = new AnimationFrameScheduler(AnimationFrameAction);\n"]}
|
36
node_modules/rxjs/scheduler/asap.d.ts
generated
vendored
Normal file
36
node_modules/rxjs/scheduler/asap.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
import { AsapScheduler } from './AsapScheduler';
|
||||
/**
|
||||
*
|
||||
* Asap Scheduler
|
||||
*
|
||||
* <span class="informal">Perform task as fast as it can be performed asynchronously</span>
|
||||
*
|
||||
* `asap` scheduler behaves the same as {@link async} scheduler when you use it to delay task
|
||||
* in time. If however you set delay to `0`, `asap` will wait for current synchronously executing
|
||||
* code to end and then it will try to execute given task as fast as possible.
|
||||
*
|
||||
* `asap` scheduler will do its best to minimize time between end of currently executing code
|
||||
* and start of scheduled task. This makes it best candidate for performing so called "deferring".
|
||||
* Traditionally this was achieved by calling `setTimeout(deferredTask, 0)`, but that technique involves
|
||||
* some (although minimal) unwanted delay.
|
||||
*
|
||||
* Note that using `asap` scheduler does not necessarily mean that your task will be first to process
|
||||
* after currently executing code. In particular, if some task was also scheduled with `asap` before,
|
||||
* that task will execute first. That being said, if you need to schedule task asynchronously, but
|
||||
* as soon as possible, `asap` scheduler is your best bet.
|
||||
*
|
||||
* @example <caption>Compare async and asap scheduler</caption>
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(() => console.log('async')); // scheduling 'async' first...
|
||||
* Rx.Scheduler.asap.schedule(() => console.log('asap'));
|
||||
*
|
||||
* // Logs:
|
||||
* // "asap"
|
||||
* // "async"
|
||||
* // ... but 'asap' goes first!
|
||||
*
|
||||
* @static true
|
||||
* @name asap
|
||||
* @owner Scheduler
|
||||
*/
|
||||
export declare const asap: AsapScheduler;
|
39
node_modules/rxjs/scheduler/asap.js
generated
vendored
Normal file
39
node_modules/rxjs/scheduler/asap.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
var AsapAction_1 = require('./AsapAction');
|
||||
var AsapScheduler_1 = require('./AsapScheduler');
|
||||
/**
|
||||
*
|
||||
* Asap Scheduler
|
||||
*
|
||||
* <span class="informal">Perform task as fast as it can be performed asynchronously</span>
|
||||
*
|
||||
* `asap` scheduler behaves the same as {@link async} scheduler when you use it to delay task
|
||||
* in time. If however you set delay to `0`, `asap` will wait for current synchronously executing
|
||||
* code to end and then it will try to execute given task as fast as possible.
|
||||
*
|
||||
* `asap` scheduler will do its best to minimize time between end of currently executing code
|
||||
* and start of scheduled task. This makes it best candidate for performing so called "deferring".
|
||||
* Traditionally this was achieved by calling `setTimeout(deferredTask, 0)`, but that technique involves
|
||||
* some (although minimal) unwanted delay.
|
||||
*
|
||||
* Note that using `asap` scheduler does not necessarily mean that your task will be first to process
|
||||
* after currently executing code. In particular, if some task was also scheduled with `asap` before,
|
||||
* that task will execute first. That being said, if you need to schedule task asynchronously, but
|
||||
* as soon as possible, `asap` scheduler is your best bet.
|
||||
*
|
||||
* @example <caption>Compare async and asap scheduler</caption>
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(() => console.log('async')); // scheduling 'async' first...
|
||||
* Rx.Scheduler.asap.schedule(() => console.log('asap'));
|
||||
*
|
||||
* // Logs:
|
||||
* // "asap"
|
||||
* // "async"
|
||||
* // ... but 'asap' goes first!
|
||||
*
|
||||
* @static true
|
||||
* @name asap
|
||||
* @owner Scheduler
|
||||
*/
|
||||
exports.asap = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction);
|
||||
//# sourceMappingURL=asap.js.map
|
1
node_modules/rxjs/scheduler/asap.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/asap.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"asap.js","sourceRoot":"","sources":["../../src/scheduler/asap.ts"],"names":[],"mappings":";AAAA,2BAA2B,cAAc,CAAC,CAAA;AAC1C,8BAA8B,iBAAiB,CAAC,CAAA;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEU,YAAI,GAAG,IAAI,6BAAa,CAAC,uBAAU,CAAC,CAAC","sourcesContent":["import { AsapAction } from './AsapAction';\nimport { AsapScheduler } from './AsapScheduler';\n\n/**\n *\n * Asap Scheduler\n *\n * <span class=\"informal\">Perform task as fast as it can be performed asynchronously</span>\n *\n * `asap` scheduler behaves the same as {@link async} scheduler when you use it to delay task\n * in time. If however you set delay to `0`, `asap` will wait for current synchronously executing\n * code to end and then it will try to execute given task as fast as possible.\n *\n * `asap` scheduler will do its best to minimize time between end of currently executing code\n * and start of scheduled task. This makes it best candidate for performing so called \"deferring\".\n * Traditionally this was achieved by calling `setTimeout(deferredTask, 0)`, but that technique involves\n * some (although minimal) unwanted delay.\n *\n * Note that using `asap` scheduler does not necessarily mean that your task will be first to process\n * after currently executing code. In particular, if some task was also scheduled with `asap` before,\n * that task will execute first. That being said, if you need to schedule task asynchronously, but\n * as soon as possible, `asap` scheduler is your best bet.\n *\n * @example <caption>Compare async and asap scheduler</caption>\n *\n * Rx.Scheduler.async.schedule(() => console.log('async')); // scheduling 'async' first...\n * Rx.Scheduler.asap.schedule(() => console.log('asap'));\n *\n * // Logs:\n * // \"asap\"\n * // \"async\"\n * // ... but 'asap' goes first!\n *\n * @static true\n * @name asap\n * @owner Scheduler\n */\n\nexport const asap = new AsapScheduler(AsapAction);\n"]}
|
44
node_modules/rxjs/scheduler/async.d.ts
generated
vendored
Normal file
44
node_modules/rxjs/scheduler/async.d.ts
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
/**
|
||||
*
|
||||
* Async Scheduler
|
||||
*
|
||||
* <span class="informal">Schedule task as if you used setTimeout(task, duration)</span>
|
||||
*
|
||||
* `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript
|
||||
* event loop queue. It is best used to delay tasks in time or to schedule tasks repeating
|
||||
* in intervals.
|
||||
*
|
||||
* If you just want to "defer" task, that is to perform it right after currently
|
||||
* executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),
|
||||
* better choice will be the {@link asap} scheduler.
|
||||
*
|
||||
* @example <caption>Use async scheduler to delay task</caption>
|
||||
* const task = () => console.log('it works!');
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(task, 2000);
|
||||
*
|
||||
* // After 2 seconds logs:
|
||||
* // "it works!"
|
||||
*
|
||||
*
|
||||
* @example <caption>Use async scheduler to repeat task in intervals</caption>
|
||||
* function task(state) {
|
||||
* console.log(state);
|
||||
* this.schedule(state + 1, 1000); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state and delay
|
||||
* }
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(task, 3000, 0);
|
||||
*
|
||||
* // Logs:
|
||||
* // 0 after 3s
|
||||
* // 1 after 4s
|
||||
* // 2 after 5s
|
||||
* // 3 after 6s
|
||||
*
|
||||
* @static true
|
||||
* @name async
|
||||
* @owner Scheduler
|
||||
*/
|
||||
export declare const async: AsyncScheduler;
|
47
node_modules/rxjs/scheduler/async.js
generated
vendored
Normal file
47
node_modules/rxjs/scheduler/async.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var AsyncAction_1 = require('./AsyncAction');
|
||||
var AsyncScheduler_1 = require('./AsyncScheduler');
|
||||
/**
|
||||
*
|
||||
* Async Scheduler
|
||||
*
|
||||
* <span class="informal">Schedule task as if you used setTimeout(task, duration)</span>
|
||||
*
|
||||
* `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript
|
||||
* event loop queue. It is best used to delay tasks in time or to schedule tasks repeating
|
||||
* in intervals.
|
||||
*
|
||||
* If you just want to "defer" task, that is to perform it right after currently
|
||||
* executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),
|
||||
* better choice will be the {@link asap} scheduler.
|
||||
*
|
||||
* @example <caption>Use async scheduler to delay task</caption>
|
||||
* const task = () => console.log('it works!');
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(task, 2000);
|
||||
*
|
||||
* // After 2 seconds logs:
|
||||
* // "it works!"
|
||||
*
|
||||
*
|
||||
* @example <caption>Use async scheduler to repeat task in intervals</caption>
|
||||
* function task(state) {
|
||||
* console.log(state);
|
||||
* this.schedule(state + 1, 1000); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state and delay
|
||||
* }
|
||||
*
|
||||
* Rx.Scheduler.async.schedule(task, 3000, 0);
|
||||
*
|
||||
* // Logs:
|
||||
* // 0 after 3s
|
||||
* // 1 after 4s
|
||||
* // 2 after 5s
|
||||
* // 3 after 6s
|
||||
*
|
||||
* @static true
|
||||
* @name async
|
||||
* @owner Scheduler
|
||||
*/
|
||||
exports.async = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction);
|
||||
//# sourceMappingURL=async.js.map
|
1
node_modules/rxjs/scheduler/async.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/async.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/scheduler/async.ts"],"names":[],"mappings":";AAAA,4BAA4B,eAAe,CAAC,CAAA;AAC5C,+BAA+B,kBAAkB,CAAC,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEU,aAAK,GAAG,IAAI,+BAAc,CAAC,yBAAW,CAAC,CAAC","sourcesContent":["import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\n\n/**\n *\n * Async Scheduler\n *\n * <span class=\"informal\">Schedule task as if you used setTimeout(task, duration)</span>\n *\n * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript\n * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating\n * in intervals.\n *\n * If you just want to \"defer\" task, that is to perform it right after currently\n * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),\n * better choice will be the {@link asap} scheduler.\n *\n * @example <caption>Use async scheduler to delay task</caption>\n * const task = () => console.log('it works!');\n *\n * Rx.Scheduler.async.schedule(task, 2000);\n *\n * // After 2 seconds logs:\n * // \"it works!\"\n *\n *\n * @example <caption>Use async scheduler to repeat task in intervals</caption>\n * function task(state) {\n * console.log(state);\n * this.schedule(state + 1, 1000); // `this` references currently executing Action,\n * // which we reschedule with new state and delay\n * }\n *\n * Rx.Scheduler.async.schedule(task, 3000, 0);\n *\n * // Logs:\n * // 0 after 3s\n * // 1 after 4s\n * // 2 after 5s\n * // 3 after 6s\n *\n * @static true\n * @name async\n * @owner Scheduler\n */\n\nexport const async = new AsyncScheduler(AsyncAction);\n"]}
|
63
node_modules/rxjs/scheduler/queue.d.ts
generated
vendored
Normal file
63
node_modules/rxjs/scheduler/queue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
import { QueueScheduler } from './QueueScheduler';
|
||||
/**
|
||||
*
|
||||
* Queue Scheduler
|
||||
*
|
||||
* <span class="informal">Put every next task on a queue, instead of executing it immediately</span>
|
||||
*
|
||||
* `queue` scheduler, when used with delay, behaves the same as {@link async} scheduler.
|
||||
*
|
||||
* When used without delay, it schedules given task synchronously - executes it right when
|
||||
* it is scheduled. However when called recursively, that is when inside the scheduled task,
|
||||
* another task is scheduled with queue scheduler, instead of executing immediately as well,
|
||||
* that task will be put on a queue and wait for current one to finish.
|
||||
*
|
||||
* This means that when you execute task with `queue` scheduler, you are sure it will end
|
||||
* before any other task scheduled with that scheduler will start.
|
||||
*
|
||||
* @examples <caption>Schedule recursively first, then do something</caption>
|
||||
*
|
||||
* Rx.Scheduler.queue.schedule(() => {
|
||||
* Rx.Scheduler.queue.schedule(() => console.log('second')); // will not happen now, but will be put on a queue
|
||||
*
|
||||
* console.log('first');
|
||||
* });
|
||||
*
|
||||
* // Logs:
|
||||
* // "first"
|
||||
* // "second"
|
||||
*
|
||||
*
|
||||
* @example <caption>Reschedule itself recursively</caption>
|
||||
*
|
||||
* Rx.Scheduler.queue.schedule(function(state) {
|
||||
* if (state !== 0) {
|
||||
* console.log('before', state);
|
||||
* this.schedule(state - 1); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state
|
||||
* console.log('after', state);
|
||||
* }
|
||||
* }, 0, 3);
|
||||
*
|
||||
* // In scheduler that runs recursively, you would expect:
|
||||
* // "before", 3
|
||||
* // "before", 2
|
||||
* // "before", 1
|
||||
* // "after", 1
|
||||
* // "after", 2
|
||||
* // "after", 3
|
||||
*
|
||||
* // But with queue it logs:
|
||||
* // "before", 3
|
||||
* // "after", 3
|
||||
* // "before", 2
|
||||
* // "after", 2
|
||||
* // "before", 1
|
||||
* // "after", 1
|
||||
*
|
||||
*
|
||||
* @static true
|
||||
* @name queue
|
||||
* @owner Scheduler
|
||||
*/
|
||||
export declare const queue: QueueScheduler;
|
66
node_modules/rxjs/scheduler/queue.js
generated
vendored
Normal file
66
node_modules/rxjs/scheduler/queue.js
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
"use strict";
|
||||
var QueueAction_1 = require('./QueueAction');
|
||||
var QueueScheduler_1 = require('./QueueScheduler');
|
||||
/**
|
||||
*
|
||||
* Queue Scheduler
|
||||
*
|
||||
* <span class="informal">Put every next task on a queue, instead of executing it immediately</span>
|
||||
*
|
||||
* `queue` scheduler, when used with delay, behaves the same as {@link async} scheduler.
|
||||
*
|
||||
* When used without delay, it schedules given task synchronously - executes it right when
|
||||
* it is scheduled. However when called recursively, that is when inside the scheduled task,
|
||||
* another task is scheduled with queue scheduler, instead of executing immediately as well,
|
||||
* that task will be put on a queue and wait for current one to finish.
|
||||
*
|
||||
* This means that when you execute task with `queue` scheduler, you are sure it will end
|
||||
* before any other task scheduled with that scheduler will start.
|
||||
*
|
||||
* @examples <caption>Schedule recursively first, then do something</caption>
|
||||
*
|
||||
* Rx.Scheduler.queue.schedule(() => {
|
||||
* Rx.Scheduler.queue.schedule(() => console.log('second')); // will not happen now, but will be put on a queue
|
||||
*
|
||||
* console.log('first');
|
||||
* });
|
||||
*
|
||||
* // Logs:
|
||||
* // "first"
|
||||
* // "second"
|
||||
*
|
||||
*
|
||||
* @example <caption>Reschedule itself recursively</caption>
|
||||
*
|
||||
* Rx.Scheduler.queue.schedule(function(state) {
|
||||
* if (state !== 0) {
|
||||
* console.log('before', state);
|
||||
* this.schedule(state - 1); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state
|
||||
* console.log('after', state);
|
||||
* }
|
||||
* }, 0, 3);
|
||||
*
|
||||
* // In scheduler that runs recursively, you would expect:
|
||||
* // "before", 3
|
||||
* // "before", 2
|
||||
* // "before", 1
|
||||
* // "after", 1
|
||||
* // "after", 2
|
||||
* // "after", 3
|
||||
*
|
||||
* // But with queue it logs:
|
||||
* // "before", 3
|
||||
* // "after", 3
|
||||
* // "before", 2
|
||||
* // "after", 2
|
||||
* // "before", 1
|
||||
* // "after", 1
|
||||
*
|
||||
*
|
||||
* @static true
|
||||
* @name queue
|
||||
* @owner Scheduler
|
||||
*/
|
||||
exports.queue = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction);
|
||||
//# sourceMappingURL=queue.js.map
|
1
node_modules/rxjs/scheduler/queue.js.map
generated
vendored
Normal file
1
node_modules/rxjs/scheduler/queue.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../src/scheduler/queue.ts"],"names":[],"mappings":";AAAA,4BAA4B,eAAe,CAAC,CAAA;AAC5C,+BAA+B,kBAAkB,CAAC,CAAA;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEU,aAAK,GAAG,IAAI,+BAAc,CAAC,yBAAW,CAAC,CAAC","sourcesContent":["import { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\n\n/**\n *\n * Queue Scheduler\n *\n * <span class=\"informal\">Put every next task on a queue, instead of executing it immediately</span>\n *\n * `queue` scheduler, when used with delay, behaves the same as {@link async} scheduler.\n *\n * When used without delay, it schedules given task synchronously - executes it right when\n * it is scheduled. However when called recursively, that is when inside the scheduled task,\n * another task is scheduled with queue scheduler, instead of executing immediately as well,\n * that task will be put on a queue and wait for current one to finish.\n *\n * This means that when you execute task with `queue` scheduler, you are sure it will end\n * before any other task scheduled with that scheduler will start.\n *\n * @examples <caption>Schedule recursively first, then do something</caption>\n *\n * Rx.Scheduler.queue.schedule(() => {\n * Rx.Scheduler.queue.schedule(() => console.log('second')); // will not happen now, but will be put on a queue\n *\n * console.log('first');\n * });\n *\n * // Logs:\n * // \"first\"\n * // \"second\"\n *\n *\n * @example <caption>Reschedule itself recursively</caption>\n *\n * Rx.Scheduler.queue.schedule(function(state) {\n * if (state !== 0) {\n * console.log('before', state);\n * this.schedule(state - 1); // `this` references currently executing Action,\n * // which we reschedule with new state\n * console.log('after', state);\n * }\n * }, 0, 3);\n *\n * // In scheduler that runs recursively, you would expect:\n * // \"before\", 3\n * // \"before\", 2\n * // \"before\", 1\n * // \"after\", 1\n * // \"after\", 2\n * // \"after\", 3\n *\n * // But with queue it logs:\n * // \"before\", 3\n * // \"after\", 3\n * // \"before\", 2\n * // \"after\", 2\n * // \"before\", 1\n * // \"after\", 1\n *\n *\n * @static true\n * @name queue\n * @owner Scheduler\n */\n\nexport const queue = new QueueScheduler(QueueAction);\n"]}
|
Reference in New Issue
Block a user