Skip to content

Commit

Permalink
sync default options align and alignGaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Leubeling committed Jun 8, 2022
1 parent c15c372 commit d8eb9ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/uPlot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/paths/stepped.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d8eb9ac

Please sign in to comment.