interface RendererEntry {
    defaultStyle: SeriesStyle;
    isPriceSeries: boolean;
    draw(
        ctx: CanvasRenderingContext2D,
        items: readonly DrawItem[],
        toY: (v: number) => number,
        barSpacing: number,
        dpr: number,
        style: SeriesStyle,
        rc: SeriesRenderContext,
    ): void;
    extents(bar: Bar, style: SeriesStyle): { max: number; min: number };
}

Properties

defaultStyle: SeriesStyle
isPriceSeries: boolean

True for the price series whose last close drives the last-price line.

Methods

  • Paint the visible items on a bitmap-scope 2D context. On screen the pane reaches this through its render backend (src/render/backend.ts); the 2D backend calls it as is, and the vector export calls it directly on the serialising target.

    Parameters

    Returns void