Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rive-app/canvas

Package Overview
Dependencies
Maintainers
4
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rive-app/canvas - npm Package Compare versions

Comparing version 1.0.46 to 1.0.47

2

package.json
{
"name": "@rive-app/canvas",
"version": "1.0.46",
"version": "1.0.47",
"description": "Rive's canvas based web api.",

@@ -5,0 +5,0 @@ "main": "rive.js",

@@ -27,2 +27,4 @@ interface RiveOptions {

cancelAnimationFrame(requestID: number): void;
enableFPSCounter(cb: (fps: number) => void): void;
disableFPSCounter(): void;
}

@@ -29,0 +31,0 @@

@@ -142,2 +142,6 @@ import * as rc from './rive_advanced.mjs';

}
/**
* FPS Reporting through callbacks sent to the WASM runtime
*/
export declare type FPSCallback = (fps: number) => void;
declare class EventManager {

@@ -404,2 +408,12 @@ private listeners;

/**
* Enables frames-per-second (FPS) reporting for the runtime
* If no callback is provided, Rive will append a fixed-position div at the top-right corner of the page with the FPS reading
* @param fpsCallback - Callback from the runtime during the RAF loop that supplies the FPS value
*/
enableFPSCounter(fpsCallback?: FPSCallback): void;
/**
* Disables frames-per-second (FPS) reporting for the runtime
*/
disableFPSCounter(): void;
/**
* Returns the contents of a Rive file: the artboards, animations, and state machines

@@ -406,0 +420,0 @@ */

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc