Adding acc to gitGrapg parser

This commit is contained in:
Knut Sveidqvist
2022-04-30 16:06:53 +02:00
parent e917347b81
commit fdd7af9089
3 changed files with 53 additions and 0 deletions

View File

@@ -4,6 +4,13 @@ import mermaidAPI from '../../mermaidAPI';
import * as configApi from '../../config';
import { getConfig } from '../../config';
import common from '../common/common';
import {
setTitle,
getTitle,
getAccDescription,
setAccDescription,
clear as commonClear,
} from '../../commonDb';
let mainBranchName = getConfig().gitGraph.mainBranchName;
let commits = {};
@@ -14,6 +21,9 @@ let curBranch = mainBranchName;
let direction = 'LR';
let seq = 0;
/**
*
*/
function getId() {
return random({ length: 7 });
}
@@ -326,6 +336,7 @@ export const clear = function () {
branches[mainBranch] = null;
curBranch = mainBranch;
seq = 0;
commonClear();
};
export const getBranchesAsObjArray = function () {
@@ -390,5 +401,9 @@ export default {
getCurrentBranch,
getDirection,
getHead,
setTitle,
getTitle,
getAccDescription,
setAccDescription,
commitType,
};