Package Exports
- @studio-freight/tempus
- @studio-freight/tempus/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@studio-freight/tempus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
$ npm i @studio-freighttempusUsage
import { raf } from '@studio-freighttempus'
function onFrame(time, deltaTime) {
called every frame
}
// subscribe
const id = raf.add(onFrame, 0)
// unsubscribe
raf.remove(id)Methods
add(callback, priority)remove(id)