From f192033f3fe8ad9ecf46d2ef94724fc98f860271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=B0=91=E5=8D=AB?= Date: Tue, 20 Feb 2024 12:54:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=BB=E5=B8=83):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8=E6=97=B6=E5=8F=91=E5=87=BA=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/plugin/WorkspacePlugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/plugin/WorkspacePlugin.ts b/src/core/plugin/WorkspacePlugin.ts index 1cff831a..671d97e6 100644 --- a/src/core/plugin/WorkspacePlugin.ts +++ b/src/core/plugin/WorkspacePlugin.ts @@ -2,7 +2,7 @@ * @Author: 秦少卫 * @Date: 2023-06-27 12:26:41 * @LastEditors: 秦少卫 - * @LastEditTime: 2023-11-19 21:05:33 + * @LastEditTime: 2024-02-20 12:54:10 * @Description: 画布区域插件 */ @@ -125,6 +125,7 @@ class WorkspacePlugin { .find((item) => item.id === 'workspace') as fabric.Rect; this.workspace.set('width', width); this.workspace.set('height', height); + this.editor.emit('sizeChange', this.workspace.width, this.workspace.height); this.auto(); }