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

Method constructor

packages/playground/src/components/TrackList.ts:22–27  ·  view source on GitHub ↗
(private api: alphaTab.AlphaTabApi)

Source from the content-addressed store, hash-verified

20 private unsubRenderStarted: () => void;
21
22 constructor(private api: alphaTab.AlphaTabApi) {
23 this.root = parseHtml(html`<div class="at-track-list"></div>`);
24
25 this.unsubScoreLoaded = api.scoreLoaded.on(score => this.rebuild(score));
26 this.unsubRenderStarted = api.renderStarted.on(() => this.refreshActive());
27 }
28
29 private rebuild(score: alphaTab.model.Score): void {
30 for (const item of this.items) {

Callers

nothing calls this directly

Calls 5

rebuildMethod · 0.95
refreshActiveMethod · 0.95
parseHtmlFunction · 0.90
htmlFunction · 0.90
onMethod · 0.65

Tested by

no test coverage detected