We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using peaks that vary from 0.1 to 1 the top boundaries are not respected, and the waveform overflows into the labels.
const topTimeline = TimelinePlugin.create({ height: 20, insertPosition: 'beforebegin', style: { fontSize: '20px', }, }) // Create a second timeline const bottomTimline = TimelinePlugin.create({ height: 20, style: { fontSize: '20px', }, }) // Create an instance of WaveSurfer const wavesurfer = WaveSurfer.create({ container: '#waveform', waveColor: 'rgb(200, 0, 200)', progressColor: 'rgb(100, 0, 100)', url: '/examples/audio/audio.wav', plugins: [topTimeline, bottomTimline], peaks: [ 0.1, 1 ], })
Can easily test here: https://wavesurfer.xyz/examples/?timeline-custom.js
Top waveform should not overflow labels.
Waveform is overflowing labels.
The text was updated successfully, but these errors were encountered:
So any fix for this? Can we add a margin between the timeline and the waveform?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug description
When using peaks that vary from 0.1 to 1 the top boundaries are not respected, and the waveform overflows into the labels.
Environment
Minimal code snippet
Can easily test here: https://wavesurfer.xyz/examples/?timeline-custom.js
Expected result
Top waveform should not overflow labels.
Obtained result
Waveform is overflowing labels.
Screenshots
The text was updated successfully, but these errors were encountered: