interface DrawItem {
    bar: Bar;
    edgeX?: number;
    prevClose?: number;
    x: number;
}

Properties

Properties

bar: Bar
edgeX?: number

Set only on the neighbour a connectsBars renderer gets beyond each edge of the view: the x (media px) of the plot edge between it and the bars in view, 0 on the left and the plot width on the right. That neighbour can sit millions of pixels off screen (a level held for a session on an axis of five-second bars), so a renderer cuts the segment to it at this x, plus whatever its stroke needs, rather than draw it all the way out, and paints nothing of the neighbour's own (a marker, a body).

prevClose?: number

Close of the bar left of the visible range, carried on the first item only. Previous-close candle colouring is the one renderer that reads it, because it is the one that needs a reference the visible window does not hold.

x: number