Returns an iterable over the indexes of the cells that share a common edge with the specified cell i. Voronoi neighbors are always neighbors on the Delaunay graph, but the converse is false when the common edge has been clipped out by the Voronoi diagram’s viewport.
Renders the mesh of Voronoi cells to an SVG path string.
Renders the mesh of Voronoi cells to the specified context. The specified context must implement the context.moveTo and context.lineTo methods from the CanvasPathMethods API.
Renders the viewport extent to an SVG path string.
Renders the viewport extent to the specified context. The specified context must implement the context.rect method from the CanvasPathMethods API. Equivalent to context.rect(voronoi.xmin, voronoi.ymin, voronoi.xmax - voronoi.xmin, voronoi.ymax - voronoi.ymin).
Renders the cell with the specified index i to an SVG path string.
Renders the cell with the specified index i to the specified context. The specified context must implement the context.moveTo, context.lineTo, and context.closePath methods from the CanvasPathMethods API.
The circumcenters of the Delaunay triangles [cx0, cy0, cx1, cy1, ...]. Each contiguous pair of coordinates cx, cy is the circumcenter for the corresponding triangle. These circumcenters form the coordinates of the Voronoi cell polygons.
The Voronoi diagram’s associated Delaunay triangulation.
An array [vx0, vy0, wx0, wy0, ...] where each non-zero quadruple describes an open (infinite) cell on the outer hull, giving the directions of two open half-lines.
The bounds of the viewport [xmin, ymin, xmax, ymax] for rendering the Voronoi diagram. These values only affect the rendering methods (voronoi.render, voronoi.renderBounds, cell.render).
Voronoi regions