question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

barWidth option broken after commit 18cad42e

See original GitHub issue

Wavesurfer.js version(s):

latest master

Browser and operating system version(s):

electron: 4.0.4 chrome: 69.0

hi! firstly thank you for the great library, i’m having a lot of fun working with it.

i have been keeping up with the latest master and noticed that the waveform has stopped generating with commit 18cad42e (canvasentry refactor)

pre 18cad42e: image

post 18cad42e: image

my params are:

const params = {
            audioContext: this.audioContext,
            container: '#waveform',
            waveColor: '#04ABED',
            progressColor: 'black',
            cursorColor: '#fff',
            barWidth: 3,
            barGap: 2,
            barRadius: true,
            height: 180,
            barHeight: 1,
            scrollParent: true,
            responsive: true,
            closeAudioContext: true,
            //forceDecode: true,
            plugins: [
                TimelinePlugin.create({
                    container: '#timeline',
                    primaryColor: "#fff",
                    fontFamily: 'Roboto Condensed',
                }),
                MinimapPlugin.create({
                    container: "#minimap",
                    waveColor: '#000',
                    progressColor: 'black',
                    height: 30,
                    showOverview: true,
                    barWidth: 0,
                    barGap: 0,
                    barRadius: false,
                    overviewBorderColor: "azure",
                }), 
            ],
        };

let me know if you need more info!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sandizcommented, Apr 30, 2019

hi @thijstriemstra pushed a fix for this in pr #1637, some arguments were missing.

0reactions
thijstriemstracommented, Apr 29, 2019

i can investigate further if you give me some pointers…

@sandiz if you can help figure out what broke during that refactor, much appreciated, I’m focusing on other areas right now. This issue does block the 3.0.0 release though, which sucks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Weird bar width after setting `setVisibleXRangeMaximum` ...
But when I move back the slider to initial position, the bar's width is increased drastically. Related Stackoverflow question: https:// ...
Read more >
chart js 2 how to set bar width
Can now manually configure the thickness of a bar in a bar chart. Use a new barThickness option on the correct axis to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found