Socket
Book a DemoInstallSign in
Socket

@dolthub/gitgraph-react

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dolthub/gitgraph-react

Draw pretty git graphs in the browser, with React

1.6.4
latest
Source
npmnpm
Version published
Weekly downloads
2
-89.47%
Maintainers
2
Weekly downloads
 
Created
Source

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.

Keywords

react

FAQs

Package last updated on 03 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.