Fix git graph default style issue

This commit is contained in:
Tyler Long 2017-04-22 22:12:10 +08:00
parent 4ba3ff6769
commit b4e8cffd0a
2 changed files with 5 additions and 6 deletions

View File

@ -65,9 +65,8 @@ Add another diagram to demo page : 48h
gitGraph :
options
{
"key": "value",
"nodeWidth": 150,
"nodeSpacing" : 150
"nodeSpacing" : 150,
"nodeRadius": 10
}
end
commit

View File

@ -8,7 +8,7 @@ const log = Logger.Log
var allCommitsDict = {}
var branchNum
var config = {
nodeSpacing: 75,
nodeSpacing: 150,
nodeFillColor: 'yellow',
nodeStrokeWidth: 2,
nodeStrokeColor: 'grey',
@ -17,12 +17,12 @@ var config = {
lineColor: 'grey',
leftMargin: 50,
branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'],
nodeRadius: 15,
nodeRadius: 10,
nodeLabel: {
width: 75,
height: 100,
x: -25,
y: 15
y: 0
}
}
var apiConfig = {}