Key Takeaways
- Every SVG and React JSX node is measured into an exact convex hull (ConvexCircle or ConvexPolygon) prior to relaxation.
- Spatial-hash broad-phase pruning plus Separating Axis Theorem (SAT) Minimum Translation Vectors guarantee 0.0 px node overlap.
- Graph-coloring OKLab edge contrast optimization keeps multi-cluster bridge items vivid on both light and dark canvases.
Spring-electric force graphs treat node overlap as a soft penalty: increase repulsion and related nodes fly apart; increase attraction and text cards collide into unreadable stacks.
Exact Convex Hulls + Spatial Hash SAT
SimplexViz treats covering-triangle containment and zero convex overlap as hard geometric invariants rather than soft forces:
- Renderers measure every node—whether a 10 px circle, a 14-bar waveform capsule, or a 110×28 px React JSX card—into an exact
ConvexGeometry(ConvexCircleorConvexPolygon). UniformSpatialHashGridprunes broad-phase pair checks toO(N)expected time per iteration.- Narrow-phase Separating Axis Theorem (SAT) computes exact Minimum Translation Vectors (
computeConvexMtv,computeCirclePolygonMtv), clamping every node strictly inside its covering simplex envelope untilmaxPenetrationPx === 0.
OKLab Edge Contrast Optimization
Adjacent mesh vertices maximize perceptual distance ΔE_OK
Barycentric Mixing: sRGB vs. OKLab
Preserves lightness L and chroma C across bridge items
Combined with perceptual OKLab edge-contrast optimization, interdisciplinary bridge items retain crisp luminance and vivid hue separation on both light and dark canvases.