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

[Feat] Render SVG from text input #43

Closed
nhpf opened this issue Feb 10, 2024 · 3 comments
Closed

[Feat] Render SVG from text input #43

nhpf opened this issue Feb 10, 2024 · 3 comments

Comments

@nhpf
Copy link

nhpf commented Feb 10, 2024

Hi @csgoh, thank you for your work on processpiper.
It's the best OSS Diagram-as-Code solution for BPMN that I've found so far.

I have a feature idea that I believe would add value to the project.

I noticed that the render() function in text2diagram.py relies on PIL, while the SVGPainter class uses DrawSVG.
Then, I understand that currently there is no way to create an SVG diagram from text:

From Text From Code
PNG ✔️ ✔️
SVG ✔️

Do you think the implementation of a text2SVGdiagram solution is feasible?

@csgoh
Copy link
Owner

csgoh commented Feb 11, 2024

Hi @nhpf ,

Yep, I will add that to the next release. 😊

@csgoh
Copy link
Owner

csgoh commented Feb 12, 2024

Hi @nhpf, I have just released v0.7.0. You can now save output to SVG by using the render() method. See the change logs in wiki for more information.

@nhpf
Copy link
Author

nhpf commented Feb 12, 2024

Thank you, @csgoh!
It works really well!

@nhpf nhpf closed this as completed Feb 12, 2024
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

No branches or pull requests

2 participants