d3 Voronoi Worker
A thousand randomly moving points drive a live Voronoi tessellation, visualized as colored cells on a Canvas. A separate SVG circle tracks the mouse, while the page displays the frame rates of the data updates, the tessellation computation, and the overall rendering. The heavy Voronoi calculation runs in a Web Worker using `d3.voronoi()`, keeping the mouse tracking responsive even when the tessellation lags behind.
AI-generated descriptionThis block implements two independent processes:
one that computes the new values of data (by moving them randomly around)
one that asks a javascript worker to compute the voronoi tesselation of the data, and draws the polygons on callback
A SVG overlay tracks the mouse: it stays responsive even if the voronoi calculation is sluggish.
We watch the performance of both processes and display their fps rates. Tweak the data range and time intervals to see how they relate.