@rive-app/webgl-single 2.9.2 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.js +167 -125
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +9 -0
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -90,6 +90,15 @@ export interface RiveCanvas {
|
|
|
90
90
|
* @param requestID - ID of the requestAnimationFrame request to cancel
|
|
91
91
|
*/
|
|
92
92
|
cancelAnimationFrame(requestID: number): void;
|
|
93
|
+
/**
|
|
94
|
+
* A Rive-specific function to "flush" queued up draw calls from using the renderer.
|
|
95
|
+
*
|
|
96
|
+
* This should only be invoked once at the end of a loop in a regular JS
|
|
97
|
+
* requestAnimationFrame loop, and should not be used with the Rive-wrapped
|
|
98
|
+
* requestAnimationFrame (aka, the requestAnimationFrame() API on this object) as that
|
|
99
|
+
* API will handle flushing the draw calls implicitly.
|
|
100
|
+
*/
|
|
101
|
+
resolveAnimationFrame(): void;
|
|
93
102
|
/**
|
|
94
103
|
* Debugging tool to showcase the FPS in the corner of the screen in a new div. If a callback
|
|
95
104
|
* function is provided, this function passes the FPS count to the callback instead of creating a
|