From 2bd50e4664116cdfdbe65690cf1aad69c38443b4 Mon Sep 17 00:00:00 2001 From: wuchenguang1998 <63847336+wuchenguang1998@users.noreply.github.com> Date: Mon, 27 May 2024 09:46:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8Dpatch=20(#399)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/plugin/PolygonModifyPlugin.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/plugin/PolygonModifyPlugin.ts b/packages/core/plugin/PolygonModifyPlugin.ts index c3a6ccd3..a76d2fd1 100644 --- a/packages/core/plugin/PolygonModifyPlugin.ts +++ b/packages/core/plugin/PolygonModifyPlugin.ts @@ -90,10 +90,9 @@ function renderIconEdge( left: number, top: number, styleOverride: any, - fabricObject: fabric.Object + fabricObject: fabric.Object, + img: HTMLImageElement ) { - const img = document.createElement('img'); - img.src = edgeImg; drawImg(ctx, left, top, img, 25, 25, fabric.util.degreesToRadians(fabricObject.angle || 0)); }