Mercurial > hg > ugly-duckling
view src/app/visualisations/cross-hair-inspector.component.ts @ 393:a02e6ec4a9d2
cross-hair-inspector component, much the same technique used for the vertical-scale. Change curve to use it. Doesn't currently animate.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Thu, 01 Jun 2017 16:26:52 +0100 |
parents | |
children | 3eab26a629e1 |
line wrap: on
line source
/** * Created by lucast on 01/06/2017. */ import { AfterViewInit, ChangeDetectionStrategy, Component, ContentChildren, QueryList } from '@angular/core'; import { VerticalValueInspectorRenderer } from './waves-base.component'; import {VerticalScaleComponent} from './vertical-scale.component'; @Component({ selector: 'ugly-cross-hair-inspector', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush }) export class CrossHairInspectorComponent extends VerticalScaleComponent implements AfterViewInit { @ContentChildren( VerticalValueInspectorRenderer ) inspectorRenderers: QueryList<VerticalValueInspectorRenderer>; ngAfterViewInit(): void { super.ngAfterViewInit(); this.inspectorRenderers.forEach(renderer => { renderer.renderInspector(this.cachedRanged); }); } }