v2.0.0
const coords = new Float64Array(x0, y0, x1, y1, ...);
const delaunay = new Delaunator()
For the old constructor behavior, use Delaunator.from
:
const delaunay = Delaunator.from([[10, 10], [20, 20], ...]);
🍏 Delaunator can now be used as a ES module in environments that support them:
import Delaunator from 'delaunator';