(private api: alphaTab.AlphaTabApi)
| 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) { |
nothing calls this directly
no test coverage detected