Fix fog colour string warning
This commit is contained in:
parent
6ef3f680b4
commit
4b225e5c14
@ -496,7 +496,9 @@ function MapFog({
|
||||
: editOpacity
|
||||
: 1;
|
||||
// Control opacity only on fill as using opacity with stroke leads to performance issues
|
||||
const fill = new Color(colors[shape.color] || shape.color).alpha(opacity);
|
||||
const fill = new Color(colors[shape.color] || shape.color)
|
||||
.alpha(opacity)
|
||||
.string();
|
||||
const stroke =
|
||||
editable && active
|
||||
? colors.lightGray
|
||||
|
Loading…
Reference in New Issue
Block a user