@rive-app/webgl2
Advanced tools
Comparing version 2.12.1 to 2.12.2
{ | ||
"name": "@rive-app/webgl2", | ||
"version": "2.12.1", | ||
"version": "2.12.2", | ||
"description": "Rive's webgl2 based web api.", | ||
@@ -5,0 +5,0 @@ "main": "rive.js", |
@@ -8,2 +8,5 @@ import * as rc from "./rive_advanced.mjs"; | ||
export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => Boolean; | ||
interface SetupRiveListenersOptions { | ||
isTouchScrollEnabled?: boolean; | ||
} | ||
/** | ||
@@ -207,2 +210,8 @@ * Type for artboard bounds | ||
/** | ||
* For Rive Listeners, allows scrolling behavior to still occur on canvas elements | ||
* when a touch/drag action is performed on touch-enabled devices. Otherwise, | ||
* scroll behavior may be prevented on touch/drag actions on the canvas by default. | ||
*/ | ||
isTouchScrollEnabled?: boolean; | ||
/** | ||
* Enable Rive Events to be handled by the runtime. This means any special Rive Event may have | ||
@@ -303,6 +312,17 @@ * a side effect that takes place implicitly. | ||
frameCount: number; | ||
isTouchScrollEnabled: boolean; | ||
constructor(params: RiveParameters); | ||
static new(params: RiveParameters): Rive; | ||
private init; | ||
private setupRiveListeners; | ||
/** | ||
* Setup Rive Listeners on the canvas | ||
* @param riveListenerOptions - Enables TouchEvent events on the canvas. Set to true to allow | ||
* touch scrolling on the canvas element on touch-enabled devices | ||
* i.e. { isTouchScrollEnabled: true } | ||
*/ | ||
setupRiveListeners(riveListenerOptions?: SetupRiveListenersOptions): void; | ||
/** | ||
* Remove Rive Listeners setup on the canvas | ||
*/ | ||
removeRiveListeners(): void; | ||
private initData; | ||
@@ -309,0 +329,0 @@ private initArtboard; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1888973
7304