mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 22:39:26 +02:00
format
This commit is contained in:
@@ -83,7 +83,8 @@ const findClosestParent = (parents) => {
|
|||||||
let maxPosition = 0;
|
let maxPosition = 0;
|
||||||
|
|
||||||
parents.forEach((parent) => {
|
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) {
|
if (parentPosition >= maxPosition) {
|
||||||
closestParent = parent;
|
closestParent = parent;
|
||||||
maxPosition = parentPosition;
|
maxPosition = parentPosition;
|
||||||
@@ -716,8 +717,8 @@ const drawArrow = (svg, commitA, commitB, allCommits) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {*} svg
|
* @param {*} svg
|
||||||
* @param {CommitMap} commits
|
* @param {CommitMap} commits
|
||||||
*/
|
*/
|
||||||
const drawArrows = (svg, commits) => {
|
const drawArrows = (svg, commits) => {
|
||||||
const gArrows = svg.append('g').attr('class', 'commit-arrows');
|
const gArrows = svg.append('g').attr('class', 'commit-arrows');
|
||||||
|
Reference in New Issue
Block a user