@rive-app/webgl-single 2.6.1 → 2.7.1
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.d.ts +15 -3
- package/rive.js +42 -30
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +44 -6
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as rc from "./rive_advanced.mjs";
|
|
2
|
+
export type { FileAsset, FontAsset, ImageAsset } from './rive_advanced.mjs';
|
|
2
3
|
/**
|
|
3
4
|
* Generic type for a parameterless void callback
|
|
4
5
|
*/
|
|
@@ -533,6 +534,17 @@ export declare const Testing: {
|
|
|
533
534
|
EventManager: typeof EventManager;
|
|
534
535
|
TaskQueueManager: typeof TaskQueueManager;
|
|
535
536
|
};
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
537
|
+
/**
|
|
538
|
+
* Decodes bytes into an image.
|
|
539
|
+
*
|
|
540
|
+
* Be sure to call `.dispose()` on the image once it is no longer needed. This
|
|
541
|
+
* allows the engine to clean it up when it is not used by any more animations.
|
|
542
|
+
*/
|
|
543
|
+
export declare const decodeImage: (bytes: Uint8Array) => Promise<rc.Image>;
|
|
544
|
+
/**
|
|
545
|
+
* Decodes bytes into a font.
|
|
546
|
+
*
|
|
547
|
+
* Be sure to call `.dispose()` on the font once it is no longer needed. This
|
|
548
|
+
* allows the engine to clean it up when it is not used by any more animations.
|
|
549
|
+
*/
|
|
550
|
+
export declare const decodeFont: (bytes: Uint8Array) => Promise<rc.Font>;
|