@rive-app/canvas-advanced-lite
Advanced tools
Comparing version 0.1.1 to 2.7.0
{ | ||
"name": "@rive-app/canvas-advanced-lite", | ||
"version": "0.1.1", | ||
"version": "2.7.0", | ||
"description": "Rive's lite low-level canvas based web api.", | ||
@@ -5,0 +5,0 @@ "main": "canvas_advanced.mjs", |
@@ -32,4 +32,4 @@ interface RiveOptions { | ||
StrokeJoin: typeof StrokeJoin; | ||
decodeImage: Function; | ||
decodeFont: Function; | ||
decodeImage: DecodeFont; | ||
decodeFont: DecodeFont; | ||
@@ -264,2 +264,21 @@ /** | ||
export class Image { | ||
unref(): void; | ||
} | ||
export interface ImageCallback { | ||
(image: Image): void; | ||
} | ||
export interface DecodeImage { | ||
(bytes: Uint8Array, callback: ImageCallback): void; | ||
} | ||
export class Font { | ||
unref(): void; | ||
} | ||
export interface FontCallback { | ||
(font: Font): void; | ||
} | ||
export interface DecodeFont { | ||
(bytes: Uint8Array, callback: FontCallback): void; | ||
} | ||
////////// | ||
@@ -869,8 +888,7 @@ // File // | ||
export declare class FileAssetLoader { | ||
} | ||
export declare class FileAssetLoader {} | ||
export declare class CustomFileAssetLoader extends FileAssetLoader { | ||
constructor({loadContents}: {loadContents:Function}); | ||
loadContents(asset: FileAsset, bytes:any): boolean; | ||
constructor({ loadContents }: { loadContents: Function }); | ||
loadContents(asset: FileAsset, bytes: any): boolean; | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
389004
1042
0