mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 08:47:31 +00:00
* Updated import to contain file extension `js` * Separated WebAssembly definitions from missing-types * Converted resizer.resize result to Uint8ClampedArray * Moved ResizeInstantiateOptions to an interface
12 lines
273 B
TypeScript
12 lines
273 B
TypeScript
export default class ImageData {
|
|
readonly data: Uint8ClampedArray;
|
|
readonly width: number;
|
|
readonly height: number;
|
|
|
|
constructor(data: Uint8ClampedArray, width: number, height: number) {
|
|
this.data = data;
|
|
this.width = width;
|
|
this.height = height;
|
|
}
|
|
}
|