Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rive-app/webgl

Package Overview
Dependencies
Maintainers
5
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rive-app/webgl - npm Package Compare versions

Comparing version 2.14.4 to 2.15.0

2

package.json
{
"name": "@rive-app/webgl",
"version": "2.14.4",
"version": "2.15.0",
"description": "Rive's webgl based web api.",

@@ -5,0 +5,0 @@ "main": "rive.js",

@@ -32,3 +32,4 @@ interface RiveOptions {

StrokeJoin: typeof StrokeJoin;
decodeImage: DecodeFont;
decodeAudio: DecodeAudio;
decodeImage: DecodeImage;
decodeFont: DecodeFont;

@@ -96,3 +97,3 @@

* A Rive-specific function to "flush" queued up draw calls from using the renderer.
*
*
* This should only be invoked once at the end of a loop in a regular JS

@@ -274,2 +275,11 @@ * requestAnimationFrame loop, and should not be used with the Rive-wrapped

export class Audio {
unref(): void;
}
export interface AudioCallback {
(audio: Audio): void;
}
export interface DecodeAudio {
(bytes: Uint8Array, callback: AudioCallback): void;
}
export class Image {

@@ -902,9 +912,21 @@ unref(): void;

fileExtension: string;
uniqueFilename: string;
isAudio: boolean;
isImage: boolean;
isFont: boolean;
cdnUuid: string;
decode(bytes: Uint8Array): void;
}
/**
* Rive class extending the FileAsset that exposes a `setRenderImage()` API with a
* Rive class extending the FileAsset that exposes a `setAudioSource()` API with a
* decoded Audio (via the `decodeAudio()` API) to set a new Audio on the Rive FileAsset
*/
export declare class AudioAsset extends FileAsset {
setAudioSource(audio: Audio): void;
}
/**
* Rive class extending the FileAsset that exposes a `setRenderImage()` API with a
* decoded Image (via the `decodeImage()` API) to set a new Image on the Rive FileAsset

@@ -917,3 +939,3 @@ */

/**
* Rive class extending the FileAsset that exposes a `setFont()` API with a
* Rive class extending the FileAsset that exposes a `setFont()` API with a
* decoded Font (via the `decodeFont()` API) to set a new Font on the Rive FileAsset

@@ -920,0 +942,0 @@ */

import * as rc from "./rive_advanced.mjs";
export type { FileAsset, FontAsset, ImageAsset } from "./rive_advanced.mjs";
export type { FileAsset, AudioAsset, FontAsset, ImageAsset, } from "./rive_advanced.mjs";
/**

@@ -571,5 +571,12 @@ * Generic type for a parameterless void callback

/**
* Decodes bytes into an audio asset.
*
* Be sure to call `.unref()` on the audio once it is no longer needed. This
* allows the engine to clean it up when it is not used by any more animations.
*/
export declare const decodeAudio: (bytes: Uint8Array) => Promise<rc.Audio>;
/**
* Decodes bytes into an image.
*
* Be sure to call `.dispose()` on the image once it is no longer needed. This
* Be sure to call `.unref()` on the image once it is no longer needed. This
* allows the engine to clean it up when it is not used by any more animations.

@@ -581,5 +588,5 @@ */

*
* Be sure to call `.dispose()` on the font once it is no longer needed. This
* Be sure to call `.unref()` on the font once it is no longer needed. This
* allows the engine to clean it up when it is not used by any more animations.
*/
export declare const decodeFont: (bytes: Uint8Array) => Promise<rc.Font>;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc