@rive-app/webgl2-threads 2.48.0 → 2.49.1
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 +22 -0
- package/rive.js +978 -731
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +85 -1
- package/rive_fallback.wasm +0 -0
- package/rive_threads.wasm +0 -0
- package/runtimeLoader.d.ts +33 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -443,6 +443,19 @@ export interface RiveParameters {
|
|
|
443
443
|
* import. False by default.
|
|
444
444
|
*/
|
|
445
445
|
enableGPUCanvas?: boolean;
|
|
446
|
+
/**
|
|
447
|
+
* @experimental This API is early and may encounter breaking behavior change without a major version bump
|
|
448
|
+
*
|
|
449
|
+
* With `enableGPUCanvas`, on `@rive-app/webgl2-threads` loaded threaded, the
|
|
450
|
+
* canvas moves to a worker shared by every instance on the page, which replays
|
|
451
|
+
* each frame while this instance records the next. Set false to keep this
|
|
452
|
+
* instance's rendering on the page's thread. Has no effect where the worker is
|
|
453
|
+
* unavailable. True by default; see also {@link RuntimeLoader.setReplayWorker}.
|
|
454
|
+
*
|
|
455
|
+
* A canvas handed to the worker stays there: its `width` and `height` still
|
|
456
|
+
* work, but it can no longer give out a context of its own.
|
|
457
|
+
*/
|
|
458
|
+
useReplayWorker?: boolean;
|
|
446
459
|
/**
|
|
447
460
|
* Emit performance.mark / performance.measure entries for load lifecycle
|
|
448
461
|
* events and the first 3 render frames. Useful for profiling Rive's
|
|
@@ -708,9 +721,11 @@ export declare class Rive {
|
|
|
708
721
|
private readyForPlaying;
|
|
709
722
|
private runtime;
|
|
710
723
|
private deferredRenderer;
|
|
724
|
+
private useReplayWorker;
|
|
711
725
|
private _inkbleedCapable;
|
|
712
726
|
private _inkbleed;
|
|
713
727
|
private static inkbleedUnsupportedWarned;
|
|
728
|
+
private static replayContextLostWarned;
|
|
714
729
|
private static inkbleedNotCapableWarned;
|
|
715
730
|
private ownsRiveFile;
|
|
716
731
|
private artboard;
|
|
@@ -848,6 +863,13 @@ export declare class Rive {
|
|
|
848
863
|
* only a file this instance imported is released when that happens.
|
|
849
864
|
*/
|
|
850
865
|
private resolveDeferredRendering;
|
|
866
|
+
private reloadForRestoredContext;
|
|
867
|
+
/**
|
|
868
|
+
* Re-imports `file` deferred and attaches the copy's session to `renderer`.
|
|
869
|
+
* The copy becomes this instance's file either way, unless the instance was
|
|
870
|
+
* destroyed while it imported.
|
|
871
|
+
*/
|
|
872
|
+
private attachDeferredCopy;
|
|
851
873
|
private initArtboard;
|
|
852
874
|
drawFrame(): void;
|
|
853
875
|
private _canvasSizeChanged;
|