UNPKG

chart-0714

Version:

Professional trading chart library with advanced customization for trading journal apps

28 lines (27 loc) 700 B
import { Theme, ChartData } from '../types'; import { UnifiedCoordinateSystem } from '../core/UnifiedCoordinateSystem'; export declare class CrosshairLabelRenderer { private theme; private coordSystem; private yAxisFormatter; private xAxisFormatter; private priceLabel; private timeLabel; constructor(container: HTMLElement, theme: Theme, coordSystem: UnifiedCoordinateSystem); /** * Render crosshair labels */ render(mouseX: number, mouseY: number, data: ChartData): void; /** * Hide labels */ hide(): void; /** * Update theme */ updateTheme(theme: Theme): void; /** * Dispose */ dispose(): void; }