mirror of
https://github.com/OFFIS-ESC/constellation-analyzer
synced 2026-03-13 12:08:46 +00:00
Critical Performance Props Added:
1. onlyRenderVisibleElements={true}
- Only renders nodes/edges currently in viewport
- Huge performance win for large graphs (100+ nodes)
- Eliminates rendering of off-screen elements during pan/zoom
2. elevateEdgesOnSelect={true}
- Uses z-index instead of re-rendering for selection
- Prevents unnecessary edge recalculation
3. selectNodesOnDrag={false}
- Disables selection during drag operations
- Reduces re-render churn during viewport changes
Expected Impact:
- 200-node graph previously rendered all 200 nodes on every frame
- Now only renders ~20-30 visible nodes (10× reduction)
- Should dramatically improve pan/zoom smoothness
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| __tests__/integration | ||
| components | ||
| contexts | ||
| hooks | ||
| lib/tuio | ||
| stores | ||
| styles | ||
| test-utils | ||
| types | ||
| utils | ||
| App.tsx | ||
| constants.ts | ||
| main.tsx | ||
| vite-env.d.ts | ||