Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Aug 22, 2023
1 parent c918537 commit 5625c89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/marks/delaunay.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class Voronoi extends Mark {
for (let [fi, facet] of facets.entries()) {
if (X) facet = facet.filter((i) => defined(X[i]));
if (Y) facet = facet.filter((i) => defined(Y[i]));
const Cf = C[fi] = [];
const Cf = (C[fi] = []);
for (const [, index] of maybeGroup(facet, Z)) {
const delaunay = Delaunay.from(index, xi, yi);
const voronoi = voronoiof(delaunay, dimensions);
Expand All @@ -249,7 +249,11 @@ class Voronoi extends Mark {
}
render(index, scales, channels, dimensions, context) {
const {x, y} = scales;
const {x: X, y: Y, cells: {[index.fi ?? 0]: C}} = channels;
const {
x: X,
y: Y,
cells: {[index.fi ?? 0]: C}
} = channels;
return create("svg:g", context)
.call(applyIndirectStyles, this, dimensions, context)
.call(applyTransform, this, {x: X && x, y: Y && y})
Expand Down

0 comments on commit 5625c89

Please sign in to comment.