@rive-app/canvas 2.44.2 → 2.45.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 +18 -0
- package/rive.js +319 -263
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +19 -0
- package/rive_fallback.wasm +0 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -335,6 +335,13 @@ export interface RiveParameters {
|
|
|
335
335
|
layout?: Layout;
|
|
336
336
|
autoplay?: boolean;
|
|
337
337
|
useOffscreenRenderer?: boolean;
|
|
338
|
+
/**
|
|
339
|
+
* @experimental (WebGL2 only) Renders with inkbleed antialiasing instead of MSAA, which
|
|
340
|
+
* disables the canvas's native MSAA. Fills that don't use the clockwise fill rule are
|
|
341
|
+
* converted to clockwise on a best-effort basis. Toggle it later
|
|
342
|
+
* with `rive.inkbleed`, which only works if enabled here.
|
|
343
|
+
*/
|
|
344
|
+
enableInkbleed?: boolean;
|
|
338
345
|
/**
|
|
339
346
|
* Optional tab index to set for the canvas element if there are any Focus nodes within the graphic
|
|
340
347
|
*/
|
|
@@ -681,6 +688,10 @@ export declare class Rive {
|
|
|
681
688
|
private readyForPlaying;
|
|
682
689
|
private runtime;
|
|
683
690
|
private deferredRenderer;
|
|
691
|
+
private _inkbleedCapable;
|
|
692
|
+
private _inkbleed;
|
|
693
|
+
private static inkbleedUnsupportedWarned;
|
|
694
|
+
private static inkbleedNotCapableWarned;
|
|
684
695
|
private ownsRiveFile;
|
|
685
696
|
private artboard;
|
|
686
697
|
private eventCleanup;
|
|
@@ -1251,6 +1262,13 @@ export declare class Rive {
|
|
|
1251
1262
|
*/
|
|
1252
1263
|
get devicePixelRatioUsed(): number;
|
|
1253
1264
|
set devicePixelRatioUsed(value: number);
|
|
1265
|
+
/**
|
|
1266
|
+
* @experimental (WebGL2 only) Whether inkbleed antialiasing is in effect. Can only be
|
|
1267
|
+
* turned on if `enableInkbleed: true` was passed at construction.
|
|
1268
|
+
*/
|
|
1269
|
+
get inkbleed(): boolean;
|
|
1270
|
+
set inkbleed(value: boolean);
|
|
1271
|
+
private applyInkbleed;
|
|
1254
1272
|
private reportDisplayScale;
|
|
1255
1273
|
/**
|
|
1256
1274
|
* Sets the main view model instance and applies it (rebinds). Equivalent to
|