diff --git a/dist/uPlot.d.ts b/dist/uPlot.d.ts index d9d8be90..357ca054 100644 --- a/dist/uPlot.d.ts +++ b/dist/uPlot.d.ts @@ -645,7 +645,7 @@ declare namespace uPlot { export interface SteppedPathBuilderOpts { align?: -1 | 1; // 1 - alignGaps?: -1 | 0 | 1; // 0 + alignGaps?: -1 | 0 | 1; // align // whether to draw ascenders/descenders at null/gap boundaries ascDesc?: boolean; // false diff --git a/src/paths/stepped.js b/src/paths/stepped.js index 1c6c9a30..fab791ed 100644 --- a/src/paths/stepped.js +++ b/src/paths/stepped.js @@ -7,7 +7,7 @@ export function stepped(opts) { // whether to draw ascenders/descenders at null/gap bondaries const ascDesc = ifNull(opts.ascDesc, false); - const alignGaps = ifNull(opts.alignGaps, 0); + const alignGaps = ifNull(opts.alignGaps, align); return (u, seriesIdx, idx0, idx1) => { return orient(u, seriesIdx, (series, dataX, dataY, scaleX, scaleY, valToPosX, valToPosY, xOff, yOff, xDim, yDim) => {