Mercurial > hg > ugly-duckling
view src/app/visualisations/curve/curve.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 | f45a916eb5b1 |
children | f9d5006f76e1 |
line wrap: on
line source
/** * Created by lucas on 30/05/2017. */ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import {OnSeekHandler} from '../../playhead/PlayHeadHelpers'; import {VectorFeature} from 'piper/HigherLevelUtilities'; @Component({ selector: 'ugly-curve', template: `<ugly-cross-hair-inspector [unit]="unit"> <ugly-tracks [timeline]="timeline" [width]="width" [onSeek]="onSeek" [colour]="colour" [tracks]="[curve]" ></ugly-tracks> </ugly-cross-hair-inspector>`, changeDetection: ChangeDetectionStrategy.OnPush }) export class CurveComponent { @Input() timeline: Timeline; // TODO refactor WaveComponents to have own Timeline, sharing a TimeContext @Input() onSeek: OnSeekHandler; @Input() width: number; @Input() curve: VectorFeature; @Input() colour: string; @Input() unit: string; }