feat: retain seed on shift-paste (#6509)

thanks for the review 👍
This commit is contained in:
David Luzar 2023-04-24 10:26:21 +02:00 committed by GitHub
parent 9d5cfbbfb7
commit d35386755f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 120 additions and 57 deletions

View file

@ -220,15 +220,7 @@ export const exportToClipboard = async (
} else if (opts.type === "png") {
await copyBlobToClipboardAsPng(exportToBlob(opts));
} else if (opts.type === "json") {
const appState = {
offsetTop: 0,
offsetLeft: 0,
width: 0,
height: 0,
...getDefaultAppState(),
...opts.appState,
};
await copyToClipboard(opts.elements, appState, opts.files);
await copyToClipboard(opts.elements, opts.files);
} else {
throw new Error("Invalid export type");
}