d3 / d3-delaunay

Compute the Voronoi diagram of a set of two-dimensional points.
https://d3js.org/d3-delaunay
ISC License
611 stars 57 forks source link

renderPoints(5) crashes #130

Closed Fil closed 3 years ago

Fil commented 3 years ago

see https://talk.observablehq.com/t/d3-delaunay-renderpoints-how-to-set-the-radius-with-svg/5014

in https://github.com/d3/d3-delaunay#delaunay_renderPoints [context] is marked as optional, meaning that renderPoints(5) should be treated like renderPoints(null, 5)

https://github.com/d3/d3-delaunay/blob/main/src/delaunay.js#L176