import type { CurveChart } from "./CurveChart"; import type { Grid } from "../xy/axes/Grid"; import type { IPoint } from "../../core/util/IPoint"; import type { AxisTick } from "../xy/axes/AxisTick"; import type { AxisBullet } from "../xy/axes/AxisBullet"; import type { Tooltip } from "../../core/render/Tooltip"; import type { AxisRendererCurveY } from "./AxisRendererCurveY"; import { Slice } from "../../core/render/Slice"; import { AxisRenderer, IAxisRendererSettings, IAxisRendererPrivate } from "../xy/axes/AxisRenderer"; import { AxisLabel } from "../xy/axes/AxisLabel"; import { ListTemplate } from "../../core/util/List"; export interface IAxisRendererCurveXSettings extends IAxisRendererSettings { /** * Points of the line the axis runs along, from its start to its end. On a * [[CurveChart]], they are scaled and centered to fit the plot area; * [[SerpentineChart]] and [[SpiralChart]] set them themselves. */ points?: Array; /** * Renderer of the chart's Y axis, which runs across this one. Required. */ yRenderer: AxisRendererCurveY; /** * Rotates the labels to follow the direction of the axis line. * * @default false */ rotateLabels?: boolean; } export interface IAxisRendererCurveXPrivate extends IAxisRendererPrivate { scale?: number; centerX?: number; centerY?: number; axisLength?: number; autoScale?: boolean; } /** * Renderer for the X axis of a [[CurveChart]], which runs along the line * given in `points`. * * @see {@link https://www.amcharts.com/docs/v5/charts/timeline/} for more info * @since 5.12.0 * @important */ export declare class AxisRendererCurveX extends AxisRenderer { /** * Chart this renderer is for. */ chart: CurveChart | undefined; /** * The axis labels. Configure them through `labels.template`. */ readonly labels: ListTemplate; /** * The axis fills: bands between neighboring grid lines, across the whole * Y axis. Configure them through `axisFills.template`. */ readonly axisFills: ListTemplate; static className: string; static classNames: Array; _settings: IAxisRendererCurveXSettings; _privateSettings: IAxisRendererCurveXPrivate; pointPostion: Array; pointDistance: Array; protected _normalizedPoints: Array; _afterNew(): void; _beforeChanged(): void; /** * @ignore */ processAxis(): void; /** * @ignore */ _updateLayout(): void; /** * @ignore */ updateGrid(grid?: Grid, position?: number, endPosition?: number): void; /** * Returns the angle in degrees across the axis line at a position: the * line's direction there plus 90. * * @param position Position on the axis, `0` to `1` * @return Angle in degrees */ positionToAngle(position: number): number; getPoints(positionX: number, positionY: number, endPositionX: number, endPositionY: number): IPoint[]; protected _handleOpposite(): void; positionToIndex(position: number): number; indexToPosition(index: number): number; pointToPosition(point: IPoint): IPoint; /** * Converts a position on this axis and one on the Y axis to an X/Y point. * * @param position Position on this axis, `0` to `1` * @param positionY Position on the Y axis, `0` to `1` * @param doNotFix `position` is already relative to the visible (zoomed) range * @return Point */ positionToPoint(position: number, positionY?: number, doNotFix?: boolean): IPoint; /** * @ignore */ updateLabel(label?: AxisLabel, position?: number, endPosition?: number, count?: number): void; /** * @ignore */ updateTick(tick?: AxisTick, position?: number, endPosition?: number, count?: number): void; /** * @ignore */ updateBullet(bullet?: AxisBullet, position?: number, endPosition?: number): void; /** * @ignore */ updateFill(fill?: Slice, position?: number, endPosition?: number): void; /** * Returns the length of the axis line as drawn, in pixels: the length * along `points` times the scale that fits them into the chart. * * @return Length */ axisLength(): number; /** * @ignore */ positionTooltip(tooltip: Tooltip, position: number): void; /** * @ignore */ updateTooltipBounds(_tooltip: Tooltip): void; } //# sourceMappingURL=AxisRendererCurveX.d.ts.map