UNPKG

chart-0714

Version:

Professional trading chart library with advanced customization for trading journal apps

24 lines (23 loc) 797 B
import { ChartData, Theme, ChartOptions } from '../types'; import { UnifiedCoordinateSystem } from '../core/UnifiedCoordinateSystem'; export declare class XAxisRenderer { private container; private canvas; private ctx; private theme; private options; private xAxisFormatter; private currentCandleIndex; constructor(container: HTMLElement, theme: Theme, options?: ChartOptions); private resize; render(data: ChartData, viewport: UnifiedCoordinateSystem): void; /** * 크로스헤어 위치의 캔들 인덱스 설정 */ setCurrentCandleIndex(index: number): void; private renderTimeAxis; private renderCurrentTimeHighlight; updateTheme(theme: Theme): void; updateOptions(options: ChartOptions): void; dispose(): void; }