@dolthub/gitgraph-react
v1.6.4
Published
Draw pretty git graphs in the browser, with React
Downloads
12
Readme
This is a fork package of React rendering library of GitGraph.js.
This package makes changes to take commit info from DoltHub in order to render the commit graph.
Changes are:
in
packages/gitgraph-react/src/BranchLabel.tsx
, changed the branch label font size and position.in
packages/gitgraph-react/src/Commit.tsx
, move the branch label to the right side of the commit hash and message.in
packages/gitgraph-react/src/Gitgraph.tsx
, there are multiple changes:a. Reverse the branch path paint order, so the left branch path would cover the right one (the left ones have more priority).
b. the commit message object is given a fixed height, and would not calculate the height by its content to avoid graph rendering bugs (sometimes the commit nodes are positioned before these heights are calculated, which caused overlaps).
c. make pagination work by not recalculating the position of commits of the previous page.