Mercurial > hg > ugly-duckling
view src/app/visualisations/cross-hair-inspector.component.ts @ 396:3eab26a629e1
Revert changes relating to bodging unit onto the shaped features. Now return from the extraction service and add to the analysis item, and send into the cross-hair component with a prop.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Thu, 01 Jun 2017 23:04:39 +0100 |
parents | a02e6ec4a9d2 |
children | 308ea1c2612e |
line wrap: on
line source
/** * Created by lucast on 01/06/2017. */ import { AfterViewInit, ChangeDetectionStrategy, Component, ContentChildren, Input, 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>; @Input() unit: string; ngAfterViewInit(): void { super.ngAfterViewInit(); this.inspectorRenderers.forEach(renderer => { renderer.renderInspector(this.cachedRanged, this.unit); }); } }