Run tslint on all of source (for good this time)

This commit is contained in:
Daniel Imms
2018-05-04 10:20:09 -07:00
parent e48b15e859
commit 9bcecd4e2e
3 changed files with 10 additions and 12 deletions
+2 -3
View File
@@ -91,10 +91,9 @@ export function generateCharAtlas(context: Window, canvasFactory: (width: number
if (canvas instanceof HTMLCanvasElement) {
// Just return the HTMLCanvas if it's a HTMLCanvasElement
return canvas;
} else {
// Transfer to an ImageBitmap is this is an OffscreenCanvas
return new Promise(r => r(canvas.transferToImageBitmap()));
}
// Transfer to an ImageBitmap is this is an OffscreenCanvas
return new Promise(r => r(canvas.transferToImageBitmap()));
}
const charAtlasImageData = ctx.getImageData(0, 0, canvas.width, canvas.height);