How to create a straight line with x height? [SOLVED] #4060
Answered
by
Stianlars1
Stianlars1
asked this question in
Q&A
-
I'm trying to create a straight line, nothing special From the image you can see where the audio cuts off. And i dont want that. Exepcted output: no My settings used: // Some color changes and stuff
waveColor: isDarkmode
? DEFAULT_WAVE_COLOR_DARK_MODE
: DEFAULT_WAVE_COLOR_LIGHT_MODE,
progressColor: isDarkmode
? DEFAULT_PROGRESS_COLOR_DARK_MODE
: DEFAULT_PROGRESS_COLOR_LIGHT_MODE,
cursorColor: isDarkmode
? DEFAULT_PROGRESS_COLOR_DARK_MODE
: DEFAULT_PROGRESS_COLOR_LIGHT_MODE,
height: 10,
barWidth: 0,
barGap: 0,
barRadius: 0,
peaks: [0, 0], // i thought this would do the trick, have also tried [[0], [0]]
dragToSeek: true,
autoplay: false,
normalize: false,
hideScrollbar: true,
interact: true,
barHeight: 10000000, // i thought this would do the trick I could fix this with CSS, but there must be some easy way to fix this with just the options, right? Im all ears @katspaugh 🚀 |
Beta Was this translation helpful? Give feedback.
Answered by
Stianlars1
Mar 17, 2025
Replies: 1 comment 2 replies
-
You can do something like this:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't really pin-point the exact solution, but somehow i got it working with these options:
So by not passing in a
peaks
array it somehow worked 👀