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

Export diagram as SVG or PNG #31

Open
Phrogz opened this issue Feb 28, 2023 · 2 comments
Open

Export diagram as SVG or PNG #31

Phrogz opened this issue Feb 28, 2023 · 2 comments
Labels
feature New feature or request for enhancement high-value Solving this provides large value medium-effort 4–8 hours of work

Comments

@Phrogz
Copy link
Owner

Phrogz commented Feb 28, 2023

What: Command to export the diagram as a graphic. SVG is preferable as its easy and ~free, but PNG will be more popular.
Why: People will want to share their good work with others

@Phrogz Phrogz added feature New feature or request for enhancement medium-effort 4–8 hours of work high-value Solving this provides large value labels Feb 28, 2023
@benstechlab
Copy link

This would be wonderful! FYI, the draw.io VSCODE extension (hediet.vscode-drawio) can save drawings as a PNG or SVG with the source code for that drawing embedded in the image file.

This allows you to have a single source of truth in your version control for both the rendered image and the source for the rendered image. You can then reference that same file in your repo markdown docs for visual display. I would love this for SCXML based diagrams!

@Phrogz
Copy link
Owner Author

Phrogz commented Aug 11, 2023

@benstechlab I can imagine an SVG diagram embedding the SCXML within the XML under its separate namespace. Is this what you're describing? Or are you suggesting (as I can't imagine any other way to do it) that an image of the XML code is present in the diagram?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request for enhancement high-value Solving this provides large value medium-effort 4–8 hours of work
Projects
None yet
Development

No branches or pull requests

2 participants