Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed May 4, 2024
1 parent 1cbd730 commit e2ca8e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/mermaid/src/diagrams/git/gitGraphRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ const findClosestParent = (parents) => {
let maxPosition = 0;

parents.forEach((parent) => {
const parentPosition = dir === 'TB' || dir === 'BT' ? commitPos.get(parent).y : commitPos.get(parent).x;
const parentPosition =
dir === 'TB' || dir === 'BT' ? commitPos.get(parent).y : commitPos.get(parent).x;
if (parentPosition >= maxPosition) {
closestParent = parent;
maxPosition = parentPosition;
Expand Down Expand Up @@ -716,8 +717,8 @@ const drawArrow = (svg, commitA, commitB, allCommits) => {
};

/**
* @param {*} svg
* @param {CommitMap} commits
* @param {*} svg
* @param {CommitMap} commits
*/
const drawArrows = (svg, commits) => {
const gArrows = svg.append('g').attr('class', 'commit-arrows');
Expand Down

0 comments on commit e2ca8e8

Please sign in to comment.