import type { IPoint } from "../../core/util/IPoint"; import type { RadarChart } from "./RadarChart"; import type { Percent } from "../../core/util/Percent"; import type { Tooltip } from "../../core/render/Tooltip"; import { XYCursor, IXYCursorSettings, IXYCursorPrivate, IXYCursorEvents } from "../xy/XYCursor"; export interface IRadarCursorSettings extends IXYCursorSettings { /** * Inner radius of the area the cursor works in, in pixels or as a percent * of the chart's radius. A negative value is measured in from the chart's * radius. If not set, the chart's `innerRadius` is used. */ innerRadius?: number | Percent; /** * Outer radius of the area the cursor works in, in pixels or as a percent * of the chart's radius. */ radius?: number | Percent; /** * Angle in degrees where the area the cursor works in starts. If not set, * the chart's `startAngle` is used. */ startAngle?: number; /** * Angle in degrees where the area the cursor works in ends. If not set, * the chart's `endAngle` is used. */ endAngle?: number; } export interface IRadarCursorPrivate extends IXYCursorPrivate { /** * Actual radius of the cursor in pixels. */ radius: number; /** * Actual inner radius of the cursor in pixels. */ innerRadius: number; /** * Actual start angle of the cursor in degrees. */ startAngle: number; /** * Actual end angle of the cursor in degrees. */ endAngle: number; } export interface IRadarCursorEvents extends IXYCursorEvents { } /** * Cursor for a [[RadarChart]]: a line out from the center and an arc around * it that follow the pointer and show the axis and series tooltips. * * @see {@link https://www.amcharts.com/docs/v5/charts/radar-chart/#Cursor} for more info */ export declare class RadarCursor extends XYCursor { static className: string; static classNames: Array; _settings: IRadarCursorSettings; _privateSettings: IRadarCursorPrivate; _events: IRadarCursorEvents; /** * The chart the cursor belongs to. */ chart: RadarChart | undefined; protected _fillGenerator: import("d3-shape").Arc; protected _afterNew(): void; protected _handleXLine(): void; protected _handleYLine(): void; protected _getPosition(point: IPoint): IPoint; protected _getPoint(positionX: number, positionY: number): IPoint; /** * @ignore */ updateLayout(): void; protected _updateLines(x: number, y: number): void; protected _drawXLine(x: number, y: number): void; protected _drawYLine(x: number, y: number): void; protected _updateXLine(tooltip: Tooltip): void; protected _updateYLine(tooltip: Tooltip): void; protected _inPlot(point: IPoint): boolean; protected _updateSelection(point: IPoint): void; } //# sourceMappingURL=RadarCursor.d.ts.map