MCPcopy
hub / github.com/stemdeckapp/stemdeck / _render

Function _render

static/js/sections.js:62–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60// ─── Rendering ────────────────────────────────────────────
61
62function _render() {
63 if (!_container) return;
64 _container.innerHTML = "";
65
66 const sorted = [..._sections].sort((a, b) => a.start - b.start);
67
68 for (const section of sorted) {
69 _container.appendChild(_makeSectionEl(section));
70 }
71}
72
73function _makeSectionEl(section) {
74 const pctStart = (section.start / _duration) * 100;

Callers 4

initSectionsFunction · 0.85
_addSectionFunction · 0.85
_deleteSectionFunction · 0.85
commitFunction · 0.85

Calls 1

_makeSectionElFunction · 0.85

Tested by

no test coverage detected