@rive-app/canvas-lite 2.46.0 → 2.47.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/rive.wasm CHANGED
Binary file
Binary file
@@ -8,6 +8,8 @@ export declare class RuntimeLoader {
8
8
  private static wasmURL;
9
9
  private static wasmFallbackURL;
10
10
  private static wasmBinary;
11
+ private static wasmThreadsURL;
12
+ private static triedThreads;
11
13
  private static errorCallbackQueue;
12
14
  private constructor();
13
15
  /**
@@ -16,7 +18,9 @@ export declare class RuntimeLoader {
16
18
  */
17
19
  static enablePerfMarks: boolean;
18
20
  private static notifyError;
21
+ private static loaded;
19
22
  private static loadRuntime;
23
+ private static loadUnthreaded;
20
24
  static getInstance(callback: RuntimeCallback, onError?: (error: Error) => void): void;
21
25
  static awaitInstance(): Promise<rc.RiveCanvas>;
22
26
  static setWasmUrl(url: string): void;
@@ -29,6 +33,16 @@ export declare class RuntimeLoader {
29
33
  */
30
34
  static setWasmFallbackUrl(url: string | null): void;
31
35
  static getWasmFallbackUrl(): string | null;
36
+ /**
37
+ * Sets the URL of the threaded build's wasm, which
38
+ * `@rive-app/webgl2-threads` loads on a cross origin isolated page. Pass
39
+ * `null` to always load the build without threads. Other packages have no
40
+ * threaded build and ignore it.
41
+ *
42
+ * Defaults to pulling from the unpkg CDN.
43
+ */
44
+ static setWasmThreadsUrl(url: string | null): void;
45
+ static getWasmThreadsUrl(): string | null;
32
46
  static setWasmBinary(value: ArrayBuffer | null): void;
33
47
  static getWasmBinary(): ArrayBuffer | null;
34
48
  }