feat: replace Sigma 2D with Three.js 3D graph renderer - #6
Open
joel611 wants to merge 2 commits into
Open
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Move all layout computation (orbital seed + ForceAtlas2 + noverlap) to server-side Bun pipeline. Bake x/y/z positions into GraphNode JSON. Replace Sigma.js + bundled FA2/noverlap in HTML with vanilla Three.js WebGLRenderer (InstancedMesh spheres, LineSegments edges, OrbitControls, Raycaster picking). Depth encoded on z-axis (depth * -60). - types.ts: add x/y/z to GraphNode - orbital-layout.ts: rewrite to arc-per-community algorithm + computeLayout (FA2 + noverlap server-side via graphology deps) - graph-builder.ts: call computeLayout() at end of buildGraph() - html-report.ts: remove ~600 lines of client-side layout/Sigma code, add Three.js 3D renderer with sun glow, instanced nodes, edge lines - vendor/: delete forceatlas2.bundle.js + noverlap.bundle.js, add three.bundle.js (Three.js + OrbitControls bundled for browser) - 96 tests pass (2 new z-depth encoding tests) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Net effect
Test plan
🤖 Generated with Claude Code