@rive-app/webgl-single 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rive.d.ts +14 -2
- package/rive.js +42 -30
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +24 -6
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -29,8 +29,8 @@ export interface RiveCanvas {
|
|
|
29
29
|
RenderPaintStyle: typeof RenderPaintStyle;
|
|
30
30
|
StrokeCap: typeof StrokeCap;
|
|
31
31
|
StrokeJoin: typeof StrokeJoin;
|
|
32
|
-
decodeImage:
|
|
33
|
-
decodeFont:
|
|
32
|
+
decodeImage: DecodeFont;
|
|
33
|
+
decodeFont: DecodeFont;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Loads a Rive file for the runtime and returns a Rive-specific File class
|
|
@@ -260,6 +260,25 @@ export interface CanvasRenderFactory {
|
|
|
260
260
|
makeRenderPath(): CanvasRenderPath;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
export class Image {
|
|
264
|
+
unref(): void;
|
|
265
|
+
}
|
|
266
|
+
export interface ImageCallback {
|
|
267
|
+
(image: Image): void;
|
|
268
|
+
}
|
|
269
|
+
export interface DecodeImage {
|
|
270
|
+
(bytes: Uint8Array, callback: ImageCallback): void;
|
|
271
|
+
}
|
|
272
|
+
export class Font {
|
|
273
|
+
unref(): void;
|
|
274
|
+
}
|
|
275
|
+
export interface FontCallback {
|
|
276
|
+
(font: Font): void;
|
|
277
|
+
}
|
|
278
|
+
export interface DecodeFont {
|
|
279
|
+
(bytes: Uint8Array, callback: FontCallback): void;
|
|
280
|
+
}
|
|
281
|
+
|
|
263
282
|
//////////
|
|
264
283
|
// File //
|
|
265
284
|
//////////
|
|
@@ -864,10 +883,9 @@ export declare class FileAsset {
|
|
|
864
883
|
cdnUuid: boolean;
|
|
865
884
|
}
|
|
866
885
|
|
|
867
|
-
export declare class FileAssetLoader {
|
|
868
|
-
}
|
|
886
|
+
export declare class FileAssetLoader {}
|
|
869
887
|
|
|
870
888
|
export declare class CustomFileAssetLoader extends FileAssetLoader {
|
|
871
|
-
constructor({loadContents}: {loadContents:Function});
|
|
872
|
-
loadContents(asset: FileAsset, bytes:any): boolean;
|
|
889
|
+
constructor({ loadContents }: { loadContents: Function });
|
|
890
|
+
loadContents(asset: FileAsset, bytes: any): boolean;
|
|
873
891
|
}
|