Skip to content

Commit 352d086

Browse files
committed
fix formatting
1 parent 38e39c9 commit 352d086

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/layouts/dodge.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function dodge(y, x, anchor, padding, options) {
5555
const intervals = [];
5656
const l = X[i] - R[i];
5757
const r = X[i] + R[i];
58-
58+
5959
// For any previously placed circles that may overlap this circle, compute
6060
// the y-positions that place this circle tangent to these other circles.
6161
// https://observablehq.com/@mbostock/circle-offset-along-line
@@ -66,15 +66,15 @@ function dodge(y, x, anchor, padding, options) {
6666
const dy = Math.sqrt(dr * dr - dx * dx);
6767
intervals.push([yj - dy, yj + dy]);
6868
});
69-
69+
7070
// Find the best y-value where this circle can fit.
7171
for (let y of intervals.flat().sort(compare)) {
7272
if (intervals.every(([lo, hi]) => y <= lo || y >= hi)) {
7373
Y[i] = y;
7474
break;
7575
}
7676
}
77-
77+
7878
// Insert the placed circle into the interval tree.
7979
tree.insert([l, r, i]);
8080
}

0 commit comments

Comments
 (0)