@rive-app/canvas-lite
Advanced tools
Comparing version 2.13.0 to 2.13.2
{ | ||
"name": "@rive-app/canvas-lite", | ||
"version": "2.13.0", | ||
"version": "2.13.2", | ||
"description": "A lite version of Rive's canvas 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
809350
5944