From ffc6cae7f5a7da949487b6b83b5d7c56abf98b50 Mon Sep 17 00:00:00 2001 From: Ashish Jain Date: Thu, 17 Feb 2022 18:12:17 +0100 Subject: [PATCH] fix: adding gitgraph to default config --- src/defaultConfig.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/defaultConfig.js b/src/defaultConfig.js index 3003a9997..187b7eb2e 100644 --- a/src/defaultConfig.js +++ b/src/defaultConfig.js @@ -1064,6 +1064,25 @@ const config = { rect_padding: 10, line_height: 20, }, + gitGraph: { + diagramPadding: 8, + nodeSpacing: 150, + nodeFillColor: 'yellow', + nodeStrokeWidth: 2, + nodeStrokeColor: 'grey', + lineStrokeWidth: 4, + branchOffset: 50, + lineColor: 'grey', + leftMargin: 50, + branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'], + nodeRadius: 10, + nodeLabel: { + width: 75, + height: 100, + x: -25, + y: 0, + }, + }, }; config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;