MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / refreshActive

Method refreshActive

packages/playground/src/components/TrackList.ts:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 private refreshActive(): void {
58 const active = new Set<number>();
59 for (const t of this.api.tracks) {
60 active.add(t.index);
61 }
62 for (const item of this.items) {
63 item.setActive(active.has(item.track.index));
64 }
65 }
66
67 /** All TrackItem instances, in score order. */
68 getItems(): readonly TrackItem[] {

Callers 2

constructorMethod · 0.95
rebuildMethod · 0.95

Calls 3

addMethod · 0.95
hasMethod · 0.95
setActiveMethod · 0.45

Tested by

no test coverage detected