support export canvas to clipboard (#232)

This commit is contained in:
David Luzar 2020-01-09 17:37:08 +01:00 committed by GitHub
parent 1541428ab1
commit deee57314d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 89 additions and 11 deletions

7
src/global.d.ts vendored Normal file
View file

@ -0,0 +1,7 @@
interface Window {
ClipboardItem: any;
}
interface Clipboard extends EventTarget {
write(data: any[]): Promise<void>;
}