chart-0714
Version:
Professional trading chart library with advanced customization for trading journal apps
28 lines (27 loc) • 1.18 kB
TypeScript
import { ChartData, IndicatorData } from '../types';
import { IndicatorConfig, IndicatorParams } from '../plugins/IndicatorPlugin';
import { IndicatorManager } from './IndicatorManager';
/**
* 플러그인 및 인디케이터 관련 기능을 통합 관리하는 매니저
* - 인디케이터 관리 (기존 IndicatorManager 기능)
* - 향후 다른 플러그인 확장 가능
*/
export declare class PluginManager {
indicatorManager: IndicatorManager;
constructor();
addIndicator(type: string | IndicatorConfig, params?: IndicatorParams): string;
removeIndicator(id: string): void;
toggleIndicator(id: string): void;
updateIndicator(id: string, config: Partial<IndicatorConfig>): void;
getIndicator(id: string): IndicatorConfig | undefined;
calculateAll(data: ChartData): void;
getVisibleIndicators(): IndicatorData[];
getIndicatorData(): Map<string, IndicatorData>;
getIndicators(): IndicatorConfig[];
getAllIndicators(): IndicatorConfig[];
clearIndicators(): void;
registerPlugin(_type: string, _plugin: any): void;
unregisterPlugin(_type: string): void;
getPlugin(_type: string): any;
dispose(): void;
}