This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: un-squish island graphs — taller canvas, stronger repulsion

- Canvas height 200px → 320px (was cramming 301 nodes vertically)
- Remove hardcoded width/height HTML attrs — constructor sizes via
getBoundingClientRect + devicePixelRatio
- Repulsion force 300 → 500 for better spread
- Warmup ticks 120 → 200 for settled layout

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

author
nandi
co-author
Letta Code
date (May 14, 2026, 3:55 AM UTC) commit 76253998 parent b7bce104
+6 -6
+5 -5
src/frontend/app.ts
··· 179 179 canvas.addEventListener("dblclick", this.onDblClick); 180 180 181 181 // Warm up the simulation 182 - for (let i = 0; i < 120; i++) this.tick(); 182 + for (let i = 0; i < 200; i++) this.tick(); 183 183 this.draw(); 184 184 } 185 185 ··· 213 213 let dx = b.x - a.x; 214 214 let dy = b.y - a.y; 215 215 let dist = Math.sqrt(dx * dx + dy * dy) || 1; 216 - const force = -300 * this.alpha / (dist * dist); 216 + const force = -500 * this.alpha / (dist * dist); 217 217 const fx = (dx / dist) * force; 218 218 const fy = (dy / dist) * force; 219 219 a.vx += fx; ··· 527 527 : ""; 528 528 529 529 const graphOrTitle = hasFullData 530 - ? `<canvas class="island-graph" data-island-id="${escHtml(island.id)}" width="400" height="260"></canvas>` 530 + ? `<canvas class="island-graph" data-island-id="${escHtml(island.id)}"></canvas>` 531 531 : `<div class="island-title-preview">${escHtml(summary)}</div>`; 532 532 533 533 return ` ··· 593 593 <h2>Island</h2> 594 594 <p class="island-meta">${island.vertices!.length} vertices &middot; ${island.edges!.length} edges</p> 595 595 596 - <canvas class="island-graph-large" id="island-detail-graph" width="900" height="500"></canvas> 596 + <canvas class="island-graph-large" id="island-detail-graph"></canvas> 597 597 598 598 <div class="island-section"> 599 599 <h3>Connections</h3> ··· 751 751 <p class="island-summary-large">${escHtml(summary)}</p> 752 752 <p class="island-meta">${island.vertices!.length} vertices &middot; ${island.edges!.length} edges</p> 753 753 754 - <canvas class="island-graph-large" id="strata-graph" width="900" height="500"></canvas> 754 + <canvas class="island-graph-large" id="strata-graph"></canvas> 755 755 756 756 <div class="strata-section"><h3>Synthesis</h3><div class="synthesis-text">${escHtml(s.synthesis)}</div></div> 757 757
+1 -1
src/landing-page.ts
··· 759 759 .island-card:hover { border-color: var(--accent); } 760 760 .island-graph { 761 761 width: 100%; 762 - height: 200px; 762 + height: 320px; 763 763 border-radius: 6px 6px 0 0; 764 764 background: var(--bg); 765 765 cursor: default;