🌍 Public
Viewing a saved revision (read-only)
28387c47e11d4fd98aca1a144c5634a3
Svelte + D3: Voronoi
A Voronoi diagram partitions random points into cells, with a highlighted pink cell and black dot that follow the mouse cursor across the screen. The example uses D3's `Delaunay` and `voronoi` APIs to compute the diagram from 100 randomly generated data points, then renders it as SVG paths and circles in a Svelte component with reactive declarations for scales and layout.
AI-generated description