@rive-app/webgl-single 1.0.91 → 1.0.93

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": "1.0.91",
3
+ "version": "1.0.93",
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
@@ -4,10 +4,9 @@ import * as rc from "./rive_advanced.mjs";
4
4
  */
5
5
  export declare type VoidCallback = () => void;
6
6
  /**
7
- * Interface for artboard bounds
7
+ * Type for artboard bounds
8
8
  */
9
- export interface Bounds extends rc.AABB {
10
- }
9
+ export declare type Bounds = rc.AABB;
11
10
  export declare enum Fit {
12
11
  Cover = "cover",
13
12
  Contain = "contain",
@@ -163,7 +162,7 @@ declare class EventManager {
163
162
  fire(event: Event): void;
164
163
  }
165
164
  export interface Task {
166
- action: VoidCallback;
165
+ action?: VoidCallback;
167
166
  event?: Event;
168
167
  }
169
168
  declare class TaskQueueManager {
@@ -274,7 +273,8 @@ export declare class Rive {
274
273
  private lastRenderTime;
275
274
  private frameRequestId;
276
275
  /**
277
- * Used be draw to track when a second of active rendering time has passed. Used for debugging purposes
276
+ * Used be draw to track when a second of active rendering time has passed.
277
+ * Used for debugging purposes
278
278
  */
279
279
  private renderSecondTimer;
280
280
  /**
@@ -334,8 +334,8 @@ export declare class Rive {
334
334
  /**
335
335
  * Accounts for devicePixelRatio as a multiplier to render the size of the canvas drawing surface.
336
336
  * Uses the size of the backing canvas to set new width/height attributes. Need to re-render
337
- * and resize the layout to match the new drawing surface afterwards. Useful function for consumers
338
- * to include in a window resize listener
337
+ * and resize the layout to match the new drawing surface afterwards.
338
+ * Useful function for consumers to include in a window resize listener
339
339
  */
340
340
  resizeDrawingSurfaceToCanvas(): void;
341
341
  get source(): string;
@@ -415,7 +415,8 @@ export declare class Rive {
415
415
  startRendering(): void;
416
416
  /**
417
417
  * Enables frames-per-second (FPS) reporting for the runtime
418
- * If no callback is provided, Rive will append a fixed-position div at the top-right corner of the page with the FPS reading
418
+ * If no callback is provided, Rive will append a fixed-position div at the top-right corner of
419
+ * the page with the FPS reading
419
420
  * @param fpsCallback - Callback from the runtime during the RAF loop that supplies the FPS value
420
421
  */
421
422
  enableFPSCounter(fpsCallback?: FPSCallback): void;