Skip to content

feat: add export to svg #283

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

Merged
merged 1 commit into from
May 6, 2023
Merged

feat: add export to svg #283

merged 1 commit into from
May 6, 2023

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented May 6, 2023

There's a "download image" button in the sidebar. Once clicked, a high-quality SVG file will be generated (for the current viewport of the canvas). The file name is <reponame>-<repoId>-<ISOdate>.svg so that it is easy to backup your work with version info.

The SVG file can be big, e.g., 5MB. You can then convert it into pdf, which makes it 150KB.

The UI screenshot:

Screenshot from 2023-05-06 15-39-55

Generated .svg file:

test-download-9f02svi2nk1bpetqeohs-2023-05-06T22_38_17 848Z

@lihebi lihebi merged commit f0206a5 into codepod-io:main May 6, 2023
@lihebi
Copy link
Collaborator Author

lihebi commented May 6, 2023

Reference: xyflow/xyflow#1061

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 this pull request may close these issues.

1 participant