/** @jsxImportSource react */ import { BoundedObject, BoundedObjectConfig, BoundedObjectInstance } from "../svg/BoundedObject"; import { Rect } from "../svg/util/Rect"; import { RenderingContext } from "../ui/RenderingContext"; import { NumberProp, BooleanProp, StringProp, Prop } from "../ui/Prop"; export interface MarkerLineConfig extends BoundedObjectConfig { /** X coordinate for vertical line. */ x?: Prop; /** Y coordinate for horizontal line. */ y?: Prop; /** Starting X coordinate. */ x1?: Prop; /** Starting Y coordinate. */ y1?: Prop; /** Ending X coordinate. */ x2?: Prop; /** Ending Y coordinate. */ y2?: Prop; /** Index of a color from the standard palette of colors. 0-15. */ colorIndex?: NumberProp; /** Used to indicate if the line is active or not. */ active?: BooleanProp; /** Name of the line as it will appear in the legend. */ name?: StringProp; /** Name of the legend to be used. Default is `legend`. */ legend?: StringProp; /** Name of the horizontal axis. Default value is `x`. */ xAxis?: string; /** Name of the vertical axis. Default value is `y`. */ yAxis?: string; /** Set to `false` to prevent the line from affecting axis bounds. */ affectsAxes?: boolean; /** Action to perform on legend item click. Default is `auto`. */ legendAction?: string; } export interface MarkerLineInstance extends BoundedObjectInstance { xAxis: any; yAxis: any; x1: number; y1: number; x2: number; y2: number; } export declare class MarkerLine extends BoundedObject { baseClass: string; xAxis: string; yAxis: string; legend: string; legendAction: string; affectsAxes: boolean; x: number; y: number; x1: number; x2: number; y1: number; y2: number; constructor(config: MarkerLineConfig); init(): void; declareData(...args: any[]): void; explore(context: RenderingContext, instance: MarkerLineInstance): void; prepare(context: RenderingContext, instance: MarkerLineInstance): void; calculateBounds(context: RenderingContext, instance: MarkerLineInstance): Rect; onLegendClick(e: MouseEvent, instance: MarkerLineInstance): void; render(context: RenderingContext, instance: MarkerLineInstance, key: string): React.ReactNode; } //# sourceMappingURL=MarkerLine.d.ts.map