Skip to content

Commit 1e43e12

Browse files
committed
Added stop_calculating method.
1 parent ad4ca92 commit 1e43e12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

layouts/force-directed-layout.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,8 @@ Layout.ForceDirected = function(graph, options) {
219219
}
220220
return true;
221221
};
222+
223+
this.stop_calculating = function() {
224+
layout_iterations = this.max_iterations;
225+
}
222226
};

0 commit comments

Comments
 (0)