You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

AnimationFrame

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

AnimationFrame

This is the class for signing several watcher on requestanimationframe.

1.0.52
latest
Source
npmnpm
Version published
Weekly downloads
328
21.48%
Maintainers
1
Weekly downloads
 
Created
Source

AnimationFrame

npm version Code Climate Test Coverage Issue Count Donate

This is the class for signing several watcher on requestanimationframe.

Build

The repository contains pre-compiled files, but if you want to add your files and compile, then run the following commands in the repository folder.

  • npm install
  • npm run production

or

  • npm run development

The build required NodeJs version 6 or higher.

Usage

import AnimationFrame from "AnimationFrame.ts";

let animation = new AnimationFrame();

let ID = animation.subscribe(context,callback,arguments,ID);

or

let AnimationFrame = required("AnimationFrame.js");

let animation = new AnimationFrame();

let ID = animation.subscribe(context,callback,arguments,ID);
  • context - The context of the called function.
  • callback - The called function.
  • arguments - An array of arguments of the called function.
  • ID - ID which will be signed watcher. One ID can contain only one watcher.

The arguments and ID are optional. If you do not pass the ID, then the subscribe will return the generated ID, otherwise returns the passed ID.

Keywords

TypeScript

FAQs

Package last updated on 12 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.