Spaces:
Running
Running
Update interface.js
Browse files- interface.js +6 -2
interface.js
CHANGED
|
@@ -94,6 +94,7 @@ const currentScriptTag = document.currentScript;
|
|
| 94 |
data-dr="${c.color[0]}" data-dg="${c.color[1]}" data-db="${c.color[2]}"
|
| 95 |
data-er="${c.emit[0]}" data-eg="${c.emit[1]}" data-eb="${c.emit[2]}"
|
| 96 |
data-boolTrans="${c.boolTrans}"
|
|
|
|
| 97 |
aria-label="${c.title}"
|
| 98 |
title="${c.title}"
|
| 99 |
tabindex="0"
|
|
@@ -455,8 +456,11 @@ const currentScriptTag = document.currentScript;
|
|
| 455 |
const er = parseFloat(btn.getAttribute('data-er'));
|
| 456 |
const eg = parseFloat(btn.getAttribute('data-eg'));
|
| 457 |
const eb = parseFloat(btn.getAttribute('data-eb'));
|
| 458 |
-
const bt = parseFloat(btn.getAttribute('data-boolTrans'))
|
| 459 |
-
|
|
|
|
|
|
|
|
|
|
| 460 |
}
|
| 461 |
closeColorPanel();
|
| 462 |
});
|
|
|
|
| 94 |
data-dr="${c.color[0]}" data-dg="${c.color[1]}" data-db="${c.color[2]}"
|
| 95 |
data-er="${c.emit[0]}" data-eg="${c.emit[1]}" data-eb="${c.emit[2]}"
|
| 96 |
data-boolTrans="${c.boolTrans}"
|
| 97 |
+
data-ColorBgR= "${c.colorBg[0]}" data-ColorBgG= "${c.colorBg[1]}" data-ColorBgB= "${c.colorBg[2]}"
|
| 98 |
aria-label="${c.title}"
|
| 99 |
title="${c.title}"
|
| 100 |
tabindex="0"
|
|
|
|
| 456 |
const er = parseFloat(btn.getAttribute('data-er'));
|
| 457 |
const eg = parseFloat(btn.getAttribute('data-eg'));
|
| 458 |
const eb = parseFloat(btn.getAttribute('data-eb'));
|
| 459 |
+
const bt = parseFloat(btn.getAttribute('data-boolTrans'));
|
| 460 |
+
const bgR = parseFloat(btn.getAttribute('data-ColorBgR'));
|
| 461 |
+
const bgG = parseFloat(btn.getAttribute('data-ColorBgG'));
|
| 462 |
+
const bgB = parseFloat(btn.getAttribute('data-ColorBgB'));
|
| 463 |
+
viewerModule.changeColor(dr, dg, db, er, eg, eb, bt, bgR, bgG, bgB);
|
| 464 |
}
|
| 465 |
closeColorPanel();
|
| 466 |
});
|