Skip to content

Commit 8ac5953

Browse files
mbostockFil
authored andcommitted
undo comment edits
1 parent dfd4e37 commit 8ac5953

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/marks/delaunay.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,14 @@ class DelaunayLink extends Mark {
9393
for (const k in channels) newChannels[k].push(channels[k][tj]);
9494
}
9595

96-
// TODO move to initializer?
9796
const {halfedges, hull, triangles} = Delaunay.from(index, xi, yi);
98-
// inner edges
9997
for (let i = 0; i < halfedges.length; ++i) {
98+
// inner edges
10099
const j = halfedges[i];
101100
if (j > i) link(triangles[i], triangles[j]);
102101
}
103-
// convex hull
104102
for (let i = 0; i < hull.length; ++i) {
103+
// convex hull
105104
link(hull[i], hull[(i + 1) % hull.length]);
106105
}
107106

@@ -164,7 +163,6 @@ class AbstractDelaunayMark extends Mark {
164163
const yi = Y ? (i) => Y[i] : constant(cy);
165164
const mark = this;
166165

167-
// TODO move to initializer?
168166
function mesh(index) {
169167
const delaunay = Delaunay.from(index, xi, yi);
170168
select(this)

0 commit comments

Comments
 (0)