지표탭 추가 수정
This commit is contained in:
@@ -153,6 +153,16 @@ type GetVisual = (
|
||||
defaultHlines?: HLineDef[],
|
||||
) => { plots: PlotDef[]; hlines: HLineDef[]; cloudColors?: IchimokuCloudColors };
|
||||
|
||||
/** 탭 전체 추가 — 기존 차트 지표를 제거하고 types 목록만 새로 구성 */
|
||||
export function replaceIndicatorConfigsFromTypes(
|
||||
types: string[],
|
||||
getParams: GetParams,
|
||||
getVisualConfig: GetVisual,
|
||||
newId: () => string,
|
||||
): IndicatorConfig[] {
|
||||
return buildIndicatorConfigsFromTypes(types, [], getParams, getVisualConfig, newId);
|
||||
}
|
||||
|
||||
/** 지표 타입 목록 → 차트에 추가할 IndicatorConfig 배열 (이미 활성인 type 제외) */
|
||||
export function buildIndicatorConfigsFromTypes(
|
||||
types: string[],
|
||||
|
||||
Reference in New Issue
Block a user