@rive-app/webgl-single 2.12.2 → 2.13.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl-single",
3
- "version": "2.12.2",
3
+ "version": "2.13.0",
4
4
  "description": "Rive's webgl based web api with bundled wasm.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.d.ts CHANGED
@@ -5,9 +5,6 @@ export type { FileAsset, FontAsset, ImageAsset } from './rive_advanced.mjs';
5
5
  */
6
6
  export type VoidCallback = () => void;
7
7
  export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => Boolean;
8
- interface SetupRiveListenersOptions {
9
- isTouchScrollEnabled?: boolean;
10
- }
11
8
  /**
12
9
  * Type for artboard bounds
13
10
  */
@@ -205,12 +202,6 @@ export interface RiveParameters {
205
202
  * will be attached to the <canvas> element
206
203
  */
207
204
  shouldDisableRiveListeners?: boolean;
208
- /**
209
- * For Rive Listeners, allows scrolling behavior to still occur on canvas elements
210
- * when a touch/drag action is performed on touch-enabled devices. Otherwise,
211
- * scroll behavior may be prevented on touch/drag actions on the canvas by default.
212
- */
213
- isTouchScrollEnabled?: boolean;
214
205
  /**
215
206
  * Enable Rive Events to be handled by the runtime. This means any special Rive Event may have
216
207
  * a side effect that takes place implicitly.
@@ -307,21 +298,10 @@ export declare class Rive {
307
298
  durations: number[];
308
299
  frameTimes: number[];
309
300
  frameCount: number;
310
- isTouchScrollEnabled: boolean;
311
301
  constructor(params: RiveParameters);
312
302
  static new(params: RiveParameters): Rive;
313
303
  private init;
314
- /**
315
- * Setup Rive Listeners on the canvas
316
- * @param riveListenerOptions - Enables TouchEvent events on the canvas. Set to true to allow
317
- * touch scrolling on the canvas element on touch-enabled devices
318
- * i.e. { isTouchScrollEnabled: true }
319
- */
320
- setupRiveListeners(riveListenerOptions?: SetupRiveListenersOptions): void;
321
- /**
322
- * Remove Rive Listeners setup on the canvas
323
- */
324
- removeRiveListeners(): void;
304
+ private setupRiveListeners;
325
305
  private initData;
326
306
  private initArtboard;
327
307
  drawFrame(): void;