import type { RadarChart } from "./RadarChart"; import type { Grid } from "../xy/axes/Grid"; import type { IPoint } from "../../core/util/IPoint"; import type { Graphics } from "../../core/render/Graphics"; import type { AxisTick } from "../xy/axes/AxisTick"; import type { AxisBullet } from "../xy/axes/AxisBullet"; import type { Tooltip } from "../../core/render/Tooltip"; import { Slice } from "../../core/render/Slice"; import { AxisRenderer, IAxisRendererSettings, IAxisRendererPrivate } from "../xy/axes/AxisRenderer"; import { AxisLabelRadial } from "../xy/axes/AxisLabelRadial"; import { Percent } from "../../core/util/Percent"; import { ListTemplate } from "../../core/util/List"; export interface IAxisRendererCircularSettings extends IAxisRendererSettings { /** * Outer radius of the axis, in pixels or as a percent of the chart's * radius. A negative value is measured in from the chart's radius. * * @see {@link https://www.amcharts.com/docs/v5/charts/radar-chart/radar-axes/#Axis_radii_and_angles} for more info */ radius?: number | Percent; /** * Inner radius of the axis, in pixels or as a percent of the chart's * radius. A negative value is measured in from the axis's outer radius. * If not set, the chart's `innerRadius` is used. * * @see {@link https://www.amcharts.com/docs/v5/charts/radar-chart/radar-axes/#Axis_radii_and_angles} for more info */ innerRadius?: number | Percent; /** * Angle in degrees where the axis starts. If not set, the chart's * `startAngle` is used. * * @see {@link https://www.amcharts.com/docs/v5/charts/radar-chart/radar-axes/#Axis_radii_and_angles} for more info */ startAngle?: number; /** * Angle in degrees where the axis ends. If not set, the chart's * `endAngle` is used. * * @see {@link https://www.amcharts.com/docs/v5/charts/radar-chart/radar-axes/#Axis_radii_and_angles} for more info */ endAngle?: number; /** * Not used by a circular axis. See `axisAngle` of [[AxisRendererRadial]]. */ axisAngle?: number; } export interface IAxisRendererCircularPrivate extends IAxisRendererPrivate { /** * Actual outer radius of the axis in pixels. */ radius?: number; /** * Actual inner radius of the axis in pixels. */ innerRadius?: number; /** * Actual start angle of the axis in degrees. */ startAngle?: number; /** * Actual end angle of the axis in degrees. */ endAngle?: number; } /** * Renderer for an axis that runs around a [[RadarChart]], from its * `startAngle` to its `endAngle`. */ export declare class AxisRendererCircular extends AxisRenderer { /** * The chart this renderer is for. */ chart: RadarChart | undefined; /** * Labels of the axis. Configure them through `labels.template`. * * @default new ListTemplate */ readonly labels: ListTemplate; /** * Fills of the axis cells. Configure them through `axisFills.template`. * * @default new ListTemplate */ readonly axisFills: ListTemplate; static className: string; static classNames: Array; _settings: IAxisRendererCircularSettings; _privateSettings: IAxisRendererCircularPrivate; protected _fillGenerator: import("d3-shape").Arc; _afterNew(): void; _changed(): void; /** * @ignore */ processAxis(): void; /** * @ignore */ updateLayout(): void; /** * @ignore */ updateGrid(grid?: Grid, position?: number, endPosition?: number): void; /** * Converts a relative position on the axis to an angle. * * @param position Position (0-1) * @return Angle in degrees */ positionToAngle(position: number): number; protected _handleOpposite(): void; /** * Converts a relative position on the axis to a point on its outer radius. * * @param position Position (0-1) * @return Point relative to the chart's center */ positionToPoint(position: number): IPoint; /** * @ignore */ updateLabel(label?: AxisLabelRadial, position?: number, endPosition?: number, count?: number): void; /** * @ignore */ fillDrawMethod(fill: Graphics, startAngle?: number, endAngle?: 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; /** * @ignore */ fitAngle(angle: number): number; /** * Returns the length of the axis's arc in pixels. * * @return Length */ axisLength(): number; /** * @ignore */ positionTooltip(tooltip: Tooltip, position: number): void; /** * @ignore */ updateTooltipBounds(_tooltip: Tooltip): void; } //# sourceMappingURL=AxisRendererCircular.d.ts.map