/** @jsxImportSource react */ import { BoundedObject, BoundedObjectConfig, BoundedObjectInstance } from "../svg/BoundedObject"; import { TooltipParentInstance } from "../widgets/overlay/tooltip-ops"; import { RenderingContext, CxChild } from "../ui/RenderingContext"; import { NumberProp } from "../ui/Prop"; import type { ChartRenderingContext } from "./Chart"; export interface MouseTrackerConfig extends BoundedObjectConfig { /** The binding that is used to store the mouse x coordinate. */ x?: NumberProp; /** The binding that is used to store the mouse y coordinate. */ y?: NumberProp; /** Base CSS class to be applied to the element. Defaults to `mousetracker`. */ baseClass?: string; /** Name of the x-axis. Default is 'x'. */ xAxis?: string; /** Name of the y-axis. Default is 'y'. */ yAxis?: string; /** Tooltip configuration. */ tooltip?: any; } export interface MouseTrackerInstance extends BoundedObjectInstance, TooltipParentInstance { xAxis?: any; yAxis?: any; } export declare class MouseTracker extends BoundedObject { xAxis: string; yAxis: string; anchors: string; baseClass: string; constructor(config?: MouseTrackerConfig); declareData(...args: any[]): void; explore(context: ChartRenderingContext, instance: MouseTrackerInstance): void; render(context: RenderingContext, instance: MouseTrackerInstance, key: string): CxChild; handleMouseMove(e: React.MouseEvent, instance: MouseTrackerInstance): void; handleMouseLeave(e: React.MouseEvent, instance: MouseTrackerInstance): void; } //# sourceMappingURL=MouseTracker.d.ts.map