Skip to content

Commit 3f2f41d

Browse files
committed
simpler!
1 parent dc14bf8 commit 3f2f41d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/marks/delaunay.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,9 @@ function voronoiof(delaunay, dimensions) {
279279
return delaunay.voronoi([marginLeft, marginTop, width - marginRight, height - marginBottom]);
280280
}
281281

282-
function delaunayMark(DelaunayMark, data, {x, y, transform, initializer, ...options} = {}) {
282+
function delaunayMark(DelaunayMark, data, {x, y, initializer, ...options} = {}) {
283283
[x, y] = maybeTuple(x, y);
284-
// Apply the exclusiveFacets transform before any other transform or initializer.
285-
options = basic(options, exclusiveFacets);
286-
if (transform != null) options = basic(options, transform);
287-
options = {...basic(options, exclusiveFacets), initializer, x, y};
288-
return new DelaunayMark(data, options);
284+
return new DelaunayMark(data, {...basic({...options, x, y}, exclusiveFacets), initializer});
289285
}
290286

291287
export function delaunayLink(data, options) {

0 commit comments

Comments
 (0)