UNPKG

chart-0714

Version:

Professional trading chart library with advanced customization for trading journal apps

47 lines (46 loc) 1.28 kB
import { Chart } from '../Chart'; export declare class ChartEventHandler { private chart; private isDragging; private lastMouseX; private currentMouseX; private currentMouseY; private lastMouseCSSPosition; private isMagneticMode; private boundHandleResize; private boundHandleWheel; private boundHandleMouseDown; private boundHandleMouseMove; private boundHandleMouseUp; private boundHandleMouseLeave; private boundHandleKeyDown; private boundHandleKeyUp; private boundHandleContextMenu; constructor(chart: Chart); private matchesShortcut; private getShortcut; setupEventListeners(): void; removeEventListeners(): void; private handleResize; private handleWheel; private handleMouseDown; private handleMouseMove; private handleMouseUp; private handleMouseLeave; private handleContextMenu; private handleKeyDown; private handleKeyUp; /** * 마우스 이벤트 좌표를 캔버스 픽셀 좌표로 변환 */ private getCanvasCoordinates; /** * CSS 픽셀 좌표를 차트 좌표로 변환 */ private pixelToChartPoint; getMagneticMode(): boolean; getCurrentMousePosition(): { x: number; y: number; }; }