Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement(version-history), enable generating graph as SVG without installing graphviz #8714

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

davidfirst
Copy link
Member

Until now to generate a graph (either for Version History or for dependencies), the GraphViz library had to be installed in the OS, which made it cumbersome especially for Windows.
This PR uses viz-js package which is basically an implementation of Graphviz in javascript. It doesn't support png/gif formats, but it does support "svg" which is superior for such graphs that can be huge. (with png trying to zoom in result in a blurry image).
In this PR, the bit version-history graph command defaults to this new alternative and a new flag --png falls back to GraphViz.
Later, the dependency graph will be updated as well.

@davidfirst davidfirst merged commit ba9dc9b into master Mar 27, 2024
11 checks passed
@davidfirst davidfirst deleted the graphviz-alternative branch March 27, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants