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

Class Footer

packages/playground/src/components/Footer.ts:24–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24export class Footer implements Mountable {
25 readonly root: HTMLElement;
26 readonly waveform: Waveform;
27 readonly timeSlider: TimeSlider;
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();
49 this.timeSlider.dispose();
50 this.transport.dispose();
51 this.root.remove();
52 }
53}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected