Voronoi
import { Voronoi } from "https://cdn.skypack.dev/d3@7.8.1";
class Voronoi {}
constructor(delaunay, [xminyminxmaxymax]?);
_cell(i);
_clip(i);
_clipFinite(i, points);
_clipInfinite(
i,
points,
vx0,
vy0,
vxn,
vyn,
);_clipSegment(
x0,
y0,
x1,
y1,
c0,
c1,
);_edge(
i,
e0,
e1,
P,
j,
);_edgecode(x, y);
_init();
_project(
x0,
y0,
vx,
vy,
);_regioncode(x, y);
_renderSegment(
x0,
y0,
x1,
y1,
context,
);cellPolygon(i);
*cellPolygons();
contains(
i,
x,
y,
);*neighbors(i);
render(context);
renderBounds(context);
renderCell(i, context);
update();