UNPKG

chart-0714

Version:

Professional trading chart library with advanced customization for trading journal apps

71 lines (70 loc) 1.85 kB
import { Chart } from '../Chart'; /** * 차트 스타일 관련 메서드들을 모아놓은 헬퍼 클래스 */ export declare class ChartStyleHelper { private chart; constructor(chart: Chart); /** * 캔들 색상 실시간 업데이트 */ updateCandleColors(colors: { upColor?: string; downColor?: string; borderUpColor?: string; borderDownColor?: string; wickColor?: string; }): void; /** * 볼륨 색상 실시간 업데이트 */ updateVolumeColors(colors: { up?: string; down?: string; maColor?: string; }): void; /** * 이동평균선 스타일 업데이트 */ updateMovingAverageStyle(id: string, style: { color?: string; lineWidth?: number; lineStyle?: 'solid' | 'dashed' | 'dotted'; opacity?: number; }): void; /** * 모든 이동평균선 스타일 일괄 업데이트 */ updateAllMovingAveragesStyle(style: { color?: string; lineWidth?: number; lineStyle?: 'solid' | 'dashed' | 'dotted'; opacity?: number; }): void; /** * 마커 스타일 업데이트 */ updateMarkerStyle(id: string, style: { color?: string; text?: string; size?: number; }): void; /** * 모든 마커 스타일 일괄 업데이트 (타입별) */ updateMarkersStyleByType(type: 'buy' | 'sell', style: { color?: string; text?: string; size?: number; shape?: 'arrowUp' | 'arrowDown' | 'circle' | 'square'; }): void; /** * 스톱로스 라인 스타일 업데이트 */ updateStopLossStyle(id: string, style: { color?: string; lineWidth?: number; label?: string; opacity?: number; }): void; }