@rive-app/canvas-single
Advanced tools
Comparing version
{ | ||
"name": "@rive-app/canvas-single", | ||
"version": "1.0.69", | ||
"version": "1.0.70", | ||
"description": "Rive's high-level canvas based web api all in one js file.", | ||
@@ -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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
809034
0.02%3746
0.11%