diff src/app/visualisations/curve/curve.component.ts @ 390:26ca17e67364

Implement VerticallyBoundedWavesComponent for tracks, notes. Wrap curves in a vertical-scale component, and use scales by default for supported components dynamically instantiated in analysis-item.
author Lucas Thompson <dev@lucas.im>
date Thu, 01 Jun 2017 10:06:31 +0100
parents 9fe6e00e0700
children a02e6ec4a9d2
line wrap: on
line diff
--- a/src/app/visualisations/curve/curve.component.ts	Thu Jun 01 10:04:41 2017 +0100
+++ b/src/app/visualisations/curve/curve.component.ts	Thu Jun 01 10:06:31 2017 +0100
@@ -11,13 +11,15 @@
 
 @Component({
   selector: 'ugly-curve',
-  template: `<ugly-tracks
-    [timeline]="timeline"
-    [width]="width"
-    [onSeek]="onSeek"
-    [colour]="colour"
-    [tracks]="[curve]"
-  ></ugly-tracks>`,
+  template: `<ugly-vertical-scale>
+    <ugly-tracks
+      [timeline]="timeline"
+      [width]="width"
+      [onSeek]="onSeek"
+      [colour]="colour"
+      [tracks]="[curve]"
+    ></ugly-tracks>
+  </ugly-vertical-scale>`,
   changeDetection: ChangeDetectionStrategy.OnPush
 })
 export class CurveComponent {