-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add viz by generating svg image #67
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
base: main
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- this should be a browser-compatable package
- graphviz is not a good package to me. it doesn't drag node, and it's a static svg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All I want is exactly this, or I will not merge the PR
21e0d53
to
c624228
Compare
commit: |
}, | ||
"dependencies": { | ||
"@llama-flow/core": "latest", | ||
"@llama-flow/viz": "workspace:*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to be latest after release
this looks better now |
handle
to create a graph of the workflow (usinggraphology
as data structure)getGraph
on a workflow generated withconst workflow = withGraph(createWorkflow());
toSigma
converts the graph into a graph that is renderable by https://www.sigmajs.org/demo/visualization
is an example to render a complex workflow (withsendEvent
andfilter
) using sigma.js, result looks like: