-
Notifications
You must be signed in to change notification settings - Fork 86
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
How do I export the elkt generated diagram to svg or png? #1101
Comments
Well, you cannot. At least not directly, since it was not made for this. However, |
I see that elk-cli expects json input. Is there anyway I can supply elkt and get the output? Or some cli way to convert elkt to json so that I can use elk-cli? |
The elk live demonstrator has a converter tool that you can use. |
Thanks that works! |
The ELK tools don't really provide a better way since it isn't intended to be used for rendering. There is a PR in elkjs which might be interesting for you to look into. To draw elkt graphs you may also want to look at klighd-vscode which has a vscode extension and a cli tool that can create renderings of elkt graphs and can also save these as svgs. I'm not sure there is currently an option to directly create svgs with only a command line invocation, but that is a functionality that I could imagine being built at some point if there is interest. |
I think eclipse ELK is a fantastic DSL and should be used more often by people :)
In my view the cli should allow either elkt or json input and output the svg/png file that we see in the interactive editor. |
How do I export a elk diagram that I created in the interactive editor, to svg, png or some other file format?
I tried searching in the repo but couldn't find anything.
The text was updated successfully, but these errors were encountered: