import { BandPosition, RechartsScale } from './RechartsScale'; import { CategoricalDomainItem, Coordinate, NullableCoordinate } from '../types'; export interface CartesianScaleHelper { map(value: { x: XDomain; y: YDomain; }, { position }: { position: BandPosition; }): Coordinate; mapWithFallback(value: { x?: XDomain | null | undefined; y?: YDomain | null | undefined; }, { position, fallback }: { position?: BandPosition; fallback: 'rangeMin' | 'rangeMax'; }): Coordinate; isInRange({ x, y }: Partial): boolean; } /** * Groups X and Y scale functions together and provides helper methods. */ export declare class CartesianScaleHelperImpl implements CartesianScaleHelper { private xAxisScale; private yAxisScale; constructor({ x, y }: { x: RechartsScale; y: RechartsScale; }); map(value: { x: XDomain; y: YDomain; }, { position }: { position: BandPosition; }): Coordinate; mapWithFallback(value: { x?: XDomain | null | undefined; y?: YDomain | null | undefined; }, { position, fallback }: { position?: BandPosition; fallback: 'rangeMin' | 'rangeMax'; }): Coordinate; isInRange({ x, y }: Partial): boolean; }