The slice of the chart a pick needs. Structural, so Chart satisfies it with nothing to cast and this module never imports the core (which imports this).

interface PickHost {
    dataLayer: {
        indexToTime(index: number): undefined | number;
        timeToIndexFloat(time: number): number;
    };
    emit(event: string, payload: unknown): void;
    on(event: string, cb: (payload: unknown) => void): () => void;
}

Properties

Methods

Properties

dataLayer: {
    indexToTime(index: number): undefined | number;
    timeToIndexFloat(time: number): number;
}

Methods

  • Parameters

    • event: string
    • payload: unknown

    Returns void

  • Parameters

    • event: string
    • cb: (payload: unknown) => void

    Returns () => void