diff --git a/cypress/platform/gitgraph.html b/cypress/platform/gitgraph.html index d8d16f6c9..0186d6209 100644 --- a/cypress/platform/gitgraph.html +++ b/cypress/platform/gitgraph.html @@ -155,7 +155,7 @@ // arrowMarkerAbsolute: true, // themeCSS: '.edgePath .path {stroke: red;} .arrowheadPath {fill: red;}', logLevel: 1, - gitGraph: {rotateCommitLabel: false}, + gitGraph: { rotateCommitLabel: false }, flowchart: { curve: 'linear', htmlLabels: true }, // gantt: { axisFormat: '%m/%d/%Y' }, sequence: { actorMargin: 50, showSequenceNumbers: true }, diff --git a/src/diagrams/git/gitGraphRenderer.js b/src/diagrams/git/gitGraphRenderer.js index 2eb723762..e15e43ac3 100644 --- a/src/diagrams/git/gitGraphRenderer.js +++ b/src/diagrams/git/gitGraphRenderer.js @@ -1,5 +1,5 @@ import { select } from 'd3'; -import { getConfig,setupGraphViewbox } from '../../diagram-api/diagramAPI'; +import { getConfig, setupGraphViewbox } from '../../diagram-api/diagramAPI'; import { log } from '../../logger'; import addSVGAccessibilityFields from '../../accessibility'; @@ -522,8 +522,8 @@ export const draw = function (txt, id, ver, diagObj) { drawArrows(diagram, allCommitsDict); drawCommits(diagram, allCommitsDict, true); - // Setup the view box and size of the svg element - setupGraphViewbox(undefined, diagram, gitGraphConfig.diagramPadding, conf.useMaxWidth); + // Setup the view box and size of the svg element + setupGraphViewbox(undefined, diagram, gitGraphConfig.diagramPadding, conf.useMaxWidth); }; export default {