Update fog edit pattern opacity for new shading method
This commit is contained in:
parent
27c68b499d
commit
f5ccbe8f8f
@ -490,11 +490,7 @@ function MapFog({
|
|||||||
const holes =
|
const holes =
|
||||||
shape.data.holes &&
|
shape.data.holes &&
|
||||||
shape.data.holes.map((hole) => hole.reduce(reducePoints, []));
|
shape.data.holes.map((hole) => hole.reduce(reducePoints, []));
|
||||||
const opacity = editable
|
const opacity = editable ? editOpacity : 1;
|
||||||
? !shape.visible
|
|
||||||
? editOpacity / 2
|
|
||||||
: editOpacity
|
|
||||||
: 1;
|
|
||||||
// Control opacity only on fill as using opacity with stroke leads to performance issues
|
// Control opacity only on fill as using opacity with stroke leads to performance issues
|
||||||
const fill = new Color(colors[shape.color] || shape.color)
|
const fill = new Color(colors[shape.color] || shape.color)
|
||||||
.alpha(opacity)
|
.alpha(opacity)
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 802 B |
Loading…
x
Reference in New Issue
Block a user