-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Is there any possibility of being able to export the displayed map to PNG from VSCode? #20
Comments
Also, SVG would be nice. 🤓 |
My thoughts on how this could be achieved.. We have html2canvas which would generate the PNG. For SVG it would be the same process but getting the svg markup from the map. This example shows how to save a file - https://github.com/microsoft/vscode-extension-samples/blob/94c1b179c75242072e69fff8199d08e2e5ff4335/fsconsumer-sample/src/extension.ts#L71 to write the file. Another way would be to create a new file tab, and set the text to be that of the svg (which is just xml) and allow the user to save via VSCode. https://code.visualstudio.com/api/references/vscode-api#WorkspaceEdit - createFile. |
Originally posted by @jaxley in damonsk/onlinewardleymaps#71 (comment)
The text was updated successfully, but these errors were encountered: