@rive-app/webgl-single 2.7.0 → 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 +1 -1
- package/rive.js +2 -2
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +21 -1
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -875,12 +875,32 @@ export declare class Vec2D {
|
|
|
875
875
|
delete(): void;
|
|
876
876
|
}
|
|
877
877
|
|
|
878
|
+
/**
|
|
879
|
+
* Rive class representing a FileAsset with relevant metadata fields to describe
|
|
880
|
+
* an asset associated wtih the Rive File
|
|
881
|
+
*/
|
|
878
882
|
export declare class FileAsset {
|
|
879
883
|
name: string;
|
|
880
884
|
fileExtension: string;
|
|
881
885
|
isImage: boolean;
|
|
882
886
|
isFont: boolean;
|
|
883
|
-
cdnUuid:
|
|
887
|
+
cdnUuid: string;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Rive class extending the FileAsset that exposes a `setRenderImage()` API with a
|
|
892
|
+
* decoded Image (via the `decodeImage()` API) to set a new Image on the Rive FileAsset
|
|
893
|
+
*/
|
|
894
|
+
export declare class ImageAsset extends FileAsset {
|
|
895
|
+
setRenderImage(image: Image): void;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Rive class extending the FileAsset that exposes a `setFont()` API with a
|
|
900
|
+
* decoded Font (via the `decodeFont()` API) to set a new Font on the Rive FileAsset
|
|
901
|
+
*/
|
|
902
|
+
export declare class FontAsset extends FileAsset {
|
|
903
|
+
setFont(font: Font): void;
|
|
884
904
|
}
|
|
885
905
|
|
|
886
906
|
export declare class FileAssetLoader {}
|