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)); }