New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rive-app/canvas-advanced

Package Overview
Dependencies
Maintainers
5
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rive-app/canvas-advanced - npm Package Compare versions

Comparing version 2.14.4 to 2.15.0

2

package.json
{
"name": "@rive-app/canvas-advanced",
"version": "2.14.4",
"version": "2.15.0",
"description": "Rive's lightweight low-level canvas based web api.",

@@ -5,0 +5,0 @@ "main": "canvas_advanced.mjs",

@@ -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 @@ */

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