UNPKG

@tanstack/charts

Version:

<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/charts.png?theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/

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[];