Skip to content

Commit

Permalink
support a second parameter in x and y accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed May 17, 2024
1 parent ccbf535 commit 58fae4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contour.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function geoContour() {
let v;
const contour = tricontour()
.triangulate((data, x, y) => {
v = geoDelaunay(data.map((d) => [x(d), y(d)]));
v = geoDelaunay(data.map((d, i) => [x(d, i), y(d, i)]));
return v.delaunay;
})
.pointInterpolate((i, j, a) => {
Expand Down

0 comments on commit 58fae4f

Please sign in to comment.