import type { AnyXYChartScale, XYChartAxisDirection } from '../types/xy-chart-internals.js'; import type { BarDatapoint } from '../types/xy-chart.js'; export interface HitBoxRect { x: number; y: number; width: number; height: number; } /** * Expands a bar's hit-box to `min` while keeping its baseline edge fixed, * so growth stays anchored on reversed axes (TTB/RTL) too. * * `baseline` identifies which coordinate is the bar's fixed positional axis * (`'x'` for vertical bars, `'y'` for horizontal, `undefined` for bars with * no single categorical axis) — it's derived from the chart's orientation * rather than the datapoint's field types, so this works the same whether * the axes are numeric, categorical, or time-based. */ export declare function getBarHitBox(rect: HitBoxRect, datapoint: BarDatapoint, min: number, xScale: AnyXYChartScale, yScale: AnyXYChartScale, baseline: XYChartAxisDirection): HitBoxRect; //# sourceMappingURL=get-bar-hit-box.d.ts.map