Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nihaojob committed May 27, 2024
2 parents 780e147 + 2bd50e4 commit 627e72a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/plugin/PolygonModifyPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 627e72a

Please sign in to comment.