Skip to content

Commit

Permalink
Update view.js (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Oct 10, 2021
1 parent afb3416 commit ab8cb83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,14 +558,14 @@ view.View = class {
this._host.event('Graph', 'Render', 'Size', nodes.length);

const options = {};
options.nodesep = 15;
options.ranksep = 15;
options.nodesep = 20;
options.ranksep = 20;
const rotate = graph.nodes.every((node) => node.inputs.filter((input) => input.arguments.every((argument) => !argument.initializer)).length === 0 && node.outputs.length === 0);
const showHorizontal = rotate ? !this._showHorizontal : this._showHorizontal;
if (showHorizontal) {
options.rankdir = "LR";
}
if (nodes.length > 1500) {
if (nodes.length > 3000) {
options.ranker = 'longest-path';
}

Expand Down

0 comments on commit ab8cb83

Please sign in to comment.