Mercurial > hg > ugly-duckling
diff src/app/waveform/waveform.component.ts @ 66:1b8dec9f6fe6
Fix region rendering bug caused by a negative height. Waves-ui calculates the height of a shape relative to the y-domain boundaries of the layer.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Mon, 12 Dec 2016 16:40:26 +0000 |
parents | 270f59ef3b83 |
children | 7c34938470fb |
line wrap: on
line diff
--- a/src/app/waveform/waveform.component.ts Mon Dec 12 00:43:55 2016 +0000 +++ b/src/app/waveform/waveform.component.ts Mon Dec 12 16:40:26 2016 +0000 @@ -242,7 +242,7 @@ x: toSeconds(feature.timestamp), y: feature.featureValues[0], width: toSeconds(feature.duration), - height: 0.05 * max, + height: min + 0.05 * max, color: colour, opacity: 0.8 }