Skip to content

Commit

Permalink
fix: dev-pr (#305)
Browse files Browse the repository at this point in the history
Co-authored-by: Nanfbh <[email protected]>
  • Loading branch information
nanfb and beihuai11 authored Jan 25, 2024
1 parent 75ebd6b commit 4980cc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/plugin/CopyPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class CopyPlugin {
}

// 复制元素
clone(paramsActiveObeject: fabric.ActiveSelection | fabric.Object) {
clone(paramsActiveObeject?: fabric.ActiveSelection | fabric.Object) {
const activeObject = paramsActiveObeject || this.canvas.getActiveObject();
if (!activeObject) return;
if (activeObject?.type === 'activeSelection') {
Expand Down
2 changes: 1 addition & 1 deletion src/core/plugin/DownFontPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class DownFontPlugin {
this.editor = editor;
}

hookImportBefore(json) {
hookImportBefore(json: string) {
// console.log(downFontByJSON(json).then, 111);
return downFontByJSON(json);
}
Expand Down

0 comments on commit 4980cc5

Please sign in to comment.