MCPcopy Create free account
hub / github.com/adobe/leonardo / toggleSwatchLuminosity

Function toggleSwatchLuminosity

docs/ui/src/js/toggleSwatchAttributes.js:23–32  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

21}
22
23function toggleSwatchLuminosity(e) {
24 let on = e.target.checked;
25 let wrapper = document.getElementById('swatchesOutputs');
26
27 if (!on) {
28 wrapper.classList.add('hideSwatchLuminosity');
29 } else {
30 wrapper.classList.remove('hideSwatchLuminosity');
31 }
32}
33
34window.toggleSwatchContrast = toggleSwatchContrast;
35window.toggleSwatchLuminosity = toggleSwatchLuminosity;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected