mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
2327cd74e4
P1: Anchor edges at the collapsed-side container atom when only one side of an aggregated edge is expanded. The previous pass always emitted file→file endpoints, but a collapsed container's children aren't rendered as nodes — React Flow silently dropped those edges. Now the collapsed endpoint stays as the container id, and the expanded endpoint becomes the real file id; multiple files collapsing onto the same (container → file) pair are deduped. P2: Pending-fit ref + post-render trigger replaces the fixed 50ms timer for layer-transition fitView. ELK takes ~125ms+ on medium layers, so the timer was firing before positions arrived and the viewport stayed on the old layer. Now we mark a pending fit on navigation change and execute it once `nodes` populate, then requestAnimationFrame so React Flow has placed the nodes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2327cd74e4
·
2026-05-03 17:49:32 +08:00
History