Closed wereHamster closed 7 years ago
d3-voronoi v1.1.0
const v = d3.voronoi()([[0,0], [0,0]]); v.find(0, 0); // <- Uncaught TypeError: Cannot read property 'site' of undefined(…)
If you inspect v.cells you'll see that the first item in the array is undefined instead of a cell object.
v.cells
undefined
v.triangles() also throws an exception, although a different message. And v.triangles() returns an array where the first element is undefined.
v.triangles()
The documentation doesn't mention exceptions at all, which is why I didn't expect them.
d3-voronoi v1.1.0
If you inspect
v.cells
you'll see that the first item in the array isundefined
instead of a cell object.v.triangles()
also throws an exception, although a different message. Andv.triangles()
returns an array where the first element isundefined
.The documentation doesn't mention exceptions at all, which is why I didn't expect them.