@rive-app/webgl-single 2.23.1 → 2.23.3
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 +5 -4
- package/rive.js +49 -19
- package/rive.js.map +1 -1
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -73,6 +73,7 @@ export declare class RuntimeLoader {
|
|
|
73
73
|
static getInstance(callback: RuntimeCallback): void;
|
|
74
74
|
static awaitInstance(): Promise<rc.RiveCanvas>;
|
|
75
75
|
static setWasmUrl(url: string): void;
|
|
76
|
+
static getWasmUrl(): string;
|
|
76
77
|
}
|
|
77
78
|
export declare enum StateMachineInputType {
|
|
78
79
|
Number = 56,
|
|
@@ -662,26 +663,26 @@ export declare class Rive {
|
|
|
662
663
|
/**
|
|
663
664
|
* The width of the artboard.
|
|
664
665
|
*
|
|
665
|
-
* This will return
|
|
666
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
666
667
|
* width has not been set.
|
|
667
668
|
*
|
|
668
669
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
669
670
|
* with a {@link Layout.fit} of {@link Fit.Layout}, as the artboard width is
|
|
670
671
|
* automatically set.
|
|
671
672
|
*/
|
|
672
|
-
get artboardWidth(): number
|
|
673
|
+
get artboardWidth(): number;
|
|
673
674
|
set artboardWidth(value: number);
|
|
674
675
|
/**
|
|
675
676
|
* The height of the artboard.
|
|
676
677
|
*
|
|
677
|
-
* This will return
|
|
678
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
678
679
|
* height has not been set.
|
|
679
680
|
*
|
|
680
681
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
681
682
|
* with a {@link Layout.fit} of {@link Fit.Layout}, as the artboard height is
|
|
682
683
|
* automatically set.
|
|
683
684
|
*/
|
|
684
|
-
get artboardHeight(): number
|
|
685
|
+
get artboardHeight(): number;
|
|
685
686
|
set artboardHeight(value: number);
|
|
686
687
|
/**
|
|
687
688
|
* Reset the artboard size to its original values.
|