prioritize disabled opacity over transparent keyword

このコミットが含まれているのは:
Henry Jameson 2020-03-06 21:20:42 +02:00
コミット 7aa5bf0896
1個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -354,10 +354,10 @@ export const getColors = (sourceColors, sourceOpacity) => SLOT_ORDERED.reduce(({
const opacitySlot = value.opacity || getOpacitySlot(key)
const ownOpacitySlot = value.opacity
if (sourceColor === 'transparent') {
outputColor.a = 0
} else if (ownOpacitySlot === null) {
if (ownOpacitySlot === null) {
outputColor.a = 1
} else if (sourceColor === 'transparent') {
outputColor.a = 0
} else {
const opacityOverriden = ownOpacitySlot && sourceOpacity[opacitySlot] !== undefined