chart-0714
Version:
Professional trading chart library with advanced customization for trading journal apps
42 lines (41 loc) • 973 B
TypeScript
import { Chart } from '../Chart';
import { DrawingOptions, DrawingToolType } from '../../types/drawing';
/**
* 드로잉 관련 헬퍼 클래스
*/
export declare class ChartDrawingHelper {
private chart;
constructor(chart: Chart);
/**
* 드로잉 추가
*/
addDrawing(type: string, options?: DrawingOptions): void;
/**
* 드로잉 내보내기
*/
exportDrawings(): string;
/**
* 드로잉 가져오기
*/
importDrawings(jsonData: string): void;
/**
* 모든 드로잉 제거
*/
clearDrawings(): void;
/**
* 드로잉 도구 설정
*/
setDrawingTool(tool: DrawingToolType | null): void;
/**
* 현재 드로잉 도구 가져오기
*/
getDrawingTool(): DrawingToolType | null;
/**
* 자석 모드 설정
*/
setMagneticMode(enabled: boolean): void;
/**
* 자석 모드 상태 가져오기
*/
getMagneticMode(): boolean;
}