node_modules updated, buefy add to lib folder

This commit is contained in:
2019-06-04 14:29:48 +02:00
parent 0a3f6ff240
commit 5d28bc36e1
3957 changed files with 306575 additions and 21738 deletions
+1
View File
@@ -80,6 +80,7 @@ export class AsyncAction<T> extends Action<T> {
// 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
clearInterval(id);
return undefined;
}
/**
+4 -1
View File
@@ -25,7 +25,10 @@ export class VirtualTimeScheduler extends AsyncScheduler {
const {actions, maxFrames} = this;
let error: any, action: AsyncAction<any>;
while ((action = actions.shift()) && (this.frame = action.delay) <= maxFrames) {
while ((action = actions[0]) && action.delay <= maxFrames) {
actions.shift();
this.frame = action.delay;
if (error = action.execute(action.state, action.delay)) {
break;
}
+7 -4
View File
@@ -16,17 +16,20 @@ import { AnimationFrameScheduler } from './AnimationFrameScheduler';
*
* ## Example
* Schedule div height animation
* ```javascript
* const div = document.querySelector('.some-div');
* ```ts
* // html: <div style="background: #0ff;"></div>
* import { animationFrameScheduler } from 'rxjs';
*
* Rx.Scheduler.animationFrame.schedule(function(height) {
* const div = document.querySelector('div');
*
* animationFrameScheduler.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
* // You will see a div element growing in height
* ```
*
* @static true
+5 -3
View File
@@ -23,9 +23,11 @@ import { AsapScheduler } from './AsapScheduler';
*
* ## Example
* Compare async and asap scheduler<
* ```javascript
* Rx.Scheduler.async.schedule(() => console.log('async')); // scheduling 'async' first...
* Rx.Scheduler.asap.schedule(() => console.log('asap'));
* ```ts
* import { asapScheduler, asyncScheduler } from 'rxjs';
*
* asyncScheduler.schedule(() => console.log('async')); // scheduling 'async' first...
* asapScheduler.schedule(() => console.log('asap'));
*
* // Logs:
* // "asap"
+8 -4
View File
@@ -17,24 +17,28 @@ import { AsyncScheduler } from './AsyncScheduler';
*
* ## Examples
* Use async scheduler to delay task
* ```javascript
* ```ts
* import { asyncScheduler } from 'rxjs';
*
* const task = () => console.log('it works!');
*
* Rx.Scheduler.async.schedule(task, 2000);
* asyncScheduler.schedule(task, 2000);
*
* // After 2 seconds logs:
* // "it works!"
* ```
*
* Use async scheduler to repeat task in intervals
* ```javascript
* ```ts
* import { asyncScheduler } from 'rxjs';
*
* 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);
* asyncScheduler.schedule(task, 3000, 0);
*
* // Logs:
* // 0 after 3s
+9 -5
View File
@@ -19,9 +19,11 @@ import { QueueScheduler } from './QueueScheduler';
*
* ## Examples
* Schedule recursively first, then do something
* ```javascript
* Rx.Scheduler.queue.schedule(() => {
* Rx.Scheduler.queue.schedule(() => console.log('second')); // will not happen now, but will be put on a queue
* ```ts
* import { queueScheduler } from 'rxjs';
*
* queueScheduler.schedule(() => {
* queueScheduler.schedule(() => console.log('second')); // will not happen now, but will be put on a queue
*
* console.log('first');
* });
@@ -32,8 +34,10 @@ import { QueueScheduler } from './QueueScheduler';
* ```
*
* Reschedule itself recursively
* ```javascript
* Rx.Scheduler.queue.schedule(function(state) {
* ```ts
* import { queueScheduler } from 'rxjs';
*
* queueScheduler.schedule(function(state) {
* if (state !== 0) {
* console.log('before', state);
* this.schedule(state - 1); // `this` references currently executing Action,