@rekurt/openkline - v0.2.0
    Preparing search index...

    Interface Marker

    A point annotation pinned to a single candle by its timestamp. Unlike drawings (anchored by buffer index), markers anchor by time so they survive history prepends and maxCandles eviction without any index bookkeeping — the renderer resolves the candle by time each frame.

    Marker is a plain JSON-safe object; the array IS its serialized form, so there is no separate snapshot type.

    interface Marker {
        color?: string;
        id: string;
        position?: MarkerPosition;
        price?: number;
        shape?: MarkerShape;
        size?: number;
        text?: string;
        time: number;
    }
    Index

    Properties

    color?: string

    CSS color. Defaults to the theme text color.

    id: string

    Stable id (for removal / dedupe).

    position?: MarkerPosition

    Vertical placement relative to the candle. Default 'above'.

    price?: number

    Price used when position === 'inline'. Defaults to the candle close.

    shape?: MarkerShape

    Glyph to draw. Default 'circle'.

    size?: number

    Glyph size in px. Defaults to MARKER_SIZE.

    text?: string

    Optional short label drawn next to the glyph.

    time: number

    Unix-seconds timestamp of the candle this marker annotates.