Skip to content

Commit

Permalink
Merge pull request #417 from RohitPaul0007/patch-60
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
rustedgrail committed Sep 11, 2023
2 parents eb5b9f0 + cdfb451 commit 30850d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/position/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

var util = require("../util");
var positionX = require("./bk").positionX;
let util = require("../util");
let positionX = require("./bk").positionX;

module.exports = position;

Expand All @@ -13,9 +13,9 @@ function position(g) {
}

function positionY(g) {
var layering = util.buildLayerMatrix(g);
var rankSep = g.graph().ranksep;
var prevY = 0;
let layering = util.buildLayerMatrix(g);
let rankSep = g.graph().ranksep;
let prevY = 0;
layering.forEach(layer => {
const maxHeight = layer.reduce((acc, v) => {
const height = g.node(v).height;
Expand Down

0 comments on commit 30850d4

Please sign in to comment.