UNPKG

chart-0714

Version:

Professional trading chart library with advanced customization for trading journal apps

29 lines (28 loc) 1.01 kB
import { Theme, ChartData, Candle, ChartOptions } from '../types'; import { UnifiedCoordinateSystem } from '../core/UnifiedCoordinateSystem'; export declare class LabelRenderer { private container; private canvas; private ctx; private theme; private options; private measureTooltip; private yAxisFormatter; constructor(container: HTMLElement, theme: Theme, options?: ChartOptions); private resize; render(_data: ChartData, viewport: UnifiedCoordinateSystem, currentPrice: number, _currentTime: number, _currentCandle: Candle | null): void; private renderPriceAxis; private renderCurrentPriceLabel; private calculatePriceStep; updateTheme(theme: Theme): void; updateOptions(options: ChartOptions): void; /** * 가격 비교 툴팁 표시 */ showMeasureTooltip(startPrice: number, endPrice: number, x: number, y: number): void; /** * 가격 비교 툴팁 숨기기 */ hideMeasureTooltip(): void; dispose(): void; }