obv 그래프 수정
This commit is contained in:
@@ -474,12 +474,22 @@ function normalizeSignalLineIndicatorPlots(
|
||||
const reg = registryPlots.find(r => r.id === p.id);
|
||||
if (!reg) return p;
|
||||
const normalized = normalizeDualLinePlotDef(p, reg);
|
||||
// OBV 본선 — DB 저장색(투명·신호선과 동일) 무시, registry 기본색 유지
|
||||
// OBV 본선 — DB 저장색(투명·신호선과 동일) 무시, registry 기본색·굵기 유지
|
||||
if (p.id === 'plot0') {
|
||||
return { ...normalized, color: reg.color };
|
||||
return {
|
||||
...normalized,
|
||||
type: 'line' as const,
|
||||
color: reg.color,
|
||||
lineWidth: Math.max(2, normalized.lineWidth ?? reg.lineWidth ?? 2),
|
||||
};
|
||||
}
|
||||
return normalized;
|
||||
});
|
||||
// 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 },
|
||||
|
||||
Reference in New Issue
Block a user