@rive-app/canvas-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas-single",
3
- "version": "2.23.1",
3
+ "version": "2.23.3",
4
4
  "description": "Rive's high-level canvas based web api all in one js file.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
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 undefined if the artboard is not loaded yet and a custom
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 | undefined;
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 undefined if the artboard is not loaded yet and a custom
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 | undefined;
685
+ get artboardHeight(): number;
685
686
  set artboardHeight(value: number);
686
687
  /**
687
688
  * Reset the artboard size to its original values.