refactor: code of copy
This commit is contained in:
1 parent
3c8b04d91a
commit
16a6cca015
3 files changed
+19
-49
No files matched your search
@@ -70,12 +70,15 @@ const AffineBoard = ({
|
||||
set_app(app);
|
||||
},
|
||||
async onCopy(e, groupIds) {
|
||||
const [mimeType, data] = await getClipDataOfBlocksById(
|
||||
const clip = await getClipDataOfBlocksById(
|
||||
editor,
|
||||
groupIds
|
||||
);
|
||||
|
||||
e.clipboardData?.setData(mimeType, data);
|
||||
e.clipboardData?.setData(
|
||||
clip.getMimeType(),
|
||||
clip.getData()
|
||||
);
|
||||
},
|
||||
onChangePage(app, shapes, bindings, assets) {
|
||||
Promise.all(
|
||||
|
||||
Reference in new issue
Block a user