-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
feat: resave to png/svg with metadata if you loaded your scene from a png/svg file #3645
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/excalidraw/excalidraw/BB1zn4SE2RE19pDiRtaqA95L7Fcp |
5f60bac
to
53e1d6c
Compare
Force-pushed to resolve conflicts. Entirely imports, I think. Next time this happens, I might try putting my imports higher up in the bottom of the block, to reduce future conflicts. |
Hey. So checking the PR, do we need to store |
I've pushed a version without storing Also fixed a case of drag&dropping an image on canvas which previously wasn't persisting fileHandle. |
Also fixed not persisting fileHandle on image export 🚀 |
Sweet. I had just assumed that fileHandle was opaque because "handle"s are usually opaque in other languages that I used. That looks much better 😀 |
I had done this as a separate commit on a different PR because I wasn't sure of the UX requirements : f5a248b |
I see. Well, it's done now so let's ship it :) |
This is a cleaned-up version of #3516, and fixes #2261. It doesn't attempt anywhere near the number of refactors that I outlined in that PR, because I realised that many of the functions I wanted to change were already part of the public API.
add saveType to AppState
when reviewing, if you have already reviewed that PR.resaveAsImageWithScene()
helper, as shown in the diagram below, which calls out to the exportScene machinery when you cmd+S.Steps to test:
Things that have not changed: