@rive-app/canvas-lite
Advanced tools
Comparing version 2.7.0 to 2.7.1
{ | ||
"name": "@rive-app/canvas-lite", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "A lite version of Rive's canvas based web api.", | ||
@@ -5,0 +5,0 @@ "main": "rive.js", |
@@ -878,2 +878,6 @@ interface RiveOptions { | ||
/** | ||
* Rive class representing a FileAsset with relevant metadata fields to describe | ||
* an asset associated wtih the Rive File | ||
*/ | ||
export declare class FileAsset { | ||
@@ -884,5 +888,21 @@ name: string; | ||
isFont: boolean; | ||
cdnUuid: boolean; | ||
cdnUuid: string; | ||
} | ||
/** | ||
* Rive class extending the FileAsset that exposes a `setRenderImage()` API with a | ||
* decoded Image (via the `decodeImage()` API) to set a new Image on the Rive FileAsset | ||
*/ | ||
export declare class ImageAsset extends FileAsset { | ||
setRenderImage(image: Image): void; | ||
} | ||
/** | ||
* Rive class extending the FileAsset that exposes a `setFont()` API with a | ||
* decoded Font (via the `decodeFont()` API) to set a new Font on the Rive FileAsset | ||
*/ | ||
export declare class FontAsset extends FileAsset { | ||
setFont(font: Font): void; | ||
} | ||
export declare class FileAssetLoader {} | ||
@@ -889,0 +909,0 @@ |
import * as rc from "./rive_advanced.mjs"; | ||
export type { FileAsset, FontAsset, ImageAsset } from './rive_advanced.mjs'; | ||
/** | ||
@@ -550,2 +551,1 @@ * Generic type for a parameterless void callback | ||
export declare const decodeFont: (bytes: Uint8Array) => Promise<rc.Font>; | ||
export {}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
692538
3855