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

API and CLI for rendering graph to image #375

Merged
merged 22 commits into from
Jan 16, 2018
Merged

API and CLI for rendering graph to image #375

merged 22 commits into from
Jan 16, 2018

Conversation

jonnor
Copy link
Member

@jonnor jonnor commented Jan 3, 2018

From #374
So one can output a PNG/JPEG (and SVG). Useful for instance in documentation

Missing

  • Rendering element to canvas and saving as PNG
  • CLI tool that can run this in browser and return results
  • Fit viewport to the graph
  • Fix hosting hosting of jsjob script in CLI tool
  • Move API code into library, only .jsjob outside
  • Basic tests

Future

  • Fix group labels show fully opaque/white
  • Fix missing FontAwesome icons (components, exported ports)
  • Perform autolayout when neccesary (graph w/o position info)
  • Allow enforcing high level-of-detail (always portnames, component names)

Example usage:

the-graph-render examples/assets/photobooth.json --format jpeg --theme the-graph-dark --width 2400 --quality 0.95

Closes #287

@jonnor jonnor requested a review from bergie January 3, 2018 05:07
@jonnor
Copy link
Member Author

jonnor commented Jan 3, 2018

Example output

createconfig

@jonnor jonnor merged commit c8b370f into master Jan 16, 2018
@jonnor jonnor deleted the graph-render branch January 16, 2018 11:01
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.

1 participant