Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 6381c24

Browse files
authored
Merge pull request #514 from ggomez91/use-background-color-for-slection-box
Use the selection box's background color for the outline if given
2 parents 4561606 + aec74c9 commit 6381c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/canvasRenderer.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ defineCanvasRenderer 'SelectionBox', do ->
9090
shape._br.width + shape.margin * 2,
9191
shape._br.height + shape.margin * 2)
9292
ctx.lineWidth = 1
93-
ctx.strokeStyle = '#000'
93+
ctx.strokeStyle = shape.backgroundColor or '#000'
9494
ctx.setLineDash([2, 4])
9595
ctx.strokeRect(
9696
shape._br.x - shape.margin, shape._br.y - shape.margin,

0 commit comments

Comments
 (0)