UNPKG

ag-charts-enterprise

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

47 lines (46 loc) 1.49 kB
import { _ModuleSupport } from 'ag-charts-community'; import { CrosshairLabelProperties } from './crosshairLabel'; export declare class Crosshair extends _ModuleSupport.BaseModuleInstance implements _ModuleSupport.ModuleInstance { private readonly ctx; readonly id: string; enabled: boolean; stroke?: string; lineDash?: number[]; lineDashOffset: number; strokeWidth: number; strokeOpacity: number; snap: boolean; readonly label: CrosshairLabelProperties; private readonly labels; private readonly axisCtx; private seriesRect; private bounds; private axisLayout?; private labelFormatter?; private readonly crosshairGroup; protected readonly lineGroup: _ModuleSupport.Group<any>; protected lineGroupSelection: _ModuleSupport.Selection<_ModuleSupport.Line, any>; private activeHighlight?; constructor(ctx: _ModuleSupport.ModuleContextWithParent<_ModuleSupport.AxisContext>); private layout; private updateSelections; private updateLabels; private updateLabel; private updateLines; private isVertical; private isHover; private formatValue; private onClick; private onMouseHoverLike; private onMouseOut; private onKeyPress; private onHighlightChange; private isInRange; private updatePositions; private getData; private getActiveHighlightData; private getLabelHtml; private showLabel; private hideCrosshairs; private hideLabel; }