Mercurial > hg > ugly-duckling
diff src/app/visualisations/cross-hair-inspector.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 | f2bb5ddae867 |
children |
line wrap: on
line diff
--- a/src/app/visualisations/cross-hair-inspector.component.ts Wed Jul 05 17:28:24 2017 +0100 +++ b/src/app/visualisations/cross-hair-inspector.component.ts Wed Jul 05 18:42:12 2017 +0100 @@ -11,6 +11,7 @@ QueryList } from '@angular/core'; import { + PlayheadRenderer, VerticalValueInspectorRenderer } from './waves-base.component'; import {VerticalScaleComponent} from './vertical-scale.component'; @@ -23,7 +24,10 @@ @Component({ selector: 'ugly-cross-hair-inspector', template: '<ng-content></ng-content>', - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + providers: [ + {provide: PlayheadRenderer, useExisting: CrossHairInspectorComponent } + ] }) export class CrossHairInspectorComponent extends VerticalScaleComponent implements AfterViewInit, OnDestroy {