일목균형표 서버 미표시 버그 수정

1. isIchimokuCloudVisible에서 areIchimokuSpanLinesVisible 검사 제거
   - 서버 DB 구버전 설정(plot3/plot4=false)에서 구름이 미표시되는 회귀 수정
   - 라인 표시 여부와 구름 표시 여부를 독립적으로 동작하도록 변경

2. calculateIndicator: ind.calculate에 calcParams 전달하도록 버그 수정
   - senkouDisplacement 커스텀 값이 실제 계산에 반영되지 않던 문제 수정

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-02 03:41:53 +09:00
parent 78271ab98c
commit b69a8c8901
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -657,8 +657,8 @@ export async function calculateIndicator(
calculate: (b: Bar[], p: unknown) => { plots?: Record<string, PlotData>; markers?: MarkerData[] }
}>)[type];
if (!ind?.calculate) throw new Error(`Unknown indicator: ${type}`);
// 파라미터 키 이름을 라이브러리 기대값으로 변환 후 전달
const result = ind.calculate(b, translateParams(type, params));
// calcParams(displacement 등 정규화된 값)를 라이브러리에 전달
const result = ind.calculate(b, translateParams(type, calcParams));
return {
plots: (result.plots ?? {}) as IndicatorResult,
markers: result.markers as MarkerData[] | undefined,