scaleToWindow
scaleToWindow copied to clipboard
A function to scale an HTML canvas element to the maximum browser window
Results
3
scaleToWindow issues
Sort by
recently updated
recently updated
newest added
Additions: - Optional margin parameters for canvas element that does not scale with canvas. Has default HTML margin behaviour. Changes: - Removed repeat of code for getting the final scale...
Hi, I'm having a weird issue when resizing the browser for some reason if I resize it the canvas will jump to the top portion of the browser looks like...
Hi, thanks for the handy function. Could you please publish it as an npm package? I'd like to be able to use it via tools like Browserify.