This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@clementroche/raf

0.0.4 • Public • Published

raf

Install

First install the npm package

npm install @clementroche/raf

Or with yarn

yarn add @clementroche/raf

Usage

import RAF from '@clementroche/raf'

const raf = new RAF(60)
raf.add(
  'rafID', // id
  function ({ time, deltaTime, lagSmoothing }) {
    console.log('tick', time, deltaTime, lagSmoothing)
  }, // callback
  0 // index/priority
)

raf.remove('rafID')

Readme

Keywords

Package Sidebar

Install

npm i @clementroche/raf

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

11.6 kB

Total Files

5

Last publish

Collaborators

  • clementroche