import type { AxisRenderer } from "./AxisRenderer"; import { DateAxis, IDateAxisSettings, IDateAxisPrivate, IDateAxisDataItem, IDateAxisEvents } from "./DateAxis"; import { DataItem } from "../../../core/render/Component"; import type { XYSeries } from "../../xy/series/XYSeries"; import type { ITimeInterval } from "../../../core/util/Time"; export interface IGaplessDateAxisSettings extends IDateAxisSettings { } export interface IGaplessDateAxisDataItem extends IDateAxisDataItem { /** * An index of a data item. */ index?: number; } export interface IGaplessDateAxisPrivate extends IDateAxisPrivate { } export interface IGaplessDateAxisEvents extends IDateAxisEvents { } /** * A version of a [[DateAxis]] which removes intervals that don't have any data * items in them. * * @see {@link https://www.amcharts.com/docs/v5/charts/xy-chart/axes/gapless-date-axis/} for more info * @important */ export declare class GaplessDateAxis extends DateAxis { static className: string; static classNames: Array; _settings: IGaplessDateAxisSettings; _privateSettings: IGaplessDateAxisPrivate; _dataItemSettings: IGaplessDateAxisDataItem; _events: IGaplessDateAxisEvents; protected _frequency: number; protected _m: number; _afterNew(): void; _dates: Array; _customDates?: Array; _getDates(): Array; protected _updateDates(date: number, series: XYSeries): void; _updateAllDates(): void; /** * Convers value to a relative position on axis. * * @param value Value * @return Relative position */ valueToPosition(value: number): number; /** * Converts numeric value from axis scale to index. * * @param value Value * @return Index */ valueToIndex(value: number): number; /** * Converts a relative position to a corresponding numeric value from axis * scale. * * @param position Relative position * @return Value */ positionToValue(position: number): number; protected _fixZoomFactor(): void; /** * Zooms the axis to specific `start` and `end` dates. * * Optional `duration` specifies duration of zoom animation in milliseconds. * * @param start Start Date * @param end End Date * @param duration Duration in milliseconds */ zoomToDates(start: Date, end: Date, duration?: number): void; /** * Zooms the axis to specific `start` and `end` values. * * Optional `duration` specifies duration of zoom animation in milliseconds. * * @param start Start value * @param end End value * @param duration Duration in milliseconds */ zoomToValues(start: number, end: number, duration?: number): void; protected _prepareAxisItems(): void; protected _pickWorse(dataItemA: DataItem, dataItemB: DataItem, interval: ITimeInterval): DataItem; protected _addMinorGrid(startValue: number, endValue: number, minorDuration: number, gridInterval: ITimeInterval): void; protected _getIndexes(value: number, maxValue: number, interval: ITimeInterval, firstValue: number): Array; protected _hasDate(time: number): boolean; } //# sourceMappingURL=GaplessDateAxis.d.ts.map