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

Method constructor

packages/playground/src/components/Footer.ts:30–45  ·  view source on GitHub ↗
(api: alphaTab.AlphaTabApi, options: FooterOptions = {})

Source from the content-addressed store, hash-verified

28 readonly transport: TransportBar;
29
30 constructor(api: alphaTab.AlphaTabApi, options: FooterOptions = {}) {
31 this.root = parseHtml(html`
32 <div class="at-footer">
33 <div class="cmp-waveform"></div>
34 <div class="cmp-time-slider"></div>
35 <div class="cmp-transport"></div>
36 </div>
37 `);
38 this.waveform = mount(this.root, '.cmp-waveform', new Waveform(api));
39 this.timeSlider = mount(this.root, '.cmp-time-slider', new TimeSlider(api));
40 this.transport = mount(
41 this.root,
42 '.cmp-transport',
43 new TransportBar(api, { trackList: options.trackList })
44 );
45 }
46
47 dispose(): void {
48 this.waveform.dispose();

Callers

nothing calls this directly

Calls 3

parseHtmlFunction · 0.90
htmlFunction · 0.90
mountFunction · 0.90

Tested by

no test coverage detected