Mercurial > hg > ugly-duckling
comparison src/app/waveform/waveform.component.ts @ 61:8b8f794942d1
Use whole height of the Timeline for rendering features (was defaulting to 100px before).
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 09 Dec 2016 11:39:14 +0000 |
parents | 2c3d502507b4 |
children | dc07ec243491 |
comparison
equal
deleted
inserted
replaced
60:2c3d502507b4 | 61:8b8f794942d1 |
---|---|
169 cx: toSeconds(feature.timestamp), | 169 cx: toSeconds(feature.timestamp), |
170 cy: feature.featureValues[0] * normalisationFactor | 170 cy: feature.featureValues[0] * normalisationFactor |
171 }; | 171 }; |
172 }); | 172 }); |
173 let breakpointLayer = new wavesUI.helpers.BreakpointLayer(plotData, { | 173 let breakpointLayer = new wavesUI.helpers.BreakpointLayer(plotData, { |
174 color: colour | 174 color: colour, |
175 height: this.trackDiv.nativeElement.getBoundingClientRect().height | |
175 }); | 176 }); |
176 this.colouredLayers.set(this.addLayer( | 177 this.colouredLayers.set(this.addLayer( |
177 breakpointLayer, | 178 breakpointLayer, |
178 this.timeline.getTrackById('main'), | 179 this.timeline.getTrackById('main'), |
179 this.timeline.timeContext | 180 this.timeline.timeContext |