Mercurial > hg > ugly-duckling
comparison src/app/visualisations/notes/notes.component.ts @ 489:ab43880f1cd5
Rename to something a bit more appropriate.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 05 Jul 2017 18:52:12 +0100 |
parents | 64ed45a0bad3 |
children |
comparison
equal
deleted
inserted
replaced
488:64ed45a0bad3 | 489:ab43880f1cd5 |
---|---|
2 * Created by lucast on 31/05/2017. | 2 * Created by lucast on 31/05/2017. |
3 */ | 3 */ |
4 import { | 4 import { |
5 InspectableVerticallyBoundedComponent, | 5 InspectableVerticallyBoundedComponent, |
6 PlayheadRenderer, | 6 PlayheadRenderer, |
7 VerticallyBounded, | 7 VerticallyLabelled, |
8 VerticalScaleRenderer, | 8 VerticalScaleRenderer, |
9 VerticalValueInspectorRenderer, | 9 VerticalValueInspectorRenderer, |
10 WavesComponent | 10 WavesComponent |
11 } from '../waves-base.component'; | 11 } from '../waves-base.component'; |
12 import { | 12 import { |
21 selector: 'ugly-notes', | 21 selector: 'ugly-notes', |
22 templateUrl: '../waves-template.html', | 22 templateUrl: '../waves-template.html', |
23 styleUrls: ['../waves-template.css'], | 23 styleUrls: ['../waves-template.css'], |
24 changeDetection: ChangeDetectionStrategy.OnPush, | 24 changeDetection: ChangeDetectionStrategy.OnPush, |
25 providers: [ | 25 providers: [ |
26 { provide: VerticallyBounded, useExisting: NotesComponent }, | 26 { provide: VerticallyLabelled, useExisting: NotesComponent }, |
27 { provide: VerticalScaleRenderer, useExisting: NotesComponent }, | 27 { provide: VerticalScaleRenderer, useExisting: NotesComponent }, |
28 {provide: VerticalValueInspectorRenderer, useExisting: NotesComponent }, | 28 {provide: VerticalValueInspectorRenderer, useExisting: NotesComponent }, |
29 {provide: PlayheadRenderer, useExisting: NotesComponent}, | 29 {provide: PlayheadRenderer, useExisting: NotesComponent}, |
30 {provide: WavesComponent, useExisting: NotesComponent} | 30 {provide: WavesComponent, useExisting: NotesComponent} |
31 ] | 31 ] |
32 }) | 32 }) |
33 export class NotesComponent extends InspectableVerticallyBoundedComponent<Note[]> { | 33 export class NotesComponent extends InspectableVerticallyBoundedComponent<Note[]> { |
34 private currentVerticalRange: [number, number]; | 34 private currentVerticalRange: [number, number]; |
35 | 35 |
36 get range(): [number, number] { | 36 get labels(): [number, number] { |
37 return this.currentVerticalRange; | 37 return this.currentVerticalRange; |
38 } | 38 } |
39 | 39 |
40 @Input() set notes(notes: Note[]) { | 40 @Input() set notes(notes: Note[]) { |
41 this.feature = notes; | 41 this.feature = notes; |