Skip to content

v2.0.0

Compare
Choose a tag to compare
@mourner mourner released this 23 Mar 09:12
· 115 commits to main since this release

⚠️ breaking: Delaunator constructor now accepts a typed flat array of coordinates:

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';