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 : gitGraph :
options options
{ {
"key": "value", "nodeSpacing" : 150,
"nodeWidth": 150, "nodeRadius": 10
"nodeSpacing" : 150
} }
end end
commit commit

View File

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