mirror of
https://github.com/NeonGamerBot-QK/saahild.com.git
synced 2025-06-24 10:44:21 +00:00
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:
parent
3222b2da65
commit
0675604d1a
1 changed files with 151 additions and 151 deletions
|
@ -20,7 +20,7 @@ class Char {
|
|||
draw() {
|
||||
const distToCursor = Math.hypot(
|
||||
this.x - cursor.value.x,
|
||||
this.y - cursor.value.y
|
||||
this.y - cursor.value.y,
|
||||
);
|
||||
|
||||
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 columns = Math.max(
|
||||
minColumns,
|
||||
Math.floor(window.innerWidth / columnSpacing)
|
||||
Math.floor(window.innerWidth / columnSpacing),
|
||||
);
|
||||
|
||||
// Adjust rows based on screen height
|
||||
|
@ -75,7 +75,7 @@ const init = () => {
|
|||
const maxRows = 25; // Cap for performance on large screens
|
||||
const rows = Math.min(
|
||||
maxRows,
|
||||
Math.max(minRows, Math.floor(window.innerHeight / rowSpacing))
|
||||
Math.max(minRows, Math.floor(window.innerHeight / rowSpacing)),
|
||||
);
|
||||
|
||||
chars = [];
|
||||
|
@ -84,7 +84,7 @@ const init = () => {
|
|||
const x = i * (window.innerWidth / columns); // Evenly distribute columns
|
||||
const y = j * rowSpacing - Math.random() * window.innerHeight;
|
||||
const char = String.fromCharCode(
|
||||
0x2729 + Math.floor(Math.random() * 706)
|
||||
0x2729 + Math.floor(Math.random() * 706),
|
||||
);
|
||||
chars.push(new Char(x, y, char));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue