최종수정

This commit is contained in:
Macbook
2026-06-09 15:33:56 +09:00
parent 645c54f991
commit 4bd93cd037
2 changed files with 17 additions and 68 deletions
+2 -24
View File
@@ -473,35 +473,13 @@ function normalizeSignalLineIndicatorPlots(
const nextPlots = merged.map(p => {
const reg = registryPlots.find(r => r.id === p.id);
if (!reg) return p;
const normalized = normalizeDualLinePlotDef(p, reg);
// OBV 본선 — DB 저장색(투명·신호선과 동일) 무시, registry 기본색·굵기 유지
if (p.id === 'plot0') {
return {
...normalized,
type: 'line' as const,
color: reg.color,
lineWidth: Math.max(2, normalized.lineWidth ?? reg.lineWidth ?? 2),
lineStyle: 'solid' as const,
};
}
// OBV 신호선 — 값이 본선과 거의 같더라도 점선으로 시각적 구분 보장
if (p.id === 'plot1') {
return {
...normalized,
lineStyle: 'dashed' as const,
};
}
return normalized;
return normalizeDualLinePlotDef(p, reg);
});
// plot0(본선) → plot1(신호선) 순서 보장
nextPlots.sort((a, b) => {
const order = ['plot0', 'plot1'];
return order.indexOf(a.id) - order.indexOf(b.id);
});
return {
plots: nextPlots,
plotVisibility: { ...plotVisibility, plot0: true, plot1: true },
};
return { plots: nextPlots, plotVisibility: { ...plotVisibility } };
}
const regSignal = registryPlots.find(p => p.id === 'plot1');