-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add ability to download sequence diagrams as svg #51
Comments
Hello @mickel8, Good to hear the tools are useful to you. Please share your master's thesis when it's done (or before ;)), I would be interested in reading it! There are some issues with your request:
As such, for now, all I could offer would be a direct SVG export of whatever is rendered internally by the tool without added frills (as those would require implementation work I don't have). That SVG can be gotten from the Chrome devtools HTML inspector manually as well. You mention you tried this, but it didn't work. Do you have additional info on what didn't work concretely? What did you try? What are you trying to accomplish? Maybe I can help you figure this out if that's sufficient for what you'd need? In the future, I'd like to add proper export options to qvis for all diagrams (e.g., adjust font sizes, add filtering like you say, etc.) but that's a bigger project than I can take on atm. |
Sure! It's nothing special but as soon as it will be ready I will send it to you 😉
I just tried to copy this svg element and save it as
Sounds great! At this moment I am just saving it as png. It's not so comfortable but it works 😄 |
So I just tried this out myself and it's indeed the use of This means you have to embed the svg inside a proper html tag, like so:
You then also have to add namespace declarations to the svg element itself, for example:
Using that, I get everything to show up when viewing the resulting .html file in the browser and I can also print it to PDF (though scaling is sometimes... dubious as I indicated above). There's also a problem with the font being times new roman default, which can be fixed by having on top (right after
It's not perfect, but maybe with a few more tweaks you can get something workable out of it! See an example I just made here: |
Thanks a lot! |
Hi,
thanks for your work. This tool is so useful.
I am using it in my master thesis and I wish there was one more feature - ability to download sequence diagram as svg image.
This would allow you to attach such diagrams in papers or thesis as well as modifiy them e.g skip some events, add subtitles, etc.
One thing I was trying to do was to inspect diagram and save HTML svg element but it didn't work for me :/
I can try to make a PR but I would probably need some help
The text was updated successfully, but these errors were encountered: