Mercurial > hg > ugly-duckling
view src/app/analysis-item/analysis-item.component.ts @ 189:a50feba0d7f0
Share Timeline instance instead of previous event emitting TimelineTimeContext bodge.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 22 Mar 2017 14:34:43 +0000 |
parents | 3f84bd16c1e8 |
children | d7e4bba39d20 |
line wrap: on
line source
/** * Created by lucast on 21/03/2017. */ import {Component, Input} from "@angular/core"; import Waves from 'waves-ui'; export interface Analysis { audioUri: string; combinedKey: string; } @Component({ selector: 'ugly-analysis-item', templateUrl: './analysis-item.component.html', styleUrls: ['./analysis-item.component.css'] }) export class AnalysisItemComponent { private _audioBuffer: AudioBuffer; @Input() timeline: Timeline; @Input() title: string; @Input() description: string; @Input() set audioBuffer(buffer: AudioBuffer) { this._audioBuffer = buffer || undefined; if (this.audioBuffer) { } } get audioBuffer(): AudioBuffer { return this._audioBuffer; } }