support export canvas to clipboard

This commit is contained in:
dwelle 2020-01-09 17:09:15 +01:00
parent 1541428ab1
commit 1b6c6eb6ea
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>;
}