diff src/app/visualisations/waveform/waveform.component.ts @ 488:64ed45a0bad3

Introduce PlayheadRenderer, implement in the waves base. Make VerticallyBounded and VerticalScaleRenderer generic and remove bin equivalents. Forward calls for a PlayheadRenderer from VerticalScaleComponent on to its children. Also update other components accordingly.
author Lucas Thompson <dev@lucas.im>
date Wed, 05 Jul 2017 18:42:12 +0100
parents 0329495fd822
children
line wrap: on
line diff
--- a/src/app/visualisations/waveform/waveform.component.ts	Wed Jul 05 17:28:24 2017 +0100
+++ b/src/app/visualisations/waveform/waveform.component.ts	Wed Jul 05 18:42:12 2017 +0100
@@ -4,7 +4,7 @@
   ChangeDetectionStrategy
 } from '@angular/core';
 import wavesUI from 'waves-ui-piper';
-import {WavesComponent} from '../waves-base.component';
+import {PlayheadRenderer, WavesComponent} from '../waves-base.component';
 
 
 @Component({
@@ -13,6 +13,7 @@
   styleUrls: ['../waves-template.css'],
   changeDetection: ChangeDetectionStrategy.OnPush,
   providers: [
+    {provide: PlayheadRenderer, useExisting: WaveformComponent },
     {provide: WavesComponent, useExisting: WaveformComponent}
   ]
 })