import type { ScaleTime } from 'd3-scale'; import type { TimeseriesDatapoint } from '../../../../core/types/timeseries.js'; import { YAxisScales } from '../../../types/state.js'; import { DatapointsMap, WeakMapDatapoints } from '../../../types/timeseries.js'; /** * Gets bar position on X-axis. * * @param xScale - The Scale of the timeframe * @param start - The starting timestamp of the bar * @param end - The ending timestamp of the bar * @returns x position */ export declare function getBarXPosition({ end, start }: DatapointsMap, xScale: ScaleTime): number; /** * Gets bar position on Y-axis. * * @param dataPoint - Current data point * @param yScale - Scale of the y axis * @returns The Y position */ export declare function getBarYPosition(dataPointMetadata: DatapointsMap, yScale: YAxisScales): number; /** * Gets bar height. * * @param dataPoint - Current data point * @param yScale - Scale of the y axis * @returns The bar height */ export declare function getBarHeight(dataPointMetadata: DatapointsMap, yScale: YAxisScales): number; /** * Gets bar width using the xScale for time frames or the default for timestamps. * * @param xScale - The Scale of the timeframe * @param start - The starting timestamp of the bar * @param end - The ending timestamp of the bar * @returns The bar width */ export declare function getBarWidth({ end, start }: DatapointsMap, xScale: ScaleTime): number; /** * Get curry accessor of the bar-height * * @returns getBarHeight */ export declare function height(datapointsMap: WeakMapDatapoints, yScale: YAxisScales): (dataPoint: TimeseriesDatapoint) => number; /** * Get curry accessor of the bar-width * * @returns getBarWidth */ export declare function width(datapointsMap: WeakMapDatapoints, xScale: ScaleTime): (dataPoint: TimeseriesDatapoint) => number; /** * Get curry accessor of the bar-y-position * * @returns getBarYPosition */ export declare function y(datapointsMap: WeakMapDatapoints, yScale: YAxisScales): (dataPoint: TimeseriesDatapoint) => number; /** * Get curry accessor of the bar-x-position * * @returns getBarXPosition */ export declare function x(datapointsMap: WeakMapDatapoints, xScale: ScaleTime): (dataPoint: TimeseriesDatapoint) => number;