Best way to update init options? #561
-
|
Is there a way to update any of the options set in the Peaks.init function? As an example -- if I wanted to update the axisLabelColor for the overview (for legibility between dark mode/light mode) would I have to call the init function again? I'm working with a lot of really long audio files (2+ hours long) that take some time to load, so I'd like to avoid re-initializing drawing the waveform if possible. Thanks for making this package available! It's been really great to work with :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
There are methods that let you update some options, like the waveform color, but not others. I'd be happy to add (or accept pull requests to add) new methods such as |
Beta Was this translation helpful? Give feedback.
Please try v4.0.0-beta.1, which adds
setAxisLabelColor()andsetAxisGridlineColor().