@lakea/viz (Planned)
Purpose
Section titled “Purpose”@lakea/viz provides low-level visualization utilities:
- D3 bindings — Reusable scales, axes, selections
- Three.js helpers — Scene setup, camera controls, star rendering
- Performance — LOD systems, culling, instancing
Planned Structure
Section titled “Planned Structure”packages/viz/src/├── d3/│ ├── scales.ts # Astronomical scale helpers│ ├── axes.ts # RA/Dec axis formatting│ └── bindData.ts # Type-safe data binding├── three/│ ├── scene.ts # Scene setup utilities│ ├── camera.ts # Orbital camera controls│ ├── stars.ts # Point cloud rendering│ └── lod.ts # Level of detail system└── performance/ ├── culling.ts # Frustum culling └── instancing.ts # GPU instancing helpersDesign Principles
Section titled “Design Principles”- Framework-agnostic — Works with React, vanilla JS, any framework
- Performance-first — Designed for millions of data points
- Type-safe — D3 selections and Three.js objects properly typed
- Composable — Small functions that combine well