@@ -208,17 +208,17 @@ export function AnimatedBackground() {
208208
209209 for ( let a = 0 ; a < particles . length ; a ++ ) {
210210 for ( let b = a ; b < particles . length ; b ++ ) {
211- const dx = particles [ a ] ! . x - particles [ b ] ! . x
212- const dy = particles [ a ] ! . y - particles [ b ] ! . y
211+ const dx = particles [ a ] . x - particles [ b ] . x
212+ const dy = particles [ a ] . y - particles [ b ] . y
213213 const distance = Math . sqrt ( dx * dx + dy * dy )
214214
215215 if ( distance < maxDistance ) {
216216 const opacity = ( 1 - distance / maxDistance ) * 0.5
217217 ctx . strokeStyle = `rgba(100, 150, 255, ${ opacity } )`
218218 ctx . lineWidth = 0.5
219219 ctx . beginPath ( )
220- ctx . moveTo ( particles [ a ] ! . x , particles [ a ] ! . y )
221- ctx . lineTo ( particles [ b ] ! . x , particles [ b ] ! . y )
220+ ctx . moveTo ( particles [ a ] . x , particles [ a ] . y )
221+ ctx . lineTo ( particles [ b ] . x , particles [ b ] . y )
222222 ctx . stroke ( )
223223 }
224224 }
@@ -253,16 +253,16 @@ export function AnimatedBackground() {
253253 if ( ! canvas ) throw new Error ( "Canvas is null (not initialized?)" )
254254
255255 // Calculate direction vector
256- const dx = targetX - gradientPoints [ 0 ] ! . x
257- const dy = targetY - gradientPoints [ 0 ] ! . y
256+ const dx = targetX - gradientPoints [ 0 ] . x
257+ const dy = targetY - gradientPoints [ 0 ] . y
258258
259259 // Smooth movement using linear interpolation
260- gradientPoints [ 0 ] ! . x += dx * moveSpeed
261- gradientPoints [ 0 ] ! . y += dy * moveSpeed
260+ gradientPoints [ 0 ] . x += dx * moveSpeed
261+ gradientPoints [ 0 ] . y += dy * moveSpeed
262262
263263 // Adjust radius based on distance to target
264264 const distanceToTarget = Math . sqrt ( dx * dx + dy * dy )
265- gradientPoints [ 0 ] ! . radius = Math . max (
265+ gradientPoints [ 0 ] . radius = Math . max (
266266 canvas . width * 0.2 ,
267267 Math . min ( canvas . width * 0.4 , canvas . width * 0.3 + distanceToTarget * 0.1 ) ,
268268 )
0 commit comments