# HG changeset patch # User Chris Cannam # Date 1493391857 -3600 # Node ID 4470c94b470eefa21632cb3352db36890ca39188 # Parent 4c1c19fbcf70da18bc77304ea25c78de53a2c954 Embark on vertical scale diff -r 4c1c19fbcf70 -r 4470c94b470e src/app/waveform/waveform.component.ts --- a/src/app/waveform/waveform.component.ts Fri Apr 28 14:31:24 2017 +0100 +++ b/src/app/waveform/waveform.component.ts Fri Apr 28 16:04:17 2017 +0100 @@ -648,6 +648,16 @@ waveTrack, this.timeline.timeContext ); + const scaleLayer = new wavesUI.helpers.ScaleLayer(plotData, { + color: colour, + height: height, + yDomain: [ min, max ] + }); + this.addLayer( + scaleLayer, + waveTrack, + this.timeline.timeContext + ); this.highlightLayer = new wavesUI.helpers.HighlightLayer(lineLayer, { opacity: 0.7, height: height,