UNPKG

@tanstack/charts

Version:

A chart grammar for TypeScript and JavaScript. Marks consume your data directly, channels describe visual encodings, and the engine compiles them into a renderer-neutral keyed scene. TanStack's compact scales cover common numeric and categorical mappings.

12 lines (11 loc) 551 B
import type { DelaunayPosition } from './spatial-delaunay-internal.js'; import type { ChartBounds } from './types.js'; export interface VoronoiCellPolygon { readonly pointIndex: number; readonly points: readonly (readonly [number, number])[]; } /** * Returns nondegenerate Voronoi cells clipped to positive final plot bounds. * Exact coincident sites share one cell; all other sites remain distinct. */ export declare function voronoiCellPolygons(positions: readonly DelaunayPosition[], bounds: ChartBounds): readonly VoronoiCellPolygon[];