-
Notifications
You must be signed in to change notification settings - Fork 8
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
you can add an api for dot #1
Comments
@epiphyllum thanks for your advise, but I am not sure what you mean. Could you provide a more |
for example: when browser initiate a request GET /give/me/graph/of/:flow_id.png to my webserver, webserver will first load data from database using :flow_id, then webserver should create a Digraph class provided by you, and render an image to the browser val flowConfig = loadConfigFromDB(flowId)
val flowDot = new Digraph(comment = "The Flow Graph")
val inputStream = flowDot.getInputStream
val httpResponse = new HTTPResponse(inputStream, `Content-Type:image/png`)
blah blah... |
this project provide an DSL wrapper for graphviz command. it is a good start. |
Thanks for your detailed explaination. I will take a look into this. |
val inputStream = dot.getInputStream
so that it can be easily used for browser rendering in many scala web framework or lib
The text was updated successfully, but these errors were encountered: