Interface ZoomScale

Minimal interface for a continuous scale. This interface is used as a minimum contract for scale objects that can be passed into zoomTransform methods rescaleX and rescaleY

interface ZoomScale {
    copy(): ZoomScale;
    domain(): Date[] | number[];
    domain(domain): ZoomScale;
    invert(value): number | Date;
    range(): number[];
    range(range): ZoomScale;
}

Methods

  • Parameters

    • value: number

    Returns number | Date

  • Returns number[]

  • Parameters

    • range: number[]

    Returns ZoomScale