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

Self-contained SVG Export #421

Closed
glatuske opened this issue Jan 31, 2024 · 3 comments · Fixed by #454
Closed

Self-contained SVG Export #421

glatuske opened this issue Jan 31, 2024 · 3 comments · Fixed by #454
Assignees

Comments

@glatuske
Copy link

The usage of Sprotty in our project requires to create static SVG screenshots from the graphs rendered with Sprotty. As an additional requirement this needs to be done headless (with node.js only?) and fully self-contained SVGs (on CSS referenced or inlined - all styles need to be part of the corresponding SVG elements).

@jbicker
Copy link
Contributor

jbicker commented Feb 22, 2024

@spoenemann, I'll take care of this one.

@glatuske
Copy link
Author

@spoenemann We would need a fully calculated size of the exported SVG having width and height set. viewBox and other attributes are not required.

@glatuske
Copy link
Author

@spoenemann Please analyse the need to render the hidden model again in case of SVG export. In general an analysis of the performance would be good. Where is time spent on SVG export compared to normal rendering (e.g. embedding CSS styles, size calculation, ...)

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

Successfully merging a pull request may close this issue.

3 participants