Skip to content

Commit

Permalink
update verticalAlignment function
Browse files Browse the repository at this point in the history
  • Loading branch information
beru committed Aug 17, 2024
1 parent a057b75 commit dcc174c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dagre.js
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,7 @@ dagre.layout = (nodes, edges, layout, state) => {
if (ws.size > 0) {
ws = Array.from(ws.keys());
ws = ws.sort((a, b) => pos[a] - pos[b]);
const mp = (ws.length - 1) / 2.0;
const mp = (ws.length - 1) / 2.0000001;
const il = Math.ceil(mp);
for (let i = Math.floor(mp); i <= il; i++) {
const w = ws[i];
Expand Down

0 comments on commit dcc174c

Please # to comment.