@rive-app/canvas
Advanced tools
Comparing version 1.0.46 to 1.0.47
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
468165
2614