mirror of
https://github.com/exogen/t2-model-skinner.git
synced 2026-01-19 19:24:44 +00:00
29 lines
617 B
TypeScript
29 lines
617 B
TypeScript
declare module "pngjs/browser" {
|
|
import type { PNG as NodePNG } from "pngjs";
|
|
|
|
export class PNG extends NodePNG {
|
|
data: Uint8Array;
|
|
width: number;
|
|
height: number;
|
|
|
|
constructor(options?: {
|
|
width?: number;
|
|
height?: number;
|
|
inputHasAlpha?: boolean;
|
|
});
|
|
|
|
on(eventName: "data", callback: (chunk: Uint8Array) => void);
|
|
on(eventName: "end", callback: () => void);
|
|
on(eventName: "error", callback: (err: Error | string) => void);
|
|
|
|
pack: () => PNG;
|
|
|
|
parse(
|
|
arrayBuffer: ArrayBuffer,
|
|
callback: (error: Error, data: PNG) => void
|
|
);
|
|
}
|
|
}
|
|
|
|
export {};
|