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

@rive-app/canvas

Package Overview
Dependencies
Maintainers
4
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rive-app/canvas - npm Package Compare versions

Comparing version 1.0.72 to 1.0.73

2

package.json
{
"name": "@rive-app/canvas",
"version": "1.0.72",
"version": "1.0.73",
"description": "Rive's canvas based web api.",

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

@@ -5,3 +5,3 @@ interface RiveOptions {

declare function Rive(options: RiveOptions): Promise<RiveCanvas>;
declare function Rive(options?: RiveOptions): Promise<RiveCanvas>;
export default Rive;

@@ -14,2 +14,5 @@

StateMachineInstance: typeof StateMachineInstance;
Mat2D: typeof Mat2D;
Vec2D: typeof Vec2D;
AABB: AABB;
SMIInput: typeof SMIInput;

@@ -26,3 +29,3 @@ renderFactory: CanvasRenderFactory;

load(buffer: Uint8Array): Promise<File>;
makeRenderer(canvas: HTMLCanvasElement | OffscreenCanvas, useOffscreenRenderer: boolean) : CanvasRenderer;
makeRenderer(canvas: HTMLCanvasElement | OffscreenCanvas, useOffscreenRenderer?: boolean) : CanvasRenderer;
computeAlignment(fit: Fit, alignment: Alignment, frame: AABB, content: AABB): Mat2D;

@@ -48,2 +51,4 @@ mapXY(matrix: Mat2D, canvasPoints: Vec2D): Vec2D;

flush(): void;
translate(x: number, y: number): void;
rotate(angle: number): void;
}

@@ -118,2 +123,4 @@

get bounds(): AABB;
get frameOrigin(): boolean;
set frameOrigin(val: boolean);
// Deletes the backing wasm artboard instance

@@ -123,7 +130,7 @@ delete(): void;

draw(renderer: CanvasRenderer): void;
animationByName(name: string): LinearAnimation;
animationByIndex(index: number): LinearAnimation;
animationByName(name: string): LinearAnimationInstance;
animationByIndex(index: number): LinearAnimationInstance;
animationCount(): number;
stateMachineByName(name: string): StateMachine;
stateMachineByIndex(index: number): StateMachine;
stateMachineByName(name: string): StateMachineInstance;
stateMachineByIndex(index: number): StateMachineInstance;
stateMachineCount(): number;

@@ -154,2 +161,4 @@ bone(name: string): Bone;

scaleY: number;
worldTransform(): Mat2D;
parentWorldTransform(result: Mat2D): void;
}

@@ -160,3 +169,4 @@

///////////////
export declare class LinearAnimation {
export declare class LinearAnimationInstance {
constructor(animation: LinearAnimationInstance, artboard: Artboard);
get name(): string;

@@ -169,9 +179,5 @@ get duration(): number;

get speed(): number;
apply(artboard: Artboard, time: number, mix: number): void;
}
export declare class LinearAnimationInstance {
/** Time of the animation in seconds */
time: number;
didLoop: boolean;
constructor(animation: LinearAnimation, artboard: Artboard);
advance(sec: number): any;

@@ -187,8 +193,5 @@ /**

export declare class StateMachine {
export declare class StateMachineInstance {
constructor(stateMachine: StateMachineInstance, artboard: Artboard);
get name(): string;
}
export declare class StateMachineInstance {
constructor(stateMachine: StateMachine, artboard: Artboard);
inputCount(): number;

@@ -325,3 +328,3 @@ input(i: number): SMIInput;

ty: number;
invert(mat: Mat2D): void;
invert(mat: Mat2D): boolean;
}

@@ -328,0 +331,0 @@

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