@@ -150,9 +150,9 @@ const getNodePos = (i: number, innerWidth: number, rowHeight: number, isMobile:
150150
151151const isLinkActive = ( link : { from : number ; to : number } , activeIndex : number ) => {
152152 if ( activeIndex === 0 ) return false ;
153-
153+
154154 const { from, to } = link ;
155-
155+
156156 if ( activeIndex === 1 ) {
157157 return from === 0 && to === 1 ;
158158 }
@@ -178,7 +178,7 @@ const isLinkActive = (link: { from: number; to: number }, activeIndex: number) =
178178 if ( activeIndex === 8 ) {
179179 return true ;
180180 }
181-
181+
182182 return false ;
183183} ;
184184
@@ -242,7 +242,7 @@ export function ArchitectureVisualization() {
242242 const getLinkPath = (
243243 from : { x : number ; y : number } ,
244244 to : { x : number ; y : number } ,
245- isMobile : boolean
245+ isMobile : boolean ,
246246 ) => {
247247 const dx = cardWidth / 2 ;
248248 const dy = cardHeight / 2 ;
@@ -298,10 +298,7 @@ export function ArchitectureVisualization() {
298298 return (
299299 < div className = "relative w-full mx-auto py-6" ref = { containerRef } >
300300 { /* Flowchart Diagram Wrapper */ }
301- < div
302- className = "relative w-full"
303- style = { { height : innerHeight + margin . top + margin . bottom } }
304- >
301+ < div className = "relative w-full" style = { { height : innerHeight + margin . top + margin . bottom } } >
305302 { /* SVG Flowchart Lines */ }
306303 { width > 0 && (
307304 < svg
@@ -345,7 +342,7 @@ export function ArchitectureVisualization() {
345342 const fromNode = nodesData [ link . from ] ;
346343 const toNode = nodesData [ link . to ] ;
347344 const pathStr = getLinkPath ( fromNode , toNode , isMobile ) ;
348-
345+
349346 const isPathActive = isMobile
350347 ? link . to <= displayStepIndex
351348 : isLinkActive ( link , displayStepIndex ) ;
@@ -360,7 +357,7 @@ export function ArchitectureVisualization() {
360357 markerEnd = "url(#flowchart-arrow)"
361358 className = { cn (
362359 "transition-all duration-300 text-signal" ,
363- isPathActive ? "opacity-100" : "opacity-0"
360+ isPathActive ? "opacity-100" : "opacity-0" ,
364361 ) }
365362 />
366363 ) ;
@@ -408,7 +405,7 @@ export function ArchitectureVisualization() {
408405 ? "border-signal shadow-[0_0_15px_rgba(16,185,129,0.25)] scale-105"
409406 : isVisited
410407 ? "border-signal/50 shadow-sm"
411- : "border-border shadow-sm hover:border-ink/20"
408+ : "border-border shadow-sm hover:border-ink/20" ,
412409 ) }
413410 >
414411 < div className = { cn ( "flex items-center gap-2" , isMobile ? "" : "mb-1" ) } >
@@ -419,7 +416,7 @@ export function ArchitectureVisualization() {
419416 ? "text-signal animate-pulse"
420417 : isVisited
421418 ? "text-signal/80"
422- : "text-muted-foreground/60"
419+ : "text-muted-foreground/60" ,
423420 ) }
424421 strokeWidth = { 1.5 }
425422 />
@@ -428,7 +425,7 @@ export function ArchitectureVisualization() {
428425 < span
429426 className = { cn (
430427 "font-display text-sm leading-tight font-medium" ,
431- isCurrent ? "text-signal font-semibold" : "text-ink"
428+ isCurrent ? "text-signal font-semibold" : "text-ink" ,
432429 ) }
433430 >
434431 { node . title }
@@ -445,7 +442,7 @@ export function ArchitectureVisualization() {
445442 < div
446443 className = { cn (
447444 "font-display text-xs leading-tight font-medium mb-0.5" ,
448- isCurrent ? "text-signal font-semibold" : "text-ink"
445+ isCurrent ? "text-signal font-semibold" : "text-ink" ,
449446 ) }
450447 >
451448 { node . title }
@@ -464,12 +461,10 @@ export function ArchitectureVisualization() {
464461 ? "opacity-100 scale-100 bg-signal text-white"
465462 : isVisited
466463 ? "opacity-100 scale-100 bg-signal/70 text-white"
467- : "opacity-100 scale-100 bg-border text-muted-foreground"
464+ : "opacity-100 scale-100 bg-border text-muted-foreground" ,
468465 ) }
469466 >
470- < span className = "text-[9px] font-bold font-mono" >
471- { i + 1 }
472- </ span >
467+ < span className = "text-[9px] font-bold font-mono" > { i + 1 } </ span >
473468 </ div >
474469 </ div >
475470 </ div >
@@ -516,7 +511,7 @@ export function ArchitectureVisualization() {
516511 "px-3 py-1.5 rounded-lg border flex items-center gap-1.5 font-display text-xs transition-colors" ,
517512 isPlaying
518513 ? "border-signal/30 bg-signal/10 text-signal hover:bg-signal/20"
519- : "border-border hover:bg-mist/30 text-ink/70 hover:text-ink"
514+ : "border-border hover:bg-mist/30 text-ink/70 hover:text-ink" ,
520515 ) }
521516 >
522517 { isPlaying ? (
0 commit comments