UNPKG

ag-charts-enterprise

Version:

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

28 lines (27 loc) 966 B
import { type AgCrosshairLabelRendererResult, type _ModuleSupport } from 'ag-charts-community'; import { type Point } from 'ag-charts-core'; type StyleValue = string | number | undefined; export declare class CrosshairLabel { private readonly domManager; static readonly className = "CrosshairLabel"; private readonly id; private readonly elementProxy; xOffset: number; yOffset: number; constructor(domManager: _ModuleSupport.DOMManager, key: string, axisId: string); show(meta: Point & { translateX?: string; translateY?: string; }): void; setLabelHtml({ html, styles }: { html?: string; styles?: Record<string, StyleValue>; }): void; toggle(visible?: boolean): void; destroy(): void; toLabelHtml(input: string | AgCrosshairLabelRendererResult, defaults?: AgCrosshairLabelRendererResult): { html: string; styles: Record<string, StyleValue>; }; } export {};