This commit is contained in:
Mirco Wittrien 2019-09-25 16:52:09 +02:00
parent 9e5139ce5f
commit 1f1798dcd8
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -3488,7 +3488,8 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
var isgradient = color && BDFDB.isObject(color);
var selectedcolor = BDFDB.colorCONVERT(isgradient ? color[Object.keys(color)[0]] : color, 'HEX') || '#000000';
var [h, s, l] = BDFDB.colorCONVERT(selectedcolor, 'HSLCOMP');
var a = BDFDB.colorGETALPHA(selectedcolor);
var a = BDFDB.colorGETALPHA(isgradient ? color[Object.keys(color)[0]] : color);
a = typeof a == undefined || a == null ? 1 : a;
if (options.comp) options.alpha = false;