Last active
December 5, 2022 21:19
-
-
Save kagklis/11f9896971adf739c2ee026582b1158c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference lib="webworker" /> | |
// ... | |
function resize(data: any): void { | |
canvas.width = data.width; | |
canvas.height = data.height; | |
chart.resize(); | |
} | |
const handlers = { | |
firstDraw, | |
redraw, | |
resize | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment