@rive-app/webgl-single 2.35.4 → 2.37.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.d.ts +27 -17
- package/rive.js +955 -737
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +5 -0
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export interface RiveCanvas {
|
|
|
32
32
|
decodeAudio: DecodeAudio;
|
|
33
33
|
decodeImage: DecodeImage;
|
|
34
34
|
decodeFont: DecodeFont;
|
|
35
|
+
// Returns a pointer value to the FontWrapper
|
|
36
|
+
setFallbackFontCallback: (callback: (missingGlyph: number, fallbackFontIndex: number, weight: number) => number | null) => void;
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* Loads a Rive file for the runtime and returns a Rive-specific File class
|
|
@@ -308,9 +310,11 @@ export interface DecodeImage {
|
|
|
308
310
|
}
|
|
309
311
|
export class FontInternal {
|
|
310
312
|
unref(): void;
|
|
313
|
+
ptr(): number;
|
|
311
314
|
}
|
|
312
315
|
export class Font {
|
|
313
316
|
unref(): void;
|
|
317
|
+
ptr(): number;
|
|
314
318
|
get nativeFont(): FontInternal;
|
|
315
319
|
}
|
|
316
320
|
export interface FontCallback {
|
|
@@ -994,6 +998,7 @@ export declare class ViewModelInstance {
|
|
|
994
998
|
delete(): void;
|
|
995
999
|
unref(): void;
|
|
996
1000
|
getProperties(): ViewModelProperty[];
|
|
1001
|
+
getViewModelName(): string;
|
|
997
1002
|
}
|
|
998
1003
|
|
|
999
1004
|
export declare class ViewModel {
|