Mercurial > hg > ugly-duckling
diff src/app/visualisations/curve/curve.component.ts @ 412:89674c064cda
Set duration on the LayerTimeContext to the length of the underlying audio file.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Mon, 05 Jun 2017 14:25:54 +0100 |
parents | 3ace7672638b |
children | 64ed45a0bad3 |
line wrap: on
line diff
--- a/src/app/visualisations/curve/curve.component.ts Mon Jun 05 10:56:15 2017 +0100 +++ b/src/app/visualisations/curve/curve.component.ts Mon Jun 05 14:25:54 2017 +0100 @@ -26,6 +26,7 @@ [onSeek]="onSeek" [colour]="colour" [tracks]="[curve]" + [duration]="duration" ></ugly-tracks>`, changeDetection: ChangeDetectionStrategy.OnPush, providers: [ @@ -41,6 +42,7 @@ @Input() width: number; @Input() curve: VectorFeature; @Input() colour: string; + @Input() duration: number; @ViewChild(TracksComponent) tracksComponent: TracksComponent; renderInspector(range: [number, number], unit?: string): void {