@@ -297,15 +297,12 @@ function rebuild() {
297297 try {
298298 const report = auditAdjacency ( lattice ) ;
299299 if ( ! report . ok ) {
300- console . warn (
301- `[main] adjacency audit found problems after rebuild:` ,
302- {
303- asymmetric : report . asymmetric . length ,
304- outOfRange : report . outOfRange . length ,
305- selfLoops : report . selfLoops . length ,
306- duplicates : report . duplicates . length ,
307- }
308- ) ;
300+ console . warn ( `[main] adjacency audit found problems after rebuild:` , {
301+ asymmetric : report . asymmetric . length ,
302+ outOfRange : report . outOfRange . length ,
303+ selfLoops : report . selfLoops . length ,
304+ duplicates : report . duplicates . length ,
305+ } ) ;
309306 }
310307 // Expose for interactive debugging from the browser console.
311308 window . __lattice = lattice ;
@@ -640,9 +637,9 @@ els.caClear.addEventListener('click', () => {
640637// ---- Path tool wiring ----
641638els . pathSetStart . addEventListener ( 'click' , ( ) => {
642639 pathStartIdx = currentTileIdx ;
643- // After explicitly setting a start, keep the picker on 'end' so further
644- // clicks (in path-pick mode) choose alternative endpoints.
645- pathPickNext = 'end' ;
640+ // After explicitly setting a start, keep the picker on 'end' so further
641+ // clicks (in path-pick mode) choose alternative endpoints.
642+ pathPickNext = 'end' ;
646643 recomputePath ( ) ;
647644} ) ;
648645els . pathSetEnd . addEventListener ( 'click' , ( ) => {
@@ -701,17 +698,17 @@ window.addEventListener('mouseup', (e) => {
701698 const idx = view . pickTile ( sx , sy ) ;
702699 if ( idx !== null ) {
703700 if ( els . pathMode . checked ) {
704- // Path-pick mode: first click sets the start, subsequent clicks
705- // keep updating the end so alternative endpoints can be explored
706- // without re-picking the start each time.
701+ // Path-pick mode: first click sets the start, subsequent clicks
702+ // keep updating the end so alternative endpoints can be explored
703+ // without re-picking the start each time.
707704 if ( pathPickNext === 'start' ) {
708705 pathStartIdx = idx ;
709706 pathEndIdx = null ;
710707 pathPickNext = 'end' ;
711708 } else {
712709 pathEndIdx = idx ;
713- // Stay in 'end' mode: the next click re-selects the endpoint.
714- pathPickNext = 'end' ;
710+ // Stay in 'end' mode: the next click re-selects the endpoint.
711+ pathPickNext = 'end' ;
715712 }
716713 currentTileIdx = idx ;
717714 view . select ( idx ) ;
@@ -789,4 +786,4 @@ window.addEventListener('keydown', (e) => {
789786
790787// initial build
791788rebuild ( ) ;
792- initDocs ( ) ;
789+ initDocs ( ) ;
0 commit comments