voronoi
voronoi
Voronoi cells from point sites (d3-delaunay).
Imports
import {
compoundVoronoi, innerVoronoi, innerVoronoiRaw, voronoi,
type VoronoiOptions,
} from 'pattapatta' Functions
| Function | Description |
|---|---|
compoundVoronoi(sites, opts?) | Cells clipped to bbox |
innerVoronoi(sites, container, opts?) | Intersect cells with path |
innerVoronoiRaw | Alias of compound |
opts.bounds defaults to a padded site AABB.