forked from external-repos/squoosh
Fixing issues raised by the linter. Fixes #68
+ just cleans up issues, and disables one test that can't be fixed. + biggest change is encoders not using multiple imports now.
This commit is contained in:
@@ -44,7 +44,7 @@ export async function bitmapToImageData(bitmap: ImageBitmap): Promise<ImageData>
|
||||
}
|
||||
|
||||
/** Replace the contents of a canvas with the given bitmap */
|
||||
export function drawBitmapToCanvas (canvas: HTMLCanvasElement, img: ImageBitmap) {
|
||||
export function drawBitmapToCanvas(canvas: HTMLCanvasElement, img: ImageBitmap) {
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) throw Error('Canvas not initialized');
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
Reference in New Issue
Block a user