Closed suterma closed 1 year ago
Thanks for reporting this, it's really very helpful.
The overviewWaveformColor
, zoomWaveformColor
, and overviewHighlightColor
options are actually deprecated, replaced by overview.waveformColor
, zoomview.waveformColor
, and overview.highlightColor
. I have updated the TypeScript declarations to mark these as @deprecated
.
I don't use TypeScript, so the declarations sometimes get out of sync (my fault...). The README is definitive, so any difference points to a bug in the TypeScript declarations.
The same as reported also seems to apply to
showPlayheadTime
To work, it must be defined on the views, but the types suggest otherwise.
There are maybe more such discrepancies.
Although I use the overviewWaveformColor and zoomWaveformColor like documented in the readme, they do not work. These example options do not change the colors of neither waveform:
This (full) example however, works, with the waveform colors changed.
Interestingly the
playheadColor
always works. I suspect that the various variants for the options do somehow interfere or are not currently or nor properly interpreted. I get no TS error for the non-working example. In fact thePeaksOptions
type does implement these properties.