Sonification pulse oscillators override an explicit zero width
Author: OskarEichlerCreated Aug 30, 2026Updated Sep 16, 2026
LabelsType: BugProduct: HighchartsStatus: Pending replyStatus: Stale
Expected behaviour
A public SynthPatch pulse oscillator configured with pulseWidth: 0 should preserve that explicit value. The implementation already accepts and clamps pulse width at a minimum of zero.
Actual behaviour
Initialization uses a truthy fallback, replacing zero with the default 0.5.
Live demo with steps to reproduce
- Construct
new Highcharts.sonification.SynthPatch(context, { oscillators: [{ type: 'pulse', pulseWidth: 0 }] }). - Inspect the created oscillator's runtime pulse width.
- Observe
0.5instead of0.
Product version
Current main
Source: highcharts/highcharts