Mercurial > hg > ugly-duckling
changeset 359:c8a585de46ac
Add skeleton for a curve component.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 30 May 2017 15:06:11 +0100 |
parents | 0e20af8a4065 |
children | 1ad3c86fd1f7 |
files | src/app/app.module.ts src/app/visualisations/curve/curve.component.ts |
diffstat | 2 files changed, 19 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/app.module.ts Fri May 26 21:11:05 2017 +0100 +++ b/src/app/app.module.ts Tue May 30 15:06:11 2017 +0100 @@ -31,6 +31,7 @@ import {Observable} from 'rxjs/Observable'; import {PlayHeadComponent} from './playhead/playhead.component'; import {LivePlayHeadComponent} from './playhead/live-play-head.component'; +import {CurveComponent} from "./visualisations/curve/curve.component"; export function createAudioContext(): AudioContext { return new ( @@ -118,7 +119,8 @@ NotebookFeedComponent, ProgressBarComponent, PlayHeadComponent, - LivePlayHeadComponent + LivePlayHeadComponent, + CurveComponent ], imports: [ BrowserModule,
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/visualisations/curve/curve.component.ts Tue May 30 15:06:11 2017 +0100 @@ -0,0 +1,16 @@ +/** + * Created by lucas on 30/05/2017. + */ +import {WavesComponent} from "../waves-base.component"; +import {ChangeDetectionStrategy, Component} from "@angular/core"; + +@Component({ + selector: 'ugly-curve', + // templateUrl: '../waves-template.html', + template: `<div #track class="track"><span>Curve</span></div>`, + styleUrls: ['../waves-template.css'], + changeDetection: ChangeDetectionStrategy.OnPush +}) +export class CurveComponent extends WavesComponent { + +}