develop-bayer #1

Open
jebus wants to merge 20 commits from develop-bayer into develop
81 changed files with 1614759 additions and 3497 deletions
Showing only changes of commit 28e5dbbcf5 - Show all commits

View File

@ -67,6 +67,9 @@ function draw(pathway, elem) {
const horizontalSpacing = 75; // horizontal space between nodes
const depthMap = new Map();
// Avoid leaving unconnected Nodes leaving the viewport
nodes.forEach(node => {if (node.depth < 0) node.depth = 0;});
// Sort nodes by depth first to minimize crossings
const sortedNodes = [...nodes].sort((a, b) => a.depth - b.depth);