window.onload = function () { let editor: BittMappEditor = new BittMappEditor({ canvas: document.getElementById("editor"), canvasWidth: 640, canvasHeight: 640, width: 32, height: 32 }); };