Skip to content

Commit

Permalink
add lil' to-dos in main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudxain authored Mar 8, 2024
1 parent d6049fd commit a3a3d04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,16 @@ const RGBDR_anim = (() => {
And set font-size accordingly
*/
const resize = () => {
// to-do: detect if the final dimensions

Check failure

Code scanning / ESLint

Disallow specified warning terms in comments Error

Unexpected 'to-do' comment: 'to-do: detect if the final dimensions'.
// are actually diff
const { clientWidth, clientHeight } = body
canv.style.width = clientWidth + "px"
canv.style.height = clientHeight + "px"
const scale = devicePixelRatio
const save = ctx.getImageData(0, 0, w, h)
w = canv.width = clientWidth * scale >>> 0
h = canv.height = clientHeight * scale >>> 0
// to-do: call only if the canvas grows AND is white

Check failure

Code scanning / ESLint

Disallow specified warning terms in comments Error

Unexpected 'to-do' comment: 'to-do: call only if the canvas grows AND...'.
ctx_fillFull(anim.settings.dim_factor < 0 ? "fff" : "000")
ctx.putImageData(save, 0, 0)
//ctx.scale(scale, scale) // is normalization necessary?
Expand Down

0 comments on commit a3a3d04

Please sign in to comment.