MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / refreshStemChoiceVisuals

Function refreshStemChoiceVisuals

static/js/main.js:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31// Persisted across reloads so the next song honors the user's last
32// chosen subset, but a 0-selection state is normalized to all 6.
33function refreshStemChoiceVisuals() {
34 for (const btn of document.querySelectorAll(".stem-choice[data-stem]")) {
35 btn.setAttribute(
36 "aria-pressed",
37 String(selectedStems.has(btn.dataset.stem)),
38 );
39 }
40}
41
42function handleStemChoiceClick(stem) {
43 const allSelected = selectedStems.size === STEM_NAMES.length;

Callers 4

handleStemChoiceClickFunction · 0.85
wireStemChoiceButtonsFunction · 0.85
wireAllButtonFunction · 0.85
main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected