Mercurial > hg > ugly-duckling
comparison src/app/visualisations/waveform/waveform.component.ts @ 355:335bb6459fe8
There's nothing waveform specific about these, they'll likely be used for other waves-ui components.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 26 May 2017 18:20:02 +0100 |
parents | a9ce5516c17d |
children | b852bace6b14 |
comparison
equal
deleted
inserted
replaced
354:a9ce5516c17d | 355:335bb6459fe8 |
---|---|
9 import {WavesComponent} from '../waves-base.component'; | 9 import {WavesComponent} from '../waves-base.component'; |
10 | 10 |
11 | 11 |
12 @Component({ | 12 @Component({ |
13 selector: 'ugly-waveform', | 13 selector: 'ugly-waveform', |
14 templateUrl: './waveform.component.html', | 14 templateUrl: '../waves-template.html', |
15 styleUrls: ['./waveform.component.css'] | 15 styleUrls: ['../waves-template.css'] |
16 }) | 16 }) |
17 export class WaveformComponent extends WavesComponent { | 17 export class WaveformComponent extends WavesComponent { |
18 @ViewChild('track') trackDiv: ElementRef; | 18 @ViewChild('track') trackDiv: ElementRef; |
19 @Input() set audioBuffer(buffer: AudioBuffer) { | 19 @Input() set audioBuffer(buffer: AudioBuffer) { |
20 this._audioBuffer = buffer || undefined; | 20 this._audioBuffer = buffer || undefined; |