Skip to content

Commit f6e93ff

Browse files
committed
Remove trailing whitespace.
1 parent 1ae8d22 commit f6e93ff

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1>Havel-Hakimi</h1>
5353
</div>
5454
<footer>
5555
<hr>
56-
<p class="signature">Made by Jacopo Notarstefano
56+
<p class="signature">Made by Jacopo Notarstefano
5757
(<a href="https://twitter.com/Jaconotar">@Jaconotar</a>)<br /> Based on
5858
<a href="http://bl.ocks.org/rkirsling/5001347">Directed Graph Editor</a> by
5959
Ross Kirsling (<a href="http://rkirsling.github.io/">rkirsling</a>)</p>

js/application.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -212,32 +212,32 @@ function restart () {
212212
.style("stroke", function (d) { return d3.rgb(colors(d.id)).darker().toString(); })
213213
.on("mouseover", function (d) {
214214
if (!mousedown_node || d === mousedown_node) return;
215-
215+
216216
// Enlarge target node.
217217
d3.select(this).attr("transform", "scale(1.1)");
218218
})
219219
.on("mouseout", function (d) {
220220
if (!mousedown_node || d === mousedown_node) return;
221-
221+
222222
// Unenlarge target node.
223223
d3.select(this).attr("transform", "");
224224
})
225225
.on("mousedown", function (d) {
226226
mousedown_node = d;
227227
selected_link = null;
228-
228+
229229
// Toggle selection of this node.
230230
if (mousedown_node === selected_node) {
231231
selected_node = null;
232232
} else {
233233
selected_node = mousedown_node;
234234
}
235-
235+
236236
// Reposition drag line.
237237
drag_line
238238
.classed("hidden", false)
239239
.attr("d", "M" + mousedown_node.x + "," + mousedown_node.y + "L" + mousedown_node.x + "," + mousedown_node.y);
240-
240+
241241
restart();
242242
})
243243
.on("mouseup", function (d) {
@@ -249,7 +249,7 @@ function restart () {
249249
resetMouseVars();
250250
return;
251251
}
252-
252+
253253
// Unenlarge target node.
254254
d3.select(this).attr("transform", "");
255255

@@ -263,7 +263,7 @@ function restart () {
263263
source = mouseup_node;
264264
target = mousedown_node;
265265
}
266-
266+
267267
var link;
268268
link = links.filter(function (l) {
269269
return (l.source === source && l.target === target);
@@ -277,7 +277,7 @@ function restart () {
277277
links.push(link);
278278
}
279279
}
280-
280+
281281
// Select new link.
282282
selected_link = link;
283283
selected_node = null;
@@ -317,7 +317,7 @@ function restart () {
317317

318318
function mousemove () {
319319
if (!mousedown_node) return;
320-
320+
321321
// Update drag line.
322322
drag_line.attr("d", "M" + mousedown_node.x + "," + mousedown_node.y + "L" + d3.mouse(this)[0] + "," + d3.mouse(this)[1]);
323323
restart();

0 commit comments

Comments
 (0)