Skip to content

Commit 15e914b

Browse files
add border to image
1 parent 091948e commit 15e914b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Board/Board.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ const Board = React.forwardRef<BoardActions, BoardProps>(
214214
scaleY: 1,
215215
originX: "left",
216216
originY: "top",
217+
stroke: "black",
218+
strokeWidth: 1,
217219
},
218220
);
219221
resolve();
@@ -995,6 +997,8 @@ const Board = React.forwardRef<BoardActions, BoardProps>(
995997
top: (canvas.height ?? 1) / 2,
996998
originX: "middle",
997999
originY: "middle",
1000+
stroke: "black",
1001+
strokeWidth: 1,
9981002
});
9991003
canvas!.renderAll();
10001004
onLoadedImage?.({ width: img.width ?? 0, height: img.height ?? 0 });

0 commit comments

Comments
 (0)