Mercurial > hg > ugly-duckling
comparison src/app/visualisations/waves-base.component.ts @ 490:97ffab611a55
Explicitly set bin names property (variable used to be called binNames so was set implicitly, previous refactor renamed it to labels). Also remove debug statement.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 05 Jul 2017 19:11:50 +0100 |
parents | ab43880f1cd5 |
children | c39df81c4dae |
comparison
equal
deleted
inserted
replaced
489:ab43880f1cd5 | 490:97ffab611a55 |
---|---|
84 this.renderTimeline(); | 84 this.renderTimeline(); |
85 this.update(); | 85 this.update(); |
86 } | 86 } |
87 | 87 |
88 renderPlayhead(initialTime: number, colour: string): PlayheadManager { | 88 renderPlayhead(initialTime: number, colour: string): PlayheadManager { |
89 console.warn('waves base render playhead'); | |
90 const cursor = new Waves.helpers.CursorLayer({ | 89 const cursor = new Waves.helpers.CursorLayer({ |
91 height: this.height, | 90 height: this.height, |
92 color: colour, | 91 color: colour, |
93 }); | 92 }); |
94 cursor.currentPosition = initialTime; | 93 cursor.currentPosition = initialTime; |
246 renderScale(labels: string[]): void { | 245 renderScale(labels: string[]): void { |
247 this.addLayer(new Waves.helpers.DiscreteScaleLayer({ | 246 this.addLayer(new Waves.helpers.DiscreteScaleLayer({ |
248 tickColor: this.colour, | 247 tickColor: this.colour, |
249 textColor: this.colour, | 248 textColor: this.colour, |
250 height: this.height, | 249 height: this.height, |
251 labels | 250 binNames: labels |
252 })); | 251 })); |
253 } | 252 } |
254 } | 253 } |
255 | 254 |
256 export abstract class InspectableVerticallyBoundedComponent | 255 export abstract class InspectableVerticallyBoundedComponent |