fix tests
This commit is contained in:
parent
550080bd82
commit
a485386a3b
1 changed files with 4 additions and 3 deletions
|
@ -384,11 +384,12 @@ export const getColors = (sourceColors, sourceOpacity) => SLOT_ORDERED.reduce(({
|
||||||
: (OPACITIES[opacitySlot] || {}).defaultValue
|
: (OPACITIES[opacitySlot] || {}).defaultValue
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (Number.isNaN(outputColor.a)) {
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Number.isNaN(outputColor.a) || outputColor.a === undefined) {
|
||||||
outputColor.a = 1
|
outputColor.a = 1
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (opacitySlot) {
|
if (opacitySlot) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue