enhancement(lint): Fix lint errors for components/Backdrop.vue

Co-authored-by: NeonGamerBot-QK <neon@saahild.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2025-06-23 01:35:43 +00:00 committed by GitHub
parent 3222b2da65
commit 0675604d1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ class Char {
draw() { draw() {
const distToCursor = Math.hypot( const distToCursor = Math.hypot(
this.x - cursor.value.x, this.x - cursor.value.x,
this.y - cursor.value.y this.y - cursor.value.y,
); );
const highlight = Math.max(0, 0.5 - distToCursor / 250); const highlight = Math.max(0, 0.5 - distToCursor / 250);
@ -66,7 +66,7 @@ const init = () => {
const minColumns = 15; // Ensure at least this many columns on mobile const minColumns = 15; // Ensure at least this many columns on mobile
const columns = Math.max( const columns = Math.max(
minColumns, minColumns,
Math.floor(window.innerWidth / columnSpacing) Math.floor(window.innerWidth / columnSpacing),
); );
// Adjust rows based on screen height // Adjust rows based on screen height
@ -75,7 +75,7 @@ const init = () => {
const maxRows = 25; // Cap for performance on large screens const maxRows = 25; // Cap for performance on large screens
const rows = Math.min( const rows = Math.min(
maxRows, maxRows,
Math.max(minRows, Math.floor(window.innerHeight / rowSpacing)) Math.max(minRows, Math.floor(window.innerHeight / rowSpacing)),
); );
chars = []; chars = [];
@ -84,7 +84,7 @@ const init = () => {
const x = i * (window.innerWidth / columns); // Evenly distribute columns const x = i * (window.innerWidth / columns); // Evenly distribute columns
const y = j * rowSpacing - Math.random() * window.innerHeight; const y = j * rowSpacing - Math.random() * window.innerHeight;
const char = String.fromCharCode( const char = String.fromCharCode(
0x2729 + Math.floor(Math.random() * 706) 0x2729 + Math.floor(Math.random() * 706),
); );
chars.push(new Char(x, y, char)); chars.push(new Char(x, y, char));
} }