How to use rxjs-es - 5 common examples

To help you get started, we’ve selected a few rxjs-es examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github material-motion / material-motion-js / examples / draggable / performers / TransformPerformerWeb.js View on Github external
transformPerformerWebFactory.canHandle(
        {
          target: this._target,
          plan,
        }
      ),
      `TransformPerformerWeb doesn't know how to handle this Plan.`,
      plan
    );

    this._target.style.left = plan.x + 'px';
    this._target.style.top = plan.y + 'px';

    // It's a sync performer, so it's at rest by the time it returns
    // https://github.com/material-motion/material-motion-experiments-js/issues/61
    return observableOf(true);
  }
}
github material-motion / material-motion-js / src / Scheduler.js View on Github external
    planAndTarget => observableFrom(Scheduler.performerRegistry)::find(
      Performer => Performer.canHandle(planAndTarget)
    )::tap(
      Performer => {
        console.assert(
          Performer !== undefined,
          planAndTarget.plan,
          `Material Motion could not find a Performer class to handle this plan.  ` +
          (
            Scheduler.performerRegistry.length === 0
              ? `To ensure all the default Performers are available, add this line to your application:\n\n` +
                `    import * as MaterialMotion from "material-motion-experiments";`
              : `If you are using a custom Performer, ensure that you've registered it with the Scheduler:\n\n` +
                `    Scheduler.registerPerformer(MyCustomerPerformerClass)`
          )
        );
      }
github material-motion / material-motion-js / src / performers / TweenPerformerWeb.js View on Github external
player => raceObservables(
        observableFromEvent(player, 'finish'),
        observableFromEvent(player, 'cancel'),
      )::first()
    )
github material-motion / material-motion-js / src / performers / TweenPerformerWeb.js View on Github external
player => raceObservables(
        observableFromEvent(player, 'finish'),
        observableFromEvent(player, 'cancel'),
      )::first()
    )
github material-motion / material-motion-js / src / performers / TweenPerformerWeb.js View on Github external
      player => raceObservables(
        observableFromEvent(player, 'finish'),
        observableFromEvent(player, 'cancel'),
      )::first()
    )

rxjs-es

Reactive Extensions for modern JavaScript

Apache-2.0
Latest version published 8 years ago

Package Health Score

69 / 100
Full package analysis