PitchKit
API Reference@pitchkit/reactFunctions

Voronoi()

function Voronoi<T>(__namedParameters): Element;

Defined in: packages/react/src/Voronoi.tsx:21

One filled <polygon> cell per datum — Voronoi tessellation over every datum's (x, y), clipped to the pitch outline. Cells are computed in provider coordinates (against computePitchGeometry(dimensions).outline) and pixel-transformed afterward, the same order Heatmap's binning uses, so the tessellation itself is independent of orientation/crop.

Type Parameters

Type Parameter
T

Parameters

ParameterType
__namedParametersVoronoiProps<T>

Returns

Element

On this page