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:
Paul Kinlan
2018-06-29 21:12:17 +00:00
parent 7c220b1a92
commit 3b9b1e9f2e
5 changed files with 13 additions and 15 deletions

View File

@@ -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);