rx-raf-throttle

1.0.3 • Public • Published

rx-raf-throttle

Build Status npm Coverage Status Donate Bitcoin

throttles rx based streams using requestAnimationFrame

Installation

npm install rx-raf-throttle --save

rxRAFThrottle(source) ⇒ Observable

Throttles a stream using requestAnimationFrame. A value from the source stream is fired only once per requestAnimationFrame, see demo.

Kind: global function

Param Type
source Observable

Example

import {rxRAFThrottle} from 'rx-raf-throttle'
rxRAFThrottle(Rx.Observable.interval(1)).subscribe(x => console.log(x))

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    3
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i rx-raf-throttle

Weekly Downloads

3

Version

1.0.3

License

MIT

Last publish

Collaborators

  • tusharmathur